]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - multipath-tools/patches/0073-RH-update-build-flags.patch
multipath-tools: Update to snapshot from 2013-02-22
[people/stevee/ipfire-3.x.git] / multipath-tools / patches / 0073-RH-update-build-flags.patch
CommitLineData
289c5516
MT
1---
2 Makefile.inc | 2 +-
3 libmultipath/checkers/rdac.c | 4 ++--
4 2 files changed, 3 insertions(+), 3 deletions(-)
5
6Index: multipath-tools-130222/Makefile.inc
7===================================================================
8--- multipath-tools-130222.orig/Makefile.inc
9+++ multipath-tools-130222/Makefile.inc
10@@ -39,7 +39,7 @@ GZIP = /bin/gzip -9 -c
11 INSTALL_PROGRAM = install
12
13 ifndef RPM_OPT_FLAGS
14- RPM_OPT_FLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
15+ RPM_OPT_FLAGS = -O2 -g -pipe -Wformat-security -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
16 endif
17
18 LDFLAGS += -Wl,-z,relro
19Index: multipath-tools-130222/libmultipath/checkers/rdac.c
20===================================================================
21--- multipath-tools-130222.orig/libmultipath/checkers/rdac.c
22+++ multipath-tools-130222/libmultipath/checkers/rdac.c
23@@ -308,8 +308,8 @@ libcheck_check (struct checker * c)
24 done:
25 switch (ret) {
26 case PATH_DOWN:
27- MSG(c, (inqfail) ? MSG_RDAC_DOWN_TYPE("inquiry failed") :
28- checker_msg_string(&inq));
29+ MSG(c, "%s", (inqfail) ? MSG_RDAC_DOWN_TYPE("inquiry failed") :
30+ checker_msg_string(&inq));
31 break;
32 case PATH_UP:
33 MSG(c, MSG_RDAC_UP);