Package: funtools / 1.4.4+dfsg2-1

fix_hardening.patch Patch series | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Author: Ole Streicher <debian@liska.ath.cx>
Description: Fix the format string for fprintf
--- a/gnu/sort.c
+++ b/gnu/sort.c
@@ -2775,7 +2775,7 @@
 		xfwrite (buf, 1, cc, ofp);
 	      if (ferror (fp))
 		{
-		  fprintf (stderr, files[i]);
+  	          fprintf (stderr, "%s", files[i]);
 		  cleanup ();
 		  exit (2);
 		}
--- a/Makefile.in
+++ b/Makefile.in
@@ -137,7 +137,7 @@
 
 CC  =		@CC@
 
-CC_SWITCHES =	-I. ${CFLAGS} @USE_DL@ ${INCLUDES} ${AC_FLAGS}
+CC_SWITCHES =	-I. ${CFLAGS} ${CPPFLAGS} @USE_DL@ ${INCLUDES} ${AC_FLAGS}
 
 DEPEND_SWITCHES = -I. ${CFLAGS} ${INCLUDES} ${AC_FLAGS}
 
--- a/filter/Makefile.in
+++ b/filter/Makefile.in
@@ -114,7 +114,7 @@
 
 CC =		@CC@
 
-CC_SWITCHES =	-I. ${CFLAGS} -DFILT_VERSION="\"$(VERSION)\"" @USE_DL@ \
+CC_SWITCHES =	-I. ${CFLAGS} ${CPPFLAGS} -DFILT_VERSION="\"$(VERSION)\"" @USE_DL@ \
 		${INCLUDES} ${AC_FLAGS}
 
 DEPEND_SWITCHES = -I. ${CFLAGS} -I. ${INCLUDES} ${AC_FLAGS}
--- a/gnu/Makefile.in
+++ b/gnu/Makefile.in
@@ -87,7 +87,7 @@
 
 CC =		@CC@
 
-CC_SWITCHES =	${CFLAGS} ${INCLUDES} ${AC_FLAGS}
+CC_SWITCHES =	${CFLAGS} ${CPPFLAGS} ${INCLUDES} ${AC_FLAGS}
 
 DEPEND_SWITCHES = ${CFLAGS} ${INCLUDES} ${AC_FLAGS}
 
--- a/util/Makefile.in
+++ b/util/Makefile.in
@@ -105,7 +105,7 @@
 
 CC =		@CC@
 
-CC_SWITCHES =	-I. ${CFLAGS} @USE_DL@ ${INCLUDES} ${AC_FLAGS}
+CC_SWITCHES =	-I. ${CFLAGS} ${CPPFLAGS} @USE_DL@ ${INCLUDES} ${AC_FLAGS}
 
 DEPEND_SWITCHES = -I. ${CFLAGS} ${INCLUDES} ${AC_FLAGS}
 
--- a/mklib
+++ b/mklib
@@ -169,7 +169,7 @@
             rm -f ${LIBNAME}.so
 
             # make lib
-            ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
+            ${LINK} ${LDFLAGS} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
             # make usual symlinks
             ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
             ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so