看板 DFBSD_commit 關於我們 聯絡資訊
commit 1bf9817349b98799b92b1e764d4d0855695ce4ea Author: Peter Avalos <pavalos@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