Re: Patching the default PATH of `su`

2018-04-06 Thread Leo Famulari
On Fri, Apr 06, 2018 at 10:01:57AM +0200, Ludovic Courtès wrote: > Probably, yes. It would be good to check how this affects > mingetty/login, sshd, etc. Okay. I can test the change. > Note that libc also has its own default PATH value in : > > /* Default search path. */ > #define

Re: Patching the default PATH of `su`

2018-04-06 Thread Ludovic Courtès
Hello, Leo Famulari skribis: > In the man page of su(1), it says this: > > -- > The current environment is passed to the new shell. The value of $PATH is > reset to > /bin:/usr/bin for normal users, or /sbin:/bin:/usr/sbin:/usr/bin for the > superuser. > This may be