diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2014-08-19 15:45:46 +0530 |
---|---|---|
committer | Julian C. Dunn <jdunn@getchef.com> | 2014-08-27 13:13:14 -0400 |
commit | 3b389790688adb1007b33476ec2e2b6111e26d76 (patch) | |
tree | 230f505bfdc3daa704966db8ef2c342111d994fb /lib/mixlib/shellout/unix.rb | |
parent | 7070c0b3807a68cf56b0f38b21f7e0600d972dfb (diff) | |
download | mixlib-shellout-3b389790688adb1007b33476ec2e2b6111e26d76.tar.gz |
aix does not allow resetting real uid once the euid is changed to non-root.
Diffstat (limited to 'lib/mixlib/shellout/unix.rb')
-rw-r--r-- | lib/mixlib/shellout/unix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb index f93d2e5..cd9790a 100644 --- a/lib/mixlib/shellout/unix.rb +++ b/lib/mixlib/shellout/unix.rb @@ -121,8 +121,8 @@ module Mixlib def set_user if user - Process.euid = uid Process.uid = uid + Process.euid = uid end end |