File: 10_misplaced_MAXPATHLEN.dpatch

package info (click to toggle)
pike7.6 7.6.112-dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 50,916 kB
  • ctags: 23,544
  • sloc: ansic: 257,802; xml: 82,717; makefile: 2,503; sh: 1,891; lisp: 655; asm: 237; pascal: 66; sed: 34; perl: 3
file content (31 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh /usr/share/dpatch/dpatch-run
## 10_misplaced_MAXPATHLEN.dpatch by Samuel Thibault <samuel.thibault@ens-lyon.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Move reserve MAXPATHLEN definition up.

@DPATCH@

--- pike7.6-7.6.112.orig/src/modules/files/efuns.c	2007-07-24 23:08:26.932458000 +0000
+++ pike7.6-7.6.112/src/modules/files/efuns.c	2007-07-24 23:09:58.626801000 +0000
@@ -106,6 +106,10 @@
 
 #endif
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 32768
+#endif
+
 struct array *encode_stat(PIKE_STAT_T *s)
 {
   struct array *a;
@@ -1113,9 +1117,6 @@
     size*=2;
   } while (size < 10000);
 #else
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 32768
-#endif
   tmp=xalloc(MAXPATHLEN+1);
   THREADS_ALLOW_UID();
   e = getwd(tmp);