public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/setup] update_services: profile: do not add /usr/sbin to the path
@ 2026-06-22 15:56
0 siblings, 0 replies; only message in thread
From: @ 2026-06-22 15:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/setup
Branch : update_services
Commit : 827730533e34a87ff743c15f81e218488232dbc6
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-03-05T13:49:10+01:00
Stats : +3/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/setup/c/827730533e34a87ff743c15f81e218488232dbc6?branch=update_services
Log:
profile: do not add /usr/sbin to the path
On systems with merged-sbin, /usr/sbin is a symlink to /usr/bin
(https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin).
As reported in the Fedora Python channel,
python3 -c 'import sys; print(sys.executable)'
now returns /usr/sbin/python3 rather than /usr/bin/python3.
We don't want the symlinked directories in the $PATH at all.
---
diff --git a/profile b/profile
index 6ce1347..8bcc0e8 100644
--- a/profile
+++ b/profile
@@ -9,6 +9,9 @@
# will prevent the need for merging in future updates.
pathmunge () {
+ # If the path is a compat symlink, do nothing.
+ [ -h "$1" ] && return
+
case ":${PATH}:" in
*:"$1":*)
;;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-22 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 15:56 [rpms/setup] update_services: profile: do not add /usr/sbin to the path
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox