mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 21:14:28 +00:00
getlogin is only called if USER environment variable is not set, but if getlogin returns NULL in that case, then do not call getpwnam, and assume /bin/sh as shell. Mentioned in comment to bug 20586.