summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 13:54:00 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 13:54:00 -0800
commitc337a18e92147f6980703ea35937e819261b192d (patch)
treec91ba9dfcd49cd59c1df2963a94b1d3f0c93a791
parentee86195796a21699f39f3832160df9258486f7cc (diff)
unifdef QNX4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--os/utils.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/os/utils.c b/os/utils.c
index 2bb0f8c..992f434 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -448,7 +448,6 @@ SetUserId(void)
if (setgid(pwent->pw_gid)) {
FatalError("fatal: couldn't set groupid to xfs user's group\n");
}
-#ifndef QNX4
#ifndef __CYGWIN__
if (setgroups(0, NULL)) {
FatalError("fatal: couldn't drop supplementary groups\n");
@@ -457,7 +456,6 @@ SetUserId(void)
if (initgroups(user, pwent->pw_gid)) {
FatalError("fatal: couldn't init supplementary groups\n");
}
-#endif /* QNX4 */
if (setuid(pwent->pw_uid)) {
FatalError("fatal: couldn't set userid to %s user\n", user);
}