From 904122fdd5f2799cc40ab55ae984d29c2ec8c259 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Wed, 8 Sep 2010 07:20:59 +0000 Subject: [PATCH] Missed two %m yesterday Replaced with %s, strerror(errno) --- src/vpn/gnunet-helper-vpn.c | 2 +- src/vpn/gnunet-vpn-tun.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 3f9bcb3d4..2d8b5baf3 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c @@ -175,7 +175,7 @@ int main(int argc, char** argv) { uid_t uid = getuid (); if (setresuid (uid, uid, uid) != 0 ) - fprintf (stderr, "Failed to setresuid: %m\n"); + fprintf (stderr, "Failed to setresuid: %s\n", strerror(errno)); setnonblocking(0); setnonblocking(1); diff --git a/src/vpn/gnunet-vpn-tun.c b/src/vpn/gnunet-vpn-tun.c index 4b37fef76..07def09c7 100644 --- a/src/vpn/gnunet-vpn-tun.c +++ b/src/vpn/gnunet-vpn-tun.c @@ -30,7 +30,7 @@ int init_tun(char *dev) {{{ if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){ close(fd); - fprintf(stderr, "ioctl'ing /dev/net/tun: %m\n"); + fprintf(stderr, "ioctl'ing /dev/net/tun: %s\n", strerror(errno)); return err; } -- 2.25.1