|
|
99f9b0 |
From e788b8ae43e176221c6d5c4a20e6ca7b4198ac45 Mon Sep 17 00:00:00 2001
|
|
|
99f9b0 |
From: Lukas Czerner <lczerner@redhat.com>
|
|
|
99f9b0 |
Date: Fri, 2 Jul 2021 11:56:02 +0200
|
|
|
99f9b0 |
Subject: [PATCH 1/4] Remove local PATH
|
|
|
99f9b0 |
|
|
|
99f9b0 |
---
|
|
|
99f9b0 |
scrub/e2scrub.in | 2 +-
|
|
|
99f9b0 |
scrub/e2scrub_all.in | 2 +-
|
|
|
99f9b0 |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
99f9b0 |
|
|
|
99f9b0 |
diff --git a/scrub/e2scrub.in b/scrub/e2scrub.in
|
|
|
99f9b0 |
index 30ab7cbd..bfca1ce4 100644
|
|
|
99f9b0 |
--- a/scrub/e2scrub.in
|
|
|
99f9b0 |
+++ b/scrub/e2scrub.in
|
|
|
99f9b0 |
@@ -23,7 +23,7 @@
|
|
|
99f9b0 |
# check filesystems in VGs that have at least 256MB (or so) of
|
|
|
99f9b0 |
# free space.
|
|
|
99f9b0 |
|
|
|
99f9b0 |
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
99f9b0 |
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
|
|
|
99f9b0 |
|
|
|
99f9b0 |
if (( $EUID != 0 )); then
|
|
|
99f9b0 |
echo "e2scrub must be run as root"
|
|
|
99f9b0 |
diff --git a/scrub/e2scrub_all.in b/scrub/e2scrub_all.in
|
|
|
99f9b0 |
index 4288b969..606ac254 100644
|
|
|
99f9b0 |
--- a/scrub/e2scrub_all.in
|
|
|
99f9b0 |
+++ b/scrub/e2scrub_all.in
|
|
|
99f9b0 |
@@ -18,7 +18,7 @@
|
|
|
99f9b0 |
# along with this program; if not, write the Free Software Foundation,
|
|
|
99f9b0 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
99f9b0 |
|
|
|
99f9b0 |
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
99f9b0 |
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
|
|
|
99f9b0 |
|
|
|
99f9b0 |
if (( $EUID != 0 )); then
|
|
|
99f9b0 |
echo "e2scrub_all must be run as root"
|
|
|
99f9b0 |
--
|
|
|
99f9b0 |
2.31.1
|
|
|
99f9b0 |
|