git: sh: Remove duplicate code resetting uid/gid for set +p/+o p

看板DFBSD_commit作者時間14年前 (2011/08/22 08:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1EKPnBOX (DFBSD_commit)