1
0
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:
Sadie Powell
2025-07-25 13:21:15 +01:00
parent ace7d99797
commit 5948c2ea53
3 changed files with 16 additions and 87 deletions
-13
View File
@@ -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