Package: base-files
Version: 12.4+deb12u1
Followup-For: Bug #1041357
Control: tags -1 patch

I made a patch that removes /bin and /sbin from /etc/profile.

I did not modify profile.md5sums because I don't know the correct version 
numbers that this would go into.
>From e2a4ee4f76a45484b01639924a908cab101317ec Mon Sep 17 00:00:00 2001
From: Your Name <y...@example.com>
Date: Fri, 4 Aug 2023 12:03:31 +0000
Subject: [PATCH] remove /bin and /sbin from default PATH

---
 share/profile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/profile b/share/profile
index de64c87..721369a 100644
--- a/share/profile
+++ b/share/profile
@@ -2,9 +2,9 @@
 # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
 
 if [ "$(id -u)" -eq 0 ]; then
-  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
 else
-  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
+  PATH="/usr/local/bin:/usr/bin:/usr/local/games:/usr/games"
 fi
 export PATH
 
-- 
2.39.2

Reply via email to