Ticket #3814 (new defect)
Opened 8 years ago
MC does not set group-sticky bit when copy directory to directory with group-sticky bit
Reported by: | math_coder | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Steps to reproduce:
- Ensure you have two user groups in system ("users" and "some_user", for example), and test user is included in both.
- Create directory "source" owned by test user, "some_user" group.
- Create directory "target" owned by test user, "users" group.
- Set group-sticky bit for "target" directory: chmod g+s target
- Copy "source" directory to "target" directory with MC (with or without "Preserve attributes" flag).
- Check ownership and mode of copied directory:
~$ ls -ld target/source
Actual result:
Copied directory is owned by "users" group but does not have group-sticky bit. (The result does not depend of "Preserve attributes" flag.)
Expected result:
Copied directory is owned by "users" group but and has group-sticky bit. (The result should not depend of "Preserve attributes" flag.)
Attachments
Change History
Changed 8 years ago by math_coder
- Attachment 0001-group-sticky-bit-fix.patch added
Note: See
TracTickets for help on using
tickets.
Fix, which I use as temporary solution