From: Scott Barninger Date: Sat, 9 Feb 2008 13:54:29 +0000 (+0000) Subject: Fix for FORTIFY_SOURCE flag. X-Git-Tag: Release-2.2.9-b7~73 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12825423505df24d0eb781df5c4f2eeaac9c7c55;p=bacula%2Fbacula Fix for FORTIFY_SOURCE flag. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6383 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/platforms/mandrake/bacula.spec.in b/bacula/platforms/mandrake/bacula.spec.in index 9701783674..5429a78546 100644 --- a/bacula/platforms/mandrake/bacula.spec.in +++ b/bacula/platforms/mandrake/bacula.spec.in @@ -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 +- fix for false buffer overflow detection with glibc >= 2.7 * Sun Jan 27 2008 D. Scott Barninger - 2.2.8 release - add debug package for SuSE diff --git a/bacula/platforms/redhat/bacula.spec.in b/bacula/platforms/redhat/bacula.spec.in index 9701783674..5429a78546 100644 --- a/bacula/platforms/redhat/bacula.spec.in +++ b/bacula/platforms/redhat/bacula.spec.in @@ -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 +- fix for false buffer overflow detection with glibc >= 2.7 * Sun Jan 27 2008 D. Scott Barninger - 2.2.8 release - add debug package for SuSE diff --git a/bacula/platforms/suse/bacula.spec.in b/bacula/platforms/suse/bacula.spec.in index 9701783674..5429a78546 100644 --- a/bacula/platforms/suse/bacula.spec.in +++ b/bacula/platforms/suse/bacula.spec.in @@ -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 +- fix for false buffer overflow detection with glibc >= 2.7 * Sun Jan 27 2008 D. Scott Barninger - 2.2.8 release - add debug package for SuSE