Ticket #4218 (new defect)
Opened 4 years ago
file copy override at sticky-bit directory failed with permission denied
Reported by: | and | 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
file copy overwrite at sticky-bit directory (usual /tmp) failed with permission denied even as root user.
Steps to reproduce:
- create testcase
root# mkdir /test/ root# chmod 1777 /test/ root# touch /test/t1 root# touch /test/t2 root# chown nobody:nobody /test/t1
- start mc as root -> copy t1 to t2 -> Overwrite this file? -> yes
Actual result:
mc response with "Cannot create target file /test/t2" -> Permission denied (13)
tested and failed also with older e.g. mc-4.8.22
Expected result:
Should work like successful cp
root# cp -p /test/t1 /test/t2
Note: See
TracTickets for help on using
tickets.