Verified Commit 8c5f3899 authored by boklm's avatar boklm
Browse files

Bug 40087: Set permissions on downloaded files according to umask

parent 1b1b183f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -579,9 +579,11 @@ set -e
        SET rbm_tmp_dir = c("rbm_tmp_dir");
    END;
    -%]
tmpfile="\$(mktemp -p [% shell_quote(rbm_tmp_dir) %])"
tmpdir="\$(mktemp -d -p [% shell_quote(rbm_tmp_dir) %])"
tmpfile="\$tmpdir"/download
wget[% IF !c("getting_id") && !c("isatty") %] --no-verbose[% END %] -O"\$tmpfile" [% shell_quote(c("URL")) %]
mv -f "\$tmpfile" [% shell_quote(dest_dir _ "/" _ c("filename")) %]
rmdir "\$tmpdir"
URLGET
    sig_ext => [ qw(gpg asc sig) ],
    enable => 1,