diff options
author | Olivier Blin <blino@mageia.org> | 2011-01-16 22:37:25 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-01-16 22:37:25 +0000 |
commit | 85bde58d8a203717865c8c525c032a08d22214d5 (patch) | |
tree | df6d40edfe737e8e8d8deab67e8571ade972ebde | |
parent | c75ebc4dc984937b74ca27aa5cbfe2fc4acb02fa (diff) | |
download | iurt-85bde58d8a203717865c8c525c032a08d22214d5.tar iurt-85bde58d8a203717865c8c525c032a08d22214d5.tar.gz iurt-85bde58d8a203717865c8c525c032a08d22214d5.tar.bz2 iurt-85bde58d8a203717865c8c525c032a08d22214d5.tar.xz iurt-85bde58d8a203717865c8c525c032a08d22214d5.zip |
use umask to write sudoers file (so that it gets 0440 perms as expected by sudo)
-rwxr-xr-x | iurt2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1454,7 +1454,7 @@ $user ALL=(ALL) NOPASSWD:RPM close $f; plog("adding sudo for /bin/rpm, /usr/sbin/urpmi and /usr/sbin/urpme"); - my $ret = sudo($run, $config, '--cp', $tmpfile, $file); + my $ret = sudo($run, $config, '--cp', '--umask', 0337, $tmpfile, $file); unlink $tmpfile; if (!$ret) { |