From: Daniel A. <dat...@us...> - 2005-05-27 23:15:04
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21745/src Modified Files: Tag: oldstatus util.c Log Message: Fix for UNC paths. Index: util.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/util.c,v retrieving revision 1.325.2.21 retrieving revision 1.325.2.22 diff -u -d -p -r1.325.2.21 -r1.325.2.22 --- util.c 7 May 2005 17:43:31 -0000 1.325.2.21 +++ util.c 27 May 2005 23:14:50 -0000 1.325.2.22 @@ -1929,6 +1929,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); |