summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
36ef520)
Signed-off-by: David Goulet <dgoulet@efficios.com>
if (getuid() != 0) {
if (getuid() != geteuid()) {
ERR("UID does not match effective UID.");
if (getuid() != 0) {
if (getuid() != geteuid()) {
ERR("UID does not match effective UID.");
goto error;
} else if (getgid() != getegid()) {
ERR("GID does not match effective GID.");
goto error;
} else if (getgid() != getegid()) {
ERR("GID does not match effective GID.");