From d1b94aa506e565c9028a17e585ac18c3091c08d1 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 6 Sep 2009 11:03:41 +0200 Subject: [PATCH] Fix bug #1368. Increase default path/file length to 2048 --- bacula/src/findlib/find.c | 8 ++++---- bacula/technotes | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.5