From a7ec30aaf4650d9e8499f4f0c948e8f33a477c3b Mon Sep 17 00:00:00 2001 From: Scott Barninger Date: Sat, 9 Feb 2008 13:55:24 +0000 Subject: [PATCH] Fix for FORTIFY_SOURCE flag. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6384 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/platforms/mandrake/bacula.spec.in | 7 +++++++ bacula/platforms/redhat/bacula.spec.in | 7 +++++++ bacula/platforms/suse/bacula.spec.in | 7 +++++++ 3 files changed, 21 insertions(+) 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 -- 2.39.5