File: PATH_MAX

package info (click to toggle)
tree 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 336 kB
  • sloc: ansic: 3,078; makefile: 44
file content (22 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=105432#5
Bug-Debian: http://bugs.debian.org/105432
Description: This symbol is only defined on systems with a fixed path length
 limit. The Hurd does not have such a limit, so it isn't defined. The program
 should deal with arbitrary long path names, but adding this patch will handle
 the problem in the meantime.
Last-Update: 2018-12-11
Index: tree/tree.c
===================================================================
--- tree.orig/tree.c
+++ tree/tree.c
@@ -82,6 +82,9 @@ extern bool colorize, ansilines, linktar
 extern char *leftcode, *rightcode, *endcode;
 extern const struct linedraw *linedraw;
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
 
 int main(int argc, char **argv)
 {