]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1368. Increase default path/file length to 2048
authorKern Sibbald <kern@sibbald.com>
Sun, 6 Sep 2009 09:03:41 +0000 (11:03 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 6 Sep 2009 09:03:41 +0000 (11:03 +0200)
bacula/src/findlib/find.c
bacula/technotes

index ac9e4ceebe6ad38f69dca9e7061c229375f3f644..81e887a2925b00d617422f19d177f7ac1dfc81fb 100644 (file)
@@ -67,13 +67,13 @@ FF_PKT *init_find_files()
 
    /* Get system path and filename maximum lengths */
    path_max = pathconf(".", _PC_PATH_MAX);
-   if (path_max < 1024) {
-      path_max = 1024;
+   if (path_max < 2048) {
+      path_max = 2048;
    }
 
    name_max = pathconf(".", _PC_NAME_MAX);
-   if (name_max < 1024) {
-      name_max = 1024;
+   if (name_max < 2048) {
+      name_max = 2048;
    }
    path_max++;                        /* add for EOS */
    name_max++;                        /* add for EOS */
index b103319729eaf4b5936b16e9560f4286ff3943f0..48b449b506b4115b287b8a5becd64269744ebd3f 100644 (file)
@@ -2,6 +2,10 @@
           
 General:
 
+06Sep09
+kes  Increase default path/file length to 2048. This should fix
+     bug #1368.  Too bad Mac OS programmers don't respect POSIX
+     standards.
 04Sep09
 kes  Implement BlockChecksum in Device to be able to turn off checksum
        for performance reasons