diff options
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 2 | ||||
-rw-r--r-- | 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) { | |||
175 | 175 | ||
176 | uid_t uid = getuid (); | 176 | uid_t uid = getuid (); |
177 | if (setresuid (uid, uid, uid) != 0 ) | 177 | if (setresuid (uid, uid, uid) != 0 ) |
178 | fprintf (stderr, "Failed to setresuid: %m\n"); | 178 | fprintf (stderr, "Failed to setresuid: %s\n", strerror(errno)); |
179 | 179 | ||
180 | setnonblocking(0); | 180 | setnonblocking(0); |
181 | setnonblocking(1); | 181 | 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) {{{ | |||
30 | 30 | ||
31 | if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){ | 31 | if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){ |
32 | close(fd); | 32 | close(fd); |
33 | fprintf(stderr, "ioctl'ing /dev/net/tun: %m\n"); | 33 | fprintf(stderr, "ioctl'ing /dev/net/tun: %s\n", strerror(errno)); |
34 | return err; | 34 | return err; |
35 | } | 35 | } |
36 | 36 | ||