I can't reproduce this actually, but it seems clear that we do apply the umask when --preserve=mode (-a) is passed.
Curiously files get chmod()ed twice: root@jak-t14-g3:~# rm -rf b && strace -e chmod coreutils cp -a a b && ls -lh a b chmod("b/file", 0100700) = 0 chmod("b/file", 0100775) = 0 chmod("b/directory", 040775) = 0 chmod("b/", 040755) = 0 +++ exited with 0 +++ a: total 0 drwxrwxr-x 1 root root 0 Jul 29 13:15 directory -rwxrwxr-x 1 root root 0 Jul 29 13:11 file b: total 0 drwxrwxr-x 1 root root 0 Jul 29 13:15 directory -rwxrwxr-x 1 root root 0 Jul 29 13:11 file -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2118905 Title: cp -a doesn't preserve subdirectories permissions To manage notifications about this bug go to: https://bugs.launchpad.net/coreutils/+bug/2118905/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs