[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/rbm][main] Bug 40087: Set permissions on downloaded files according to umask



Title: GitLab

boklm pushed to branch main at The Tor Project / Applications / RBM

Commits:

  • 8c5f3899
    by Nicolas Vigier at 2025-08-14T11:34:35+02:00
    Bug 40087: Set permissions on downloaded files according to umask
    

1 changed file:

Changes:

  • lib/RBM/DefaultConfig.pm
    ... ... @@ -579,9 +579,11 @@ set -e
    579 579
             SET rbm_tmp_dir = c("rbm_tmp_dir");
    
    580 580
         END;
    
    581 581
         -%]
    
    582
    -tmpfile="\$(mktemp -p [% shell_quote(rbm_tmp_dir) %])"
    
    582
    +tmpdir="\$(mktemp -d -p [% shell_quote(rbm_tmp_dir) %])"
    
    583
    +tmpfile="\$tmpdir"/download
    
    583 584
     wget[% IF !c("getting_id") && !c("isatty") %] --no-verbose[% END %] -O"\$tmpfile" [% shell_quote(c("URL")) %]
    
    584 585
     mv -f "\$tmpfile" [% shell_quote(dest_dir _ "/" _ c("filename")) %]
    
    586
    +rmdir "\$tmpdir"
    
    585 587
     URLGET
    
    586 588
         sig_ext => [ qw(gpg asc sig) ],
    
    587 589
         enable => 1,
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx