Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sh_init(): rm directoryless '.profile' login file path
This applies a patch from Solaris: https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/160-CR7175995.patch There is no public information on why it's needed, but it seems sensible on the face of it. Using a file called '.profile' in the PWD on login, without a directory path, is redundant at best, since "$HOME/.profile" (e_profile, see data/msg.c) is already used. And if the PWD is not $HOME at login time, it seems to me there are serious problems and the last thing you want is to read some random and probably dodgy '.profile' from the PWD. src/cmd/ksh93/sh/init.c: sh_init(): login_files[]: - Remove redundant/problematic ".profile" entry.
- Loading branch information