Jim Meyering <[EMAIL PROTECTED]> wrote: > sergio <[EMAIL PROTECTED]> wrote: >> Package: coreutils >> Version: 6.10-3 >> >> % touch qwe >> % chmod 640 qwe >> % umask u=rwx,g=rx,o=rx >> % ls -l qwe >> -rw-r----- 1 sergio sergio 0 Июн 25 22:53 qwe >> % cp --no-preserve=mode qwe asd >> % ls -l asd >> -rw-r----- 1 sergio sergio 0 Июн 25 22:54 asd > > Thank you for the report. > That is a bug even in the latest sources.
Actually, now I'm convinced that is _not_ a bug, but rather the intended behavior, since "cp --no-preserve=mode ..." is equivalent to "cp ...", and cp's default behavior is to use the src permission bits (masked via umask) as the destination permission bits. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
