From 5eddc3e06cc947cd605aec8c65ce16770d79b64e Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 21 Dec 2011 16:39:45 +0000 Subject: [PATCH] fix compile error --- src/vpn/gnunet-helper-vpn.c | 4 ++-- 1 file 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) set_address4 (dev, address, mask); } - -#ifdef HAVE_SETRESUID + uid_t uid = getuid (); +#ifdef HAVE_SETRESUID if (0 != setresuid (uid, uid, uid)) { fprintf (stderr, "Failed to setresuid: %s\n", strerror (errno)); -- 2.25.1