gaim/gaim

Fix for UNC paths.
oldstatus
2005-05-27, Daniel Atallah
dad433f97773
Parents 4823dd0ced9c
Children 35f034711a36
Fix for UNC paths.
  • +8 -0
    src/util.c
  • --- a/src/util.c Fri May 27 09:58:18 2005 -0400
    +++ b/src/util.c Fri May 27 19:14:50 2005 -0400
    @@ -1929,6 +1929,14 @@
    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);