Package: dput-ng
Version: 1.10
Severity: minor
Tags: patch

The file permissions for 'local' uploads are not ideal as 'install'
defaults to rwxr-xr-x, which doesn't make much sense for .changes,
.deb and similar files.

I've attached a patch that changes the permission to 0644 (-rw-r--r--)
Let me know if you think this should be a config option.
diff -Nru dputng/dput/uploaders/local.py dputng-patched/dput/uploaders/local.py
--- dputng/dput/uploaders/local.py	2015-08-18 10:01:06.000000000 -0600
+++ dputng-patched/dput/uploaders/local.py	2016-01-29 09:46:08.685827823 -0700
@@ -54,6 +54,8 @@
             whereto = os.path.join(os.environ["HOME"], whereto)
         dput.util.run_command([
             "install",
+            "--mode",
+            "0644",
             filename,
             whereto
         ])

Reply via email to