From owner-svn-src-stable@freebsd.org Sat Dec 10 23:37:53 2016 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B3932C7123A for ; Sat, 10 Dec 2016 23:37:53 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AEFF1CA1 for ; Sat, 10 Dec 2016 23:37:53 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-wm0-x229.google.com with SMTP id t79so19325813wmt.0 for ; Sat, 10 Dec 2016 15:37:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dT6wexrc7kagOt6SGYVFnwaZBdYjzw0bmx6JkF3Y824=; b=C5+FLp220lka34tImBxXs2OukbwjDEdq2nv2qhtyJCCA4xCFmWzKPm0wxzuoBKpCB2 Cpdfi7Mh3bxXLULp5ZAGd9c0swtPJKbrnOWhnyT8V8bY6urNrNH2LASknL8N32xyd5SQ NVpNNMDqZp2uMKhG4YqNSkpYyTLgAxE6gdmn6jN4Zc/nxwAhERPQktJgD50WVC8jCJM3 iPbOt0g6xgsFD7M7y4Mnskr2tnjDfKTTBgrGAxFYCQc4H3SXQhkVmizjUN2ZS4qwkK2d ULXrsQxHu3kw2aIAr+2XwNJ8WaiR8pb3IfEu2mvdQdrDMrzcGBn1jlsv6xiBYTCj9b6V c/DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dT6wexrc7kagOt6SGYVFnwaZBdYjzw0bmx6JkF3Y824=; b=UTQIl/nb4tijrMKoL9C/Lizhfrykev1TR7yQAKmHLNdfJw54uwEsMwtLnP9bBXsvL6 /8AFwdr8hOcymRIHcxUvVyQAxxbTVYkJmoxpI1uWPOaA3C7qbCCvjsVI6Ab6021U5pnP A+ynQqSA3uLWt0n/3YJJ1OlL7qeB5G1LQXUVM1kxRayAv344VFrqt9IbC7BSMt0a2NG5 8OvPYVrc6cJ4n2TME/Do1bHLy+Z6VxI2xhwiSBtzhdqd494QV5QrlgKMQHgoiZ8sS6Ri 4QAQ/NPjIsELCcFVJQVl048laKt0RyVE8lWNOwKqRfH8h7fMnVyXetKPZH2znZKv1O9a bUpg== X-Gm-Message-State: AKaTC03G+dyXIL8FsD54oegh0+iCc77Rb6SSBBGPtE+iVbfMeTcDotA7FBYRXrI7Vo+Z74nwyvVSsf6BQ8v6EZcm X-Received: by 10.28.150.69 with SMTP id y66mr12700049wmd.107.1481413071761; Sat, 10 Dec 2016 15:37:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.253.65 with HTTP; Sat, 10 Dec 2016 15:37:51 -0800 (PST) In-Reply-To: <201610260839.u9Q8dYSM029072@repo.freebsd.org> References: <201610260839.u9Q8dYSM029072@repo.freebsd.org> From: Oliver Pinter Date: Sun, 11 Dec 2016 00:37:51 +0100 Message-ID: Subject: Re: svn commit: r307958 - stable/11/usr.bin/printenv To: Pietro Cerutti Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2016 23:37:53 -0000 On 10/26/16, Pietro Cerutti wrote: > Author: gahr (ports committer) > Date: Wed Oct 26 08:39:33 2016 > New Revision: 307958 > URL: https://svnweb.freebsd.org/changeset/base/307958 > > Log: > MFC r307638: > > Chase a cornercase in printenv and sync its behaviour with builtin's > > The cornercase is when printenv is passed a parameter in the form > VAR=val, where VAR=val exists in the environment. In this case, printenv > would > print a spurious newline and returns 0. > > Approved by: cognet > MFC after: 1 week This MFC is only for 11 or for 10-STABLE too? > > Modified: > stable/11/usr.bin/printenv/printenv.c > Directory Properties: > stable/11/ (props changed) > > Modified: stable/11/usr.bin/printenv/printenv.c > ============================================================================== > --- stable/11/usr.bin/printenv/printenv.c Wed Oct 26 07:45:48 > 2016 (r307957) > +++ stable/11/usr.bin/printenv/printenv.c Wed Oct 26 08:39:33 > 2016 (r307958) > @@ -83,8 +83,8 @@ main(int argc, char *argv[]) > for (ep = environ; *ep; ep++) > if (!memcmp(*ep, *argv, len)) { > cp = *ep + len; > - if (!*cp || *cp == '=') { > - (void)printf("%s\n", *cp ? cp + 1 : cp); > + if (*cp == '=') { > + (void)printf("%s\n", cp + 1); > exit(0); > } > } > _______________________________________________ > svn-src-stable-11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-stable-11 > To unsubscribe, send any mail to > "svn-src-stable-11-unsubscribe@freebsd.org" >