From: merch-redmine@... Date: 2018-12-17T22:07:37+00:00 Subject: [ruby-core:90593] [Ruby trunk Bug#15429] Fix test failure if ENV["USER"] doesn't match Process.euid Issue #15429 has been reported by jeremyevans0 (Jeremy Evans). ---------------------------------------- Bug #15429: Fix test failure if ENV["USER"] doesn't match Process.euid https://bugs.ruby-lang.org/issues/15429 * Author: jeremyevans0 (Jeremy Evans) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.0dev (2018-12-17 trunk 66427) [x86_64-openbsd] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- When dropping privileges to run tests, ENV["USER"] could be set to a user that doesn't match Process.euid, which causes test_seteuid_name to fail with Errno::EPERM. Attached is a patch that fixes this issue by trying to get the name for the current euid, and only fallback to ENV["USER"] if that doesn't work. ---Files-------------------------------- 0001-Fix-test-failure-if-ENV-USER-doesn-t-match-Process.e.patch (1 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: