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, '/');