aboutsummaryrefslogtreecommitdiffstats
path: root/src/usernetctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usernetctl.c')
-rw-r--r--src/usernetctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usernetctl.c b/src/usernetctl.c
index 9e127604..d966dc71 100644
--- a/src/usernetctl.c
+++ b/src/usernetctl.c
@@ -155,6 +155,7 @@ main(int argc, char ** argv) {
char * cmd = NULL;
int report = 0;
char tmp;
+ int ignored_retval __attribute__((unused));
if (argc != 3) usage();
@@ -235,9 +236,9 @@ main(int argc, char ** argv) {
/* pppd wants the real uid to be the same as the effective (god only
knows why when it works fine setuid out of the box) */
- setuid(geteuid());
+ ignored_retval = setuid(geteuid());
/* Drop user gid (for temp files, SELinux) */
- setgid(0);
+ ignored_retval = setgid(0);
execle(cmd, cmd, ifaceConfig, NULL, safeEnviron);
fprintf(stderr, "exec of %s failed: %s\n", cmd, strerror(errno));