mirror of
https://github.com/anope/anope.git
synced 2026-07-03 16:53:12 +02:00
Simplify the Windows module copying logic.
As far as I can tell from reading the Windows documentation there is no reason to overcomplicate this so much.
This commit is contained in:
@@ -71,17 +71,4 @@ int unsetenv(const char *name)
|
||||
return SetEnvironmentVariable(name, NULL);
|
||||
}
|
||||
|
||||
int mkstemp(char *input)
|
||||
{
|
||||
input = _mktemp(input);
|
||||
if (input == NULL)
|
||||
{
|
||||
errno = EEXIST;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int fd = open(input, O_WRONLY | O_CREAT, S_IREAD | S_IWRITE);
|
||||
return fd;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user