Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1089609ybz; Thu, 16 Apr 2020 02:39:36 -0700 (PDT) X-Google-Smtp-Source: APiQypK+CeZyFcukIEXDRLh6bcFTdTfpgQBqL6ozIcQA0jiEzR6oJESHTQkJGZ7MSxXDO7d9uSNX X-Received: by 2002:a17:906:ad9a:: with SMTP id la26mr8779552ejb.128.1587029976035; Thu, 16 Apr 2020 02:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587029976; cv=none; d=google.com; s=arc-20160816; b=Vo8ei1aIjSY02eTQCxfp6u8eNIJnna1B7M5c0SzZEThf8FPdmWHuZLjU5tlq6OESrg aj9Yzp5RxExUAcwfbRPEbdihef+Dr/irkKpxf7klQhUgqzlpIlp3d8wji3dcw7vSR12J iyvffHfaPuxU39SdeYkJWHhMt+dRN57h3D8eDutUJfELvC6ktUxrjzoW1qA7L/oJ8JxF yY04vw03a84XcyMYOSa2nJXh7r7IOMtWKmV0E5qUlfpBzFGN4Zxn3ramn2cs1evogZT+ ps7t7LEu2t1zly+OWlU09lG67Ddd0uiaCwgZowU7xfJBbKm+WQlL/z1C+34F1JiakUSO FJGQ== 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 :dkim-signature; bh=T+rqi3L5FDJqD7YQTOqV2EpVQXTH9nkPrZpkHOsY7JM=; b=upGHcuQxaarkgCzLlts3Gmkey05NdRKnlGmG2tYUl6AwXRfVj8/kkz6NVPlpBeErEE ZXQMgJQLTRZ6EqGGsh8FzR57B4X+92V/A1nztzsgwaH3nine3GI/d0iqTKqZz4rtB6eJ gwVbkfO68sk+TxNJDYB7k53UGhMqNwEzO940CvWVwtiW+63BWXctI7Oiu5tNiJXSJ/Tz 2alY2c3qHd1HrWSuJ3XZzCOOi6Njok58Nsp7XGL3XHQA0Z1BJ4I/Vqb69605hnaIpFCy v0zrqnGuovf1ePwMOxmlOJHzZ0qudxZvkmzdKsPZIqdODt0NEgIdoUl5vxEMK/pTCdGy +x0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KWuBfUSW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y90si5421839ede.610.2020.04.16.02.39.05; Thu, 16 Apr 2020 02:39:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KWuBfUSW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503768AbgDPJix (ORCPT + 99 others); Thu, 16 Apr 2020 05:38:53 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:49709 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2503578AbgDPJiv (ORCPT ); Thu, 16 Apr 2020 05:38:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587029929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=T+rqi3L5FDJqD7YQTOqV2EpVQXTH9nkPrZpkHOsY7JM=; b=KWuBfUSWq3LQRvNHnX9dI29xs/GALxbNPFEQJblPbVi1tAX6YsCnzo4PizzqauCsjAI6t3 mCyIZTfWqXbHC6fF1Ox3B+J6VCGqpGtvgR9bSdwvBOV75EAOuOTQEfjplMnIWjQnGKM/Z3 p5GSvoQqyIEi6tRluQtef7t5SwJoufQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-471-uGpiPWxRNdCNHcn7i7BxBw-1; Thu, 16 Apr 2020 05:38:47 -0400 X-MC-Unique: uGpiPWxRNdCNHcn7i7BxBw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 972E910CE787; Thu, 16 Apr 2020 09:38:45 +0000 (UTC) Received: from work (unknown [10.40.192.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D93E0A0997; Thu, 16 Apr 2020 09:38:44 +0000 (UTC) Date: Thu, 16 Apr 2020 11:38:40 +0200 From: Lukas Czerner To: "Theodore Y. Ts'o" Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH] e2scrub: Remove PATH setting from the scripts Message-ID: <20200416093840.y5w2azeivn6mhbnu@work> References: <20200402134716.3725-1-lczerner@redhat.com> <20200410161635.GP45598@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200410161635.GP45598@mit.edu> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Apr 10, 2020 at 12:16:35PM -0400, Theodore Y. Ts'o wrote: > 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 don't understand, e2scrub should be in be in sbin as well, right ? Besides what if such user wants to run lvcreate, or lvremove ? This seems like a problem that should be fixed somewhere else. > > I suppose we could do something like > > PATH=$PATH:/sbin:/usr/sbin that's better than replacing it. -Lukas > > instead, but otherwise, users will see some unexpected failures. > > - Ted >