Ticket #3814 (new defect)

Opened 7 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:

  1. Ensure you have two user groups in system ("users" and "some_user", for example), and test user is included in both.
  2. Create directory "source" owned by test user, "some_user" group.
  3. Create directory "target" owned by test user, "users" group.
  4. Set group-sticky bit for "target" directory: chmod g+s target
  5. Copy "source" directory to "target" directory with MC (with or without "Preserve attributes" flag).
  6. 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

0001-group-sticky-bit-fix.patch (1.6 KB) - added by math_coder 7 years ago.
Fix, which I use as temporary solution

Change History

Changed 7 years ago by math_coder

Fix, which I use as temporary solution

Note: See TracTickets for help on using tickets.