From owner-svn-src-head@FreeBSD.ORG Fri May 9 13:27:31 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B457A6E4; Fri, 9 May 2014 13:27:31 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A0439607; Fri, 9 May 2014 13:27:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s49DRVIh060874; Fri, 9 May 2014 13:27:31 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s49DRVwL060872; Fri, 9 May 2014 13:27:31 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201405091327.s49DRVwL060872@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 9 May 2014 13:27:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265772 - head/bin/sh X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2014 13:27:31 -0000 Author: jilles Date: Fri May 9 13:27:30 2014 New Revision: 265772 URL: http://svnweb.freebsd.org/changeset/base/265772 Log: sh: Add more necessary INTOFF/INTON. Modified: head/bin/sh/main.c head/bin/sh/options.c Modified: head/bin/sh/main.c ============================================================================== --- head/bin/sh/main.c Fri May 9 13:23:23 2014 (r265771) +++ head/bin/sh/main.c Fri May 9 13:27:30 2014 (r265772) @@ -140,11 +140,13 @@ main(int argc, char *argv[]) #endif rootpid = getpid(); rootshell = 1; + INTOFF; initvar(); setstackmark(&smark); setstackmark(&smark2); procargs(argc, argv); pwd_init(iflag); + INTON; if (iflag) chkmail(1); if (argv[0] && argv[0][0] == '-') { Modified: head/bin/sh/options.c ============================================================================== --- head/bin/sh/options.c Fri May 9 13:23:23 2014 (r265771) +++ head/bin/sh/options.c Fri May 9 13:27:30 2014 (r265772) @@ -475,7 +475,9 @@ atend: } else { out1fmt("Illegal option -%c\n", c); + INTOFF; (void) unsetvar("OPTARG"); + INTON; } c = '?'; goto bad; @@ -494,7 +496,9 @@ atend: } else { out1fmt("No arg for -%c option\n", c); + INTOFF; (void) unsetvar("OPTARG"); + INTON; c = '?'; } goto bad;