aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-01-16 22:37:25 +0000
committerOlivier Blin <blino@mageia.org>2011-01-16 22:37:25 +0000
commit85bde58d8a203717865c8c525c032a08d22214d5 (patch)
treedf6d40edfe737e8e8d8deab67e8571ade972ebde
parentc75ebc4dc984937b74ca27aa5cbfe2fc4acb02fa (diff)
downloadiurt-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-xiurt22
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 3a8dc3e..c783c7f 100755
--- a/iurt2
+++ b/iurt2
@@ -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) {