Skip to content

extended ACLs are not copied (copy, move) #4451

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4451
Reporter clemens (@gullevek)
Keywords acl, copy, move

Version:

GNU Midnight Commander 4.8.26
Built with GLib 2.66.8
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor and Aspell support
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Description

When using copy or move on the same file system or between file systems the set ACLs are not copied over

MC view:
Source

│ File: bar
│  Location:   10303h:21734h
│  Mode:       drwxrwxr-x (0775)
│  Attributes: -----------------e-------
│  Links:      2
│  Owner:      admin/admin
│  Size:       4096 (8 blocks)
│  Changed:    Mar 17 10:19
│  Modified:   Mar 17 09:40
│  Accessed:   Mar 17 10:19
│  Filesystem: /
│  Device:     /dev/nvme0n1p1
│  Type:       ext4 (10303h)
│  Free space: 29G/49G (58%)
│  Free nodes: 2850212/3268608 (87%)

Getfacl view:
On source folder

>$ getfacl bar
# file: bar
# owner: admin
# group: admin
user::rwx
group::r-x
group:staff:rwx
mask::rwx
other::r-x

After Copy/Move
On target folder

>$ getfacl bar
# file: bar/
# owner: admin
# group: admin
user::rwx
group::rwx
other::r-x

MC View
On target folder

│ File: bar
│  Location:   10303h:2172Eh
│  Mode:       drwxrwxr-x (0775)
│  Attributes: -----------------e-------
│  Links:      2
│  Owner:      admin/admin
│  Size:       4096 (8 blocks)
│  Changed:    Mar 17 10:56
│  Modified:   Mar 17 09:40
│  Accessed:   Mar 17 10:19
│  Filesystem: /
│  Device:     /dev/nvme0n1p1
│  Type:       ext4 (10303h)
│  Free space: 29G/49G (58%)
│  Free nodes: 2850209/3268608 (87%)

Turning "Preserve attributes" on or off doesn't change the outcome

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues not related to a specific subsystemprio: lowMinor problem or easily worked around

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions