diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2018-06-04 17:30:09 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2018-06-14 16:19:10 +0200 |
commit | 2aa3d2035190c7838c355b986749104a1d9f6e64 (patch) | |
tree | 7d47bd66ab7c3c582cdbe8bbb23373c277d083d8 /src/usernetctl.c | |
parent | b4415e9412b70469cac961b1ebde8d94b93a26a6 (diff) | |
download | initscripts-2aa3d2035190c7838c355b986749104a1d9f6e64.tar initscripts-2aa3d2035190c7838c355b986749104a1d9f6e64.tar.gz initscripts-2aa3d2035190c7838c355b986749104a1d9f6e64.tar.bz2 initscripts-2aa3d2035190c7838c355b986749104a1d9f6e64.tar.xz initscripts-2aa3d2035190c7838c355b986749104a1d9f6e64.zip |
src/usernetctl.c: GCC warnings about unused return value suppressed
Diffstat (limited to 'src/usernetctl.c')
-rw-r--r-- | src/usernetctl.c | 5 |
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)); |