diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:49 +0000 |
commit | 35283b11095f157c99b0e5dcd115de15fe61d3a4 (patch) | |
tree | f9673e8aa4515bd1d93fd3ae7ed6f6f795e4db27 /debian/patches/Use-_FORTIFY_SOURCE-level-3.patch | |
parent | Adding upstream version 1:2.3.21+dfsg1. (diff) | |
download | dovecot-35283b11095f157c99b0e5dcd115de15fe61d3a4.tar.xz dovecot-35283b11095f157c99b0e5dcd115de15fe61d3a4.zip |
Adding debian version 1:2.3.21+dfsg1-2.debian/1%2.3.21+dfsg1-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/Use-_FORTIFY_SOURCE-level-3.patch')
-rw-r--r-- | debian/patches/Use-_FORTIFY_SOURCE-level-3.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/debian/patches/Use-_FORTIFY_SOURCE-level-3.patch b/debian/patches/Use-_FORTIFY_SOURCE-level-3.patch new file mode 100644 index 0000000..262de9a --- /dev/null +++ b/debian/patches/Use-_FORTIFY_SOURCE-level-3.patch @@ -0,0 +1,57 @@ +From: =?utf-8?q?Christian_G=C3=B6ttsche?= <cgzones@googlemail.com> +Date: Thu, 22 Dec 2022 17:00:53 +0100 +Subject: Use _FORTIFY_SOURCE level 3 + +--- + m4/dovecot.m4 | 6 +++--- + pigeonhole/m4/dovecot.m4 | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 +index 8092bf5..558aee4 100644 +--- a/m4/dovecot.m4 ++++ b/m4/dovecot.m4 +@@ -9,7 +9,7 @@ dnl modifications, as long as this notice is preserved. + # serial 34 + + dnl +-dnl Check for support for D_FORTIFY_SOURCE=2 ++dnl Check for support for D_FORTIFY_SOURCE=3 + dnl + + AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[ +@@ -17,8 +17,8 @@ AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[ + AS_IF([test "$enable_hardening" = yes], [ + case "$host" in + *) +- gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2], [ +- CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" ++ gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3], [ ++ CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" + ], + [], + [AC_LANG_PROGRAM()] +diff --git a/pigeonhole/m4/dovecot.m4 b/pigeonhole/m4/dovecot.m4 +index 037d5e4..a3e0883 100644 +--- a/pigeonhole/m4/dovecot.m4 ++++ b/pigeonhole/m4/dovecot.m4 +@@ -9,7 +9,7 @@ dnl modifications, as long as this notice is preserved. + # serial 34 + + dnl +-dnl Check for support for D_FORTIFY_SOURCE=2 ++dnl Check for support for D_FORTIFY_SOURCE=3 + dnl + + AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[ +@@ -17,8 +17,8 @@ AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[ + AS_IF([test "$enable_hardening" = yes], [ + case "$host" in + *) +- gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2], [ +- CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" ++ gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3], [ ++ CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" + ], + [], + [AC_LANG_PROGRAM()] |