[Bug 3048] ssh reads from the wrong directory in user namespace
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Oct 11 20:16:12 AEDT 2023
https://bugzilla.mindrot.org/show_bug.cgi?id=3048
--- Comment #5 from chrysn at fsfe.org ---
Right, it says that it will *set* HOME. (It's just very tempting to
misread the "ENVIRONMENT" section to mean what it means in many other
programs: which variables are *consumed*).
Other docs, such as `contrib/cygwin/README` mention that HOME is *not*
used, but it's unclear whether that's platform dependent, and there are
occurrences of HOME spread in various files.
So there is no inconsistency with documentation. What remains is the
inconsistency with the behavior of shells (looked up bash and zsh), and
all language provided tilde expansions I've checked (GNU libc, Python).
If there is (given Darren's comment: if there is still) a reason to
only use getpwnam, that's fine with me, but please point it out in the
docs (along with the rationale for the behavior) -- but my impression
is that this behavior is a remnant of a long unused mechanism.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list