[perl #123800] [BUG] copy doesn't copy the umask in Rakudo

2015-02-11 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #123800] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=123800 lizmat $ ls -ls big* lizmat 11724800 -rw--- 1 liz macports 6003097600 Feb 11

Re: [perl #123800] [BUG] copy doesn't copy the umask in Rakudo

2015-02-11 Thread Patrick R. Michaud
On Wed, Feb 11, 2015 at 04:21:32PM -0500, Parrot Raiser wrote: Not replicating the original file permissions on a copy would be a huge security hole. Anybody could copy a root-read-only file, examine the contents, modify them, and, if they had write access to the directory, replace it with the

Re: [perl #123800] [BUG] copy doesn't copy the umask in Rakudo

2015-02-11 Thread Parrot Raiser
Being really pedantic, the files have different permissions. I'm sure that's what Mazak meant. Umask is what is applied to the default permissions, to set the actual permissions when a new file is created. It only relates to the creation, not any subsequent states. Not replicating the original