Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2023 22:34:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 268547] /bin/sh 'cd' should get user's home directory from password database if HOME is unset
Message-ID:  <bug-268547-227-2suPS3GlH3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268547-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268547

--- Comment #2 from Jilles Tjoelker <jilles@FreeBSD.org> ---
The code looks reasonable, but I don't really understand the point. What use
case is helped by this? Also note that this might use an unexpected directory
if there are multiple /etc/passwd lines for the same UID.

Apart from that, if you want this fallback here, you'll also want it for tilde
expansion without a user name (the tilde is currently left unchanged if HOME is
not set or empty).

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268547-227-2suPS3GlH3>