Blame SOURCES/0001-Remove-local-PATH.patch

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