diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-08-21 14:41:13 -0700 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2024-08-22 11:20:47 +0900 |
| commit | a3f5a043fa5b3cb9ae1c684708399f26716ae451 (patch) | |
| tree | dc244f14ef8fc6c529a2922718bfb76808cbf17d /test/ruby | |
| parent | ae886e0c83c0e3a3c838f48fb91efe253c027c6d (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
