diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-25 20:16:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-25 20:16:08 +0000 |
commit | f46035b9126e0bfe6521f2f3e7b66fa6e0bc93d3 (patch) | |
tree | a099c5d2a8b3704892738898fc610f341cf7278d /src/exit/gnunet-helper-exit.c | |
parent | 9935d917ca2a9a34e9c6d1aa744744eaeb6dfd2e (diff) | |
download | gnunet-f46035b9126e0bfe6521f2f3e7b66fa6e0bc93d3.tar.gz gnunet-f46035b9126e0bfe6521f2f3e7b66fa6e0bc93d3.zip |
-check for SUID helper
Diffstat (limited to 'src/exit/gnunet-helper-exit.c')
-rw-r--r-- | src/exit/gnunet-helper-exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c index 76d14d5bc..db1401e89 100644 --- a/src/exit/gnunet-helper-exit.c +++ b/src/exit/gnunet-helper-exit.c | |||
@@ -180,7 +180,8 @@ init_tun (char *dev) | |||
180 | 180 | ||
181 | if (-1 == ioctl (fd, TUNSETIFF, (void *) &ifr)) | 181 | if (-1 == ioctl (fd, TUNSETIFF, (void *) &ifr)) |
182 | { | 182 | { |
183 | fprintf (stderr, "Error with ioctl on `%s': %s\n", "/dev/net/tun", | 183 | fprintf (stderr, |
184 | "Error with ioctl on `%s': %s\n", "/dev/net/tun", | ||
184 | strerror (errno)); | 185 | strerror (errno)); |
185 | (void) close (fd); | 186 | (void) close (fd); |
186 | return -1; | 187 | return -1; |