Files
pkgsrc-ng/security/polkit/patches/patch-src_programs_pkttyagent.c
2016-11-18 22:39:22 +01:00

24 lines
698 B
C

$NetBSD: patch-src_programs_pkttyagent.c,v 1.1 2016/05/20 18:39:33 youri Exp $
Avoid %m usage in printf.
--- src/programs/pkttyagent.c.orig 2015-06-18 20:20:50.000000000 +0000
+++ src/programs/pkttyagent.c
@@ -24,6 +24,7 @@
#endif
#include <stdio.h>
+#include <errno.h>
#include <glib/gi18n.h>
#include <polkit/polkit.h>
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
@@ -204,7 +205,7 @@ main (int argc, char *argv[])
{
if (close (opt_notify_fd) != 0)
{
- g_printerr ("Error closing notify-fd %d: %m\n", opt_notify_fd);
+ g_printerr ("Error closing notify-fd %d: %s\n", opt_notify_fd, g_strerror(errno));
goto out;
}
}