From: Daniel A. <dat...@us...> - 2005-05-27 23:23:53
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23353/src Modified Files: util.c Log Message: Fix for UNC paths. Index: util.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/util.c,v retrieving revision 1.351 retrieving revision 1.352 diff -u -d -p -r1.351 -r1.352 --- util.c 7 May 2005 17:44:00 -0000 1.351 +++ util.c 27 May 2005 23:23:44 -0000 1.352 @@ -1901,6 +1901,14 @@ int gaim_build_dir (const char *path, in if(g_file_test(dir, G_FILE_TEST_IS_DIR)) { continue; +#ifdef _WIN32 + /* allow us to create subdirs on UNC paths + * (\\machinename\path\to\blah) + * g_file_test() doesn't work on "\\machinename" */ + } else if (cur == 2 && dir[0] == '\\' && dir[1] == '\\' + && components[cur + 1] != NULL) { + continue; +#endif } else if(g_file_test(dir, G_FILE_TEST_EXISTS)) { gaim_debug_warning("build_dir", "bad path: %s\n", path); g_strfreev(components); |