Attached patch fixes ifcfg-rh plugin tests compilation with GCC strict format security (which is default e.g. for Mandriva builds)
--- Begin Message ---
- From: Andrey Borzenkov <arvidjaar mail ru>
- Subject: [PATCH] test-ifcfg-rh.c: fix gcc -Werror=format-security failure
Fix compilation with strict format security option. Signed-off-by: Andrey Borzenkov <arvidjaar mail ru> --- .../plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/system-settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c b/system-settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c index 6e873fe..1271928 100644 --- a/system-settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c +++ b/system-settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c @@ -6435,7 +6435,7 @@ test_write_wifi_open (void) ASSERT (tmp != NULL, "wifi-open-write-reread", "failed to read ESSID key from %s", testfile); - g_message (tmp); + g_message ("%s", tmp); ASSERT (strncmp (tmp, "\"\"", 2) != 0, "wifi-open-write-reread", "unexpected ESSID double-quote in %s", testfile);
--- End Message ---
Attachment:
signature.asc
Description: This is a digitally signed message part.