diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-21 16:39:45 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-21 16:39:45 +0000 |
commit | 5eddc3e06cc947cd605aec8c65ce16770d79b64e (patch) | |
tree | 332cea388a969d60937c2d6026a9089f583cb78d /src/vpn/gnunet-helper-vpn.c | |
parent | 30992de68803d6842e25d23cec3254e5e1569748 (diff) | |
download | gnunet-5eddc3e06cc947cd605aec8c65ce16770d79b64e.tar.gz gnunet-5eddc3e06cc947cd605aec8c65ce16770d79b64e.zip |
fix compile error
Diffstat (limited to 'src/vpn/gnunet-helper-vpn.c')
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 3250141fb..b93ce2382 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c | |||
@@ -564,9 +564,9 @@ main (int argc, char **argv) | |||
564 | 564 | ||
565 | set_address4 (dev, address, mask); | 565 | set_address4 (dev, address, mask); |
566 | } | 566 | } |
567 | 567 | ||
568 | #ifdef HAVE_SETRESUID | ||
569 | uid_t uid = getuid (); | 568 | uid_t uid = getuid (); |
569 | #ifdef HAVE_SETRESUID | ||
570 | if (0 != setresuid (uid, uid, uid)) | 570 | if (0 != setresuid (uid, uid, uid)) |
571 | { | 571 | { |
572 | fprintf (stderr, "Failed to setresuid: %s\n", strerror (errno)); | 572 | fprintf (stderr, "Failed to setresuid: %s\n", strerror (errno)); |