From 2aa3d2035190c7838c355b986749104a1d9f6e64 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Mon, 4 Jun 2018 17:30:09 +0200 Subject: src/usernetctl.c: GCC warnings about unused return value suppressed --- src/usernetctl.c | 5 +++-- 1 file 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)); -- cgit v1.2.1