aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-06-04 17:30:09 +0200
committerDee'Kej <deekej@linuxmail.org>2018-06-14 16:19:10 +0200
commit2aa3d2035190c7838c355b986749104a1d9f6e64 (patch)
tree7d47bd66ab7c3c582cdbe8bbb23373c277d083d8
parentb4415e9412b70469cac961b1ebde8d94b93a26a6 (diff)
downloadinitscripts-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
-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));