#17 Fix errors with -Werror=format-security
Merged 2 years ago by mitr. Opened 2 years ago by sgallagh.
sgallagh/libuser format-security  into  master

file modified
+1 -1

@@ -534,7 +534,7 @@ 

  						 string, &err);

  	if (ret == FALSE) {

  		g_assert(err != NULL);

- 		g_warning(lu_strerror(err));

+ 		g_warning("%s", lu_strerror(err));

  		lu_error_free(&err);

  	}

  	return ret;

file modified
+1 -1

@@ -672,7 +672,7 @@ 

  						(&value, attr, val, &error);

  					if (ok == FALSE) {

  						g_assert(error != NULL);

- 						g_warning(lu_strerror(error));

+ 						g_warning("%s", lu_strerror(error));

  						lu_error_free(&error);

  					} else {

  						lu_ent_add_current(ent, attr,

Recent versions of the Fedora build system treat format-security
warnings as errors, resulting in failure to build. This patch
ensures that appropriate format strings are present.

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

Pull-Request has been merged by mitr

2 years ago
Metadata