Skip to content

cp: wrong sub-directories permissions with -a argument #8407

@seb128

Description

@seb128

The issue is happening on Ubuntu Questing and breaking installed tests for gdk-pixbuf
(https://bugs.launchpad.net/ubuntu/+source/gdk-pixbuf/+bug/2118905)

# ls -l ~/test-images
total 11
drwxr-xr-x 2 root root  43 Jul 28 15:07 fail
drwxr-xr-x 2 root root 232 Jul 28 15:07 gif-test-suite
drwxr-xr-x 2 root root  28 Jul 28 15:07 randomly-modified
drwxr-xr-x 3 root root  19 Jul 28 15:07 reftests

# ./target/debug/cp -a ~/test-images ~/test-images-coreutils
# ls -l ~/test-images-coreutils
total 11
drwx------ 2 root root  43 Jul 28 22:03 fail
drwx------ 2 root root 232 Jul 28 22:03 gif-test-suite
drwxr-xr-x 2 root root  28 Jul 28 15:07 randomly-modified
drwx------ 3 root root  19 Jul 28 22:03 reftests

# gnucp -a ~/test-images ~/test-images-gnu
# ls -l ~/test-images-gnu/
total 11
drwxr-xr-x 2 root root  43 Jul 28 15:07 fail
drwxr-xr-x 2 root root 232 Jul 28 15:07 gif-test-suite
drwxr-xr-x 2 root root  28 Jul 28 15:07 randomly-modified
drwxr-xr-x 3 root root  19 Jul 28 15:07 reftests

Questing a rust-coreutils 0.1.0 but the issue still seems to be there with a git main build

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions