FS#31548 - [util-linux] su deletes /sbin from path

Attached to Project: Arch Linux
Opened by Tobias Powalowski (tpowa) - Saturday, 15 September 2012, 12:36 GMT
Last edited by Tom Gundersen (tomegun) - Friday, 12 October 2012, 13:39 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If you use su youruser, PATH changes and /sbin is thrown out.
This results in weird behaviour.
su -l fixes this, but was this change wanted?
This task depends upon

Closed by  Tom Gundersen (tomegun)
Friday, 12 October 2012, 13:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  In 2.22.1-1
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 28 September 2012, 23:28 GMT
PATH is inherit from enviroment but /sbin /usr/sbin and /usr/local/sbin are removed [#1] if no -p/-m is specified [#2]


[#1] https://github.com/karelzak/util-linux/blob/master/login-utils/su-common.c#L490
[#2] https://github.com/karelzak/util-linux/blob/master/login-utils/su-common.c#L537

Loading...