summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2024-08-21 14:41:13 -0700
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-08-22 11:20:47 +0900
commita3f5a043fa5b3cb9ae1c684708399f26716ae451 (patch)
treedc244f14ef8fc6c529a2922718bfb76808cbf17d /test/ruby
parentae886e0c83c0e3a3c838f48fb91efe253c027c6d (diff)
Handle getlogin failure in PTY.spawn
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11427
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions