openbsd-ports/comms/seyon/patches/patch-SeSubs_c
naddy 1808021952 * return -1 by int rather than char
* md5 -> distinfo
* sensible patch names
2002-02-20 21:46:48 +00:00

13 lines
449 B
Plaintext

$OpenBSD: patch-SeSubs_c,v 1.1 2002/02/20 21:46:49 naddy Exp $
--- SeSubs.c.orig Fri Apr 23 12:24:17 1993
+++ SeSubs.c Wed Feb 20 22:31:21 2002
@@ -249,6 +249,8 @@ ExecShellCommand(command, top)
if (setuid(getuid()) < 0)
SePError("Failed to set effective uid");
+ if (setgid(getgid()) < 0)
+ SePError("Failed to set effective gid");
if (*scmd == '\0') {
SeNotice(FmtString1("Executing the shell ``%s''", shell));