GNOME Bugzilla – Bug 676693
[PATCH] Fix error when compiling with -Werror=format-security
Last modified: 2012-06-30 04:43:17 UTC
Created attachment 214822 [details] [review] Fix error when compiling with -Werror=format-security gcc -DHAVE_CONFIG_H -I. -I../.. -D_FORTIFY_SOURCE=2 -DG_LOG_DOMAIN=\"GVFS-UDisks2\" -I../../common -I../../monitor/proxy -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/udisks2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGIO_MODULE_DIR=\"\" -DGVFS_LOCALEDIR=\""/usr/share/locale"\" -DG_DISABLE_DEPRECATED -DUDISKS_API_IS_SUBJECT_TO_CHANGE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o gvfs_udisks2_volume_monitor-gvfsudisks2drive.o `test -f 'gvfsudisks2drive.c' || echo './'`gvfsudisks2drive.c gcc -DHAVE_CONFIG_H -I. -I../.. -D_FORTIFY_SOURCE=2 -DG_LOG_DOMAIN=\"GVFS-UDisks2\" -I../../common -I../../monitor/proxy -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/udisks2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGIO_MODULE_DIR=\"\" -DGVFS_LOCALEDIR=\""/usr/share/locale"\" -DG_DISABLE_DEPRECATED -DUDISKS_API_IS_SUBJECT_TO_CHANGE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c -o gvfs_udisks2_volume_monitor-gvfsudisks2volume.o `test -f 'gvfsudisks2volume.c' || echo './'`gvfsudisks2volume.c gvfsudisks2volume.c: In function ‘mount_command_cb’: gvfsudisks2volume.c:880:36: error: format not a string literal and no format arguments [-Werror=format-security]
Created attachment 214825 [details] [review] Fix errors when compiling with -Werror=format-security Updated patch to catch second case of the same thing
The following fix has been pushed: 30b70bd udisks2: Fix error when compiling with -Werror=format-security
Created attachment 217688 [details] [review] udisks2: Fix error when compiling with -Werror=format-security