[Bug 2791] Match host exec doesn't resolve SHELL in the PATH
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Oct 24 20:19:09 AEDT 2017
https://bugzilla.mindrot.org/show_bug.cgi?id=2791
--- Comment #2 from berdario at google.com ---
Uhm, system(3) should use sh(1)
manpages for sh(1) on my system are explicitly about bash, but
otherwise I think it should be about this:
http://pubs.opengroup.org/onlinepubs/009695399/utilities/sh.html
which says that the path for `sh` should be resolved from PATH
(I was under the impression that the POSIX standard specified that
/bin/sh would always have to exist, but I guess I was wrong?)
I haven't looked into openssh source code, but given the above, I'd be
surprised if it used system(3)
I understand that the behavior might not be changed, but the error
message
Unable to execute '/usr/bin/true': No such file or directory
Seems to be a bit misleading to me, given that the actual command
executed would've been something like
sh -c /usr/bin/true
Thanks anyhow for looking into this
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list