]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix for FORTIFY_SOURCE flag.
authorScott Barninger <scott@barninger.com>
Sat, 9 Feb 2008 13:55:24 +0000 (13:55 +0000)
committerScott Barninger <scott@barninger.com>
Sat, 9 Feb 2008 13:55:24 +0000 (13:55 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6384 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/platforms/mandrake/bacula.spec.in
bacula/platforms/redhat/bacula.spec.in
bacula/platforms/suse/bacula.spec.in

index 970178367424668ab4c78885b6dfcc6096199666..5429a78546942213935c710717be7dfce9702355 100644 (file)
@@ -1276,6 +1276,11 @@ export QTINC=/usr/lib64/qt4/include/
 export QTLIB=/usr/lib64/qt4/
 %endif
 
+# most distributions now set default CFLAGS with -D_FORTIFY_SOURCE=2.
+# from glibc 2.7 on this causes false detection of buffer overflows in
+# the file daemon.
+export CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
+
 %configure \
         --prefix=/usr \
         --sbindir=/usr/sbin \
@@ -2235,6 +2240,8 @@ fi
 %endif
 
 %changelog
+* Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- fix for false buffer overflow detection with glibc >= 2.7
 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
 - 2.2.8 release
 - add debug package for SuSE
index 970178367424668ab4c78885b6dfcc6096199666..5429a78546942213935c710717be7dfce9702355 100644 (file)
@@ -1276,6 +1276,11 @@ export QTINC=/usr/lib64/qt4/include/
 export QTLIB=/usr/lib64/qt4/
 %endif
 
+# most distributions now set default CFLAGS with -D_FORTIFY_SOURCE=2.
+# from glibc 2.7 on this causes false detection of buffer overflows in
+# the file daemon.
+export CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
+
 %configure \
         --prefix=/usr \
         --sbindir=/usr/sbin \
@@ -2235,6 +2240,8 @@ fi
 %endif
 
 %changelog
+* Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- fix for false buffer overflow detection with glibc >= 2.7
 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
 - 2.2.8 release
 - add debug package for SuSE
index 970178367424668ab4c78885b6dfcc6096199666..5429a78546942213935c710717be7dfce9702355 100644 (file)
@@ -1276,6 +1276,11 @@ export QTINC=/usr/lib64/qt4/include/
 export QTLIB=/usr/lib64/qt4/
 %endif
 
+# most distributions now set default CFLAGS with -D_FORTIFY_SOURCE=2.
+# from glibc 2.7 on this causes false detection of buffer overflows in
+# the file daemon.
+export CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
+
 %configure \
         --prefix=/usr \
         --sbindir=/usr/sbin \
@@ -2235,6 +2240,8 @@ fi
 %endif
 
 %changelog
+* Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
+- fix for false buffer overflow detection with glibc >= 2.7
 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
 - 2.2.8 release
 - add debug package for SuSE