1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 16:43:12 +02:00

- #0002475 reported by aquanight on detecting \'s in module filenames on

win32 and not do ./module for it
This commit is contained in:
stskeeps
2007-06-12 21:30:08 +00:00
parent 925cf08021
commit 2eda2e95ca
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -1776,3 +1776,5 @@ MOTDs
CommandAdd's through a huge patch. This may break some things, so heads
up. From now on add_Command is unsafe land for modules and may be removed
without warning.
- #0002475 reported by aquanight on detecting \'s in module filenames on
win32 and not do ./module for it
+4
View File
@@ -322,7 +322,11 @@ char *Module_Create(char *path_)
tmppath = unreal_mktemp("tmp", unreal_getfilename(path));
if (!tmppath)
return "Unable to create temporary file!";
#ifndef _WIN32
if(!strchr(path, '/'))
#else
if (!strchr(path, '\\') && !strchr(path, '/')
#endif
{
path = MyMalloc(strlen(path) + 3);
strcpy(path, "./");