From owner-cvs-src-old@FreeBSD.ORG Thu May 5 22:07:16 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59EE5106564A for ; Thu, 5 May 2011 22:07:16 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4856C8FC15 for ; Thu, 5 May 2011 22:07:16 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p45M7GqT058782 for ; Thu, 5 May 2011 22:07:16 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p45M7GFv058781 for cvs-src-old@freebsd.org; Thu, 5 May 2011 22:07:16 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201105052207.p45M7GFv058781@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Thu, 5 May 2011 22:07:02 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/bin/sh options.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 22:07:16 -0000 jilles 2011-05-05 22:07:02 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) bin/sh options.c Log: SVN rev 221515 on 2011-05-05 22:07:02Z by jilles MFC r221012: 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. Revision Changes Path 1.27.2.6 +4 -2 src/bin/sh/options.c