blob: 0cf6ab9a5253773d987d1951a178fa317f2d0b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ap,v 1.1 2006/08/09 17:58:09 salo Exp $
Security fix for SA21436.
--- appl/rcp/util.c.orig 2005-04-18 09:52:58.000000000 +0200
+++ appl/rcp/util.c 2006-08-09 19:42:15.000000000 +0200
@@ -112,7 +112,8 @@ susystem(s, userid)
return (127);
case 0:
- (void)setuid(userid);
+ if (setuid(userid) < 0)
+ _exit(127);
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
_exit(127);
}
|