diff options
| -rw-r--r-- | doc/mini-dinstall.1 | 4 | ||||
| -rw-r--r-- | doc/mini-dinstall.conf | 2 | ||||
| -rwxr-xr-x | mini-dinstall | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/doc/mini-dinstall.1 b/doc/mini-dinstall.1 index 5973a29..d8df2e9 100644 --- a/doc/mini-dinstall.1 +++ b/doc/mini-dinstall.1 @@ -119,7 +119,9 @@ Additional GnuPG keyrings to use for signature verification. .TP .B incoming_permissions The permissions for the \fIincoming\fR directory. \fBmini\-dinstall\fR will -attempt to set the directory's permissions at startup. Defaults to 0750. +attempt to set the directory's permissions at startup. A value of zero (\''0\'' +or \''0000\'') will disable permission setting. Doing this, you MUST set +permission for incoming by hand! Defaults to 0750. .TP .B keyrings GnuPG keyrings to use for signature verification of changes files. Setting this diff --git a/doc/mini-dinstall.conf b/doc/mini-dinstall.conf index 0c8d372..6c1e022 100644 --- a/doc/mini-dinstall.conf +++ b/doc/mini-dinstall.conf @@ -40,6 +40,8 @@ extra_keyrings = ~/.gnupg/pubring.gpg, ~/.gnupg/other.gpg # The permissions for the incoming directory. If you want to use # mini-dinstall for a group of people, you might want to make this # more permissive. +# A value of zero ('0' or '0000') will disable the permission setting on every +# mini-dinstall run. Doing this, you MUST set permission for incoming by hand. incoming_permissions = 0750 ### The remaining options can also be specified in a per-distribution diff --git a/mini-dinstall b/mini-dinstall index 6261934..9359fa5 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -173,6 +173,8 @@ def do_rename(source, target): do_and_log('Renaming "%s" to "%s"' % (source, target), os.rename, source, target) def do_chmod(name, mode): + if mode == 0: + return do_and_log('Changing mode of "%s" to %o' % (name, mode), os.chmod, name, mode) logger.setLevel(logging.DEBUG) |
