Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp747481ybb; Fri, 10 Apr 2020 09:17:02 -0700 (PDT) X-Google-Smtp-Source: APiQypJUUV5kxy3Y0x1a62huZI4KthB49K++awWMGJ1tkID92Ifw8RrYrT+udInEWbTVeHusQDi8 X-Received: by 2002:a0c:9068:: with SMTP id o95mr5957020qvo.101.1586535422732; Fri, 10 Apr 2020 09:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586535422; cv=none; d=google.com; s=arc-20160816; b=MOmrQR9be/Q5bSDSVZtMlW+PV37XPFEBgjXJS+YiU7JuXXirDTo4XzWPVxbP66j5Kv c+oMxCwWx8Z1l0v/BRgPkcjCe9/lBTkE+dd7NKbbTSqvIqR6axpsQZtFoeOkTx7jmMyZ 6XCVf5VrOaOoooZ6lDCJ+APWIxdEBx3yYYzktg+A/yLof/XntCXry/8Y5MrMoWNG6i9k sW0cZdsB52lPETuYs4WoWSp7I+Tg3D7qel0ZnPSAa+xIoPdqdyuSvT3jYsdqXDxFix2c l+sUaEbQW3EwdHHEkYJQaSeStCGxvaD6HDsSl59hjFt2iAWB6yZwR38A7dLRpLSco8KG bMQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wBT3l+IE4XQe1iFFMZ18esAYI28R1ZK3azBcOFasehg=; b=cDMUip+q+eFTrRTRo2z2wgiImKBKWHtBwq+XcTact6+vm3sH04S+t7YTAks7+jcq9/ FyMyHXZ7fhUKbykR//DBEduuc9dtPmNcrfPNUkwZRcnPA8mYcO164tD4KEk0HJOFpjSi MVF2iN9h6A/L8KxPCw2xWMEHmjWDgv7kLTHCBTXCCNiFRYGc2Jt73JeDnl54MxLv8l0Q m7ZjcNS1ydgAy7Swqar7l/EsW/PaXbFjuYjsYGuAHSpmpjKz3lpdgu/0oj+LunBRe2ZJ VqQhEtD9AhlNL31xh4BQ0Wr0uJyKX2AcoB1auSOhr3QOTXyoIkweFC4OVaEuQHL9q80z XX+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si1586201qkd.327.2020.04.10.09.16.47; Fri, 10 Apr 2020 09:17:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726595AbgDJQQj (ORCPT + 99 others); Fri, 10 Apr 2020 12:16:39 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:57519 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726009AbgDJQQj (ORCPT ); Fri, 10 Apr 2020 12:16:39 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 03AGGZ2n017854 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Apr 2020 12:16:36 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 5162242013D; Fri, 10 Apr 2020 12:16:35 -0400 (EDT) Date: Fri, 10 Apr 2020 12:16:35 -0400 From: "Theodore Y. Ts'o" To: Lukas Czerner Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH] e2scrub: Remove PATH setting from the scripts Message-ID: <20200410161635.GP45598@mit.edu> References: <20200402134716.3725-1-lczerner@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200402134716.3725-1-lczerner@redhat.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Apr 02, 2020 at 03:47:16PM +0200, Lukas Czerner wrote: > We don't want to override system setting by changing the PATH. This > should remain under administrator/user control. > > Signed-off-by: Lukas Czerner The reason why the PATH was added is because most users don't have /sbin or /usr/sbin in their PATH, and if they run "sudo e2scrub", finding commands like lvcreate, lvremove, et. al., wouldn't be there. I suppose we could do something like PATH=$PATH:/sbin:/usr/sbin instead, but otherwise, users will see some unexpected failures. - Ted