]> git.sur5r.net Git - bacula/bacula/commitdiff
Fixes bug #1368 ASSERT Failure on MacOS.
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 10 Sep 2009 12:51:08 +0000 (14:51 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 10 Sep 2009 12:51:08 +0000 (14:51 +0200)
bacula/src/findlib/find.c

index 0e80858a5331b76a49ab5ba5dee8b50e3ed98886..115ba1e085498d80862892b4cf84a34ea36e84ee 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 */