summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: edc842a)
raw | patch | inline | side by side (parent: edc842a)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 31 Aug 2007 09:52:31 +0000 (11:52 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 3 Sep 2007 12:45:31 +0000 (14:45 +0200) |
src/exec.c | patch | blob | history |
diff --git a/src/exec.c b/src/exec.c
index e416c8f051ac2a64ee09ec4d4bf94b36fcf06be1..e899a1c32057a2d7408d01bee3c59e64bfb85f1f 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
exit (-1);
}
- status = setuid (uid);
- if (status != 0)
- {
- ERROR ("exec plugin: setuid failed: %s",
- sstrerror (errno, errbuf, sizeof (errbuf)));
- exit (-1);
- }
-
if (NULL != pl->group)
{
if ('\0' != *pl->group) {
sstrerror (errno, errbuf, sizeof (errbuf)));
exit (-1);
}
+ } /* if (pl->group == NULL) */
+
+ status = setuid (uid);
+ if (status != 0)
+ {
+ ERROR ("exec plugin: setuid failed: %s",
+ sstrerror (errno, errbuf, sizeof (errbuf)));
+ exit (-1);
}
arg0 = strrchr (pl->exec, '/');