File: path-max.patch

package info (click to toggle)
dante 1.4.2%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 11,640 kB
  • sloc: ansic: 64,514; sh: 11,180; yacc: 3,127; lex: 1,683; makefile: 364; awk: 220
file content (18 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Use a sensible value for PATH_MAX if it is not defined.
Author: Peter Pentchev <roam@ringlet.net>
Forwarded: no
Last-Update: 2017-01-12

--- a/include/osdep.h
+++ b/include/osdep.h
@@ -475,6 +475,10 @@
 #define ETHER_ADDR_LEN  (6)
 #endif /* !ETHER_ADDR_LEN */
 
+#ifndef PATH_MAX
+#define PATH_MAX	1024
+#endif
+
 #if !HAVE_STRUCT_IPOPTS
 #define   MAX_IPOPTLEN   40
 struct ipoption {