Jilles Tjoelker 92a1de471c sh: Check setuid()/setgid() return values.
If the -p option is turned off, privileges from a setuid or setgid binary
are dropped. Make sure to check if this succeeds. If it fails, this is an
error which will cause the shell to abort except in interactive mode or if
'command' was used to make 'set' or an outer 'eval' or '.' non-special.

Note that taking advantage of this feature and writing setuid shell scripts
seems unwise.

MFC after:	1 week
2011-04-25 10:14:29 +00:00
..
2009-10-15 18:17:29 +00:00
2010-06-02 09:34:41 +00:00
2009-01-30 16:23:57 +00:00
2011-02-21 09:01:34 +00:00
2006-12-18 15:45:01 +00:00
2011-02-12 20:28:15 +00:00
2009-06-23 23:30:56 +00:00
2011-02-21 16:03:39 +00:00
2011-03-15 22:22:11 +00:00
2006-12-27 11:28:00 +00:00
2009-09-04 21:49:37 +00:00
2011-02-04 16:40:50 +00:00
2011-03-15 22:22:11 +00:00
2010-02-15 14:07:40 +00:00
2006-12-27 12:14:56 +00:00
2011-03-15 22:22:11 +00:00
2009-10-15 18:17:29 +00:00
2010-09-13 01:29:51 +00:00