+Sat Nov 27 09:46:26 EST 1999 Ben Collins <bcollins@debian.org>
+
+ * utils/start-stop-daemon.c: call initgroups() prior to seteuid()
+
Fri Nov 26 18:36:22 EST 1999 Ben Collins <bcollins@debian.org>
* dselect/main.cc: fixed three cases where gettext usage was not
* dselect/main.cc: fixed three cases where gettext usage was not
possible die to macros inlined in the strings
-
+ * utils/start-stop-daemon.c: call initgroups() prior to seteuid()
+
-- Wichert Akkerman <bcollins@debian.org> UNRELEASED
dpkg (1.6) unstable; urgency=low
printf("Starting %s...\n", startas);
*--argv = startas;
if (changeuser != NULL) {
- if (seteuid(runas_uid))
- fatal("Unable to set effective uid to %s", changeuser);
if (initgroups(changeuser, runas_gid))
fatal("Unable to set initgroups() with gid %d", runas_gid);
+ if (seteuid(runas_uid))
+ fatal("Unable to set effective uid to %s", changeuser);
}
if (background) { /* ok, we need to detach this process */