Mercurial > pidgin
comparison src/util.c @ 10948:747ef488c600
[gaim-migrate @ 12747]
Fix for UNC paths.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 27 May 2005 23:23:44 +0000 |
parents | d41e285af79e |
children | a8a7730db73c |
comparison
equal
deleted
inserted
replaced
10947:afc440485a9e | 10948:747ef488c600 |
---|---|
1899 if(cur == 0) | 1899 if(cur == 0) |
1900 dir[len++] = G_DIR_SEPARATOR; | 1900 dir[len++] = G_DIR_SEPARATOR; |
1901 | 1901 |
1902 if(g_file_test(dir, G_FILE_TEST_IS_DIR)) { | 1902 if(g_file_test(dir, G_FILE_TEST_IS_DIR)) { |
1903 continue; | 1903 continue; |
1904 #ifdef _WIN32 | |
1905 /* allow us to create subdirs on UNC paths | |
1906 * (\\machinename\path\to\blah) | |
1907 * g_file_test() doesn't work on "\\machinename" */ | |
1908 } else if (cur == 2 && dir[0] == '\\' && dir[1] == '\\' | |
1909 && components[cur + 1] != NULL) { | |
1910 continue; | |
1911 #endif | |
1904 } else if(g_file_test(dir, G_FILE_TEST_EXISTS)) { | 1912 } else if(g_file_test(dir, G_FILE_TEST_EXISTS)) { |
1905 gaim_debug_warning("build_dir", "bad path: %s\n", path); | 1913 gaim_debug_warning("build_dir", "bad path: %s\n", path); |
1906 g_strfreev(components); | 1914 g_strfreev(components); |
1907 g_free(dir); | 1915 g_free(dir); |
1908 return -1; | 1916 return -1; |