[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2535: Magic Folder: permissions of downloaded files are not set according to the user's umask

Tahoe-LAFS trac at tahoe-lafs.org
Sun Oct 25 11:25:15 UTC 2015


#2535: Magic Folder: permissions of downloaded files are not set according to the
user's umask
-------------------------------------+-------------------------------------
     Reporter:  dawuud               |      Owner:  daira
         Type:  defect               |     Status:  new
     Priority:  normal               |  Milestone:  undecided
    Component:  code-frontend-       |    Version:  1.10.1
  magic-folder                       |   Keywords:  magic-folder
   Resolution:                       |  permissions security usability unix
Launchpad Bug:                       |
-------------------------------------+-------------------------------------

Comment (by daira):

 Note that the umask (or `[magic_folder]download.umask` entry) should only
 be used when writing a new file or directory. When replacing a file,
 [source:docs/proposed/magic-folder/remote-to-local-sync.rst] describes
 what should happen:

 > The implementation of file replacement differs between Unix and Windows.
 On Unix, it can be implemented as follows:
 >
 > * 4a. Set the permissions of the replacement file to be the
 >   same as the replaced file, bitwise-or'd with octal 600
 >   (`rw-------`).

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2535#comment:9>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list