git: sh: Remove duplicate code resetting uid/gid for set +p/+o privileged.
Peter Avalos
pavalos at crater.dragonflybsd.org
Sun Aug 21 16:33:06 PDT 2011
commit 1bf9817349b98799b92b1e764d4d0855695ce4ea
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date: Sat Jul 2 13:47:49 2011 -1000
sh: Remove duplicate code resetting uid/gid for set +p/+o privileged.
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.
Obtained-from: FreeBSD SVN rev 221011 & 221012
Summary of changes:
bin/sh/options.c | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1bf9817349b98799b92b1e764d4d0855695ce4ea
--
DragonFly BSD source repository
More information about the Commits
mailing list