diff options
-rw-r--r-- | initscripts.spec | 1 | ||||
-rw-r--r-- | src/usernetctl.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/initscripts.spec b/initscripts.spec index 0de5cf78..fab5103e 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -232,6 +232,7 @@ rm -rf $RPM_BUILD_ROOT * Tue Oct 10 2000 Nalin Dahyabhai <nalin@redhat.com> - handle "gw x.x.x.x" as the last pair of flags in ifup-routes (#18804) - fix top-level makefile install target +- make usernetctl just fall-through if getuid() == 0 * Sun Sep 3 2000 Florian La Roche <Florian.LaRoche@redhat.com> - /etc/init.d is already provided by chkconfig diff --git a/src/usernetctl.c b/src/usernetctl.c index 5a228bdc..fd28b411 100644 --- a/src/usernetctl.c +++ b/src/usernetctl.c @@ -155,7 +155,7 @@ int main(int argc, char ** argv) { ifaceConfig = temp; } - + if(getuid() != 0) switch (userCtl(ifaceConfig)) { char *dash; |