[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday 04 September 2007 19:09, Adrian Levi wrote:
> > Am Dienstag, 4. September 2007 21:55 schrieb Mike Bird:
> > >   rsync -a -H -S /src/ /dest/
> Would you not also need to set "umask 0000" to preserve existing file
> permissions?

umask limits the file mode of a file created by syscalls such as open.
Programs such as "cp" and "rsync" can either turn off umask internally
or use subsequent "chmod" syscalls to fix up the copies of the files
so that the copies have the same modes as the originals.

--Mike Bird

Reply to: