c9a384ec9a
* Add check for sync(2) and setgroups(3), and don't use these if they don't exist on the host. * Interix has a ... Special ... way of doing the "su" thing. * Implement Interix-specific portion of mountlist.c.
15 lines
471 B
Text
15 lines
471 B
Text
$NetBSD: patch-ae,v 1.1 2005/03/21 14:44:08 tv Exp $
|
|
|
|
--- src/setuidgid.c.orig Wed Jan 21 17:27:02 2004
|
|
+++ src/setuidgid.c
|
|
@@ -106,8 +106,10 @@ main (int argc, char **argv)
|
|
error (SETUIDGID_FAILURE, errno,
|
|
_("unknown user-ID: %s"), quote (user_id));
|
|
|
|
+#if HAVE_SETGROUPS
|
|
if (setgroups (1, &pwd->pw_gid))
|
|
error (SETUIDGID_FAILURE, errno, _("cannot set supplemental group"));
|
|
+#endif
|
|
|
|
if (setgid (pwd->pw_gid))
|
|
error (SETUIDGID_FAILURE, errno,
|