[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200410161635.GP45598@mit.edu>
Date: Fri, 10 Apr 2020 12:16:35 -0400
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Lukas Czerner <lczerner@...hat.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH] e2scrub: Remove PATH setting from the scripts
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 <lczerner@...hat.com>
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
Powered by blists - more mailing lists