diff options
Diffstat (limited to 'security/heimdal/patches/patch-ap')
-rw-r--r-- | security/heimdal/patches/patch-ap | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/security/heimdal/patches/patch-ap b/security/heimdal/patches/patch-ap new file mode 100644 index 00000000000..0cf6ab9a525 --- /dev/null +++ b/security/heimdal/patches/patch-ap @@ -0,0 +1,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); + } |