#888631 dput: Allow override of remote ‘chmod’ operation

#888631#5
Date:
2018-01-28 01:20:17 UTC
From:
To:
Package: dput
Severity: minor
Control: block 389908 by -1
Control: block 876896 by -1


The ‘dput’ command currently forces a change of file permission (a
‘chmod’ operation) when uploading via some methods. This is
undesirable in some environments.

Implement configuration options to specify:

* Whether to perform the ‘chmod’ operation (default: yes).

* What permission flags to set (default: 0o0644).

#888631#14
Date:
2024-11-20 11:54:19 UTC
From:
To:
Hi Ben,
usecases is chmodding actually useful? Why not keep the default that
the remote assigns?

We just had some uploads fail, because:
- scp is nowadays sftp
- our remote does not allow starting shells, only sftp
- when I set this up, dput just worked
- when mika used it, it failed, because his -local- files were mode
  0664 instead of 0644.

And that's just a very strange failure IMO.

tl;dr: can the chmod call just go away?

Chris