File: PATH_MAX

package info (click to toggle)
tree 1.7.0-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 304 kB
  • sloc: ansic: 2,877; makefile: 41
file content (20 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: 2012-02-04
--- a/tree.c
+++ b/tree.c
@@ -80,6 +80,9 @@
 extern char *leftcode, *rightcode, *endcode;
 extern const struct linedraw *linedraw;
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
 
 int main(int argc, char **argv)
 {