From: Kern Sibbald Date: Sun, 6 Sep 2009 09:03:41 +0000 (+0200) Subject: Fix bug #1368. Increase default path/file length to 2048 X-Git-Tag: Release-5.0.0~318^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1b94aa506e565c9028a17e585ac18c3091c08d1;p=bacula%2Fbacula Fix bug #1368. Increase default path/file length to 2048 --- diff --git a/bacula/src/findlib/find.c b/bacula/src/findlib/find.c index ac9e4ceebe..81e887a292 100644 --- a/bacula/src/findlib/find.c +++ b/bacula/src/findlib/find.c @@ -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 */ diff --git a/bacula/technotes b/bacula/technotes index b103319729..48b449b506 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -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