I have a directory with setfacl and setgid flak on it so newly created stuff inside directory have a set group as parent directory mkdir foo chmod g+s foo when I try to copy by midnight commander ie select in one panel and directory foo in second panel as destination, even with the PRESERVE ATTRIBUTES NOT checked, newly created directories under foo does not have a s bit set . Hovewer, copying the same things with plain cp source/* /path/to/foo work and s bit of foo directory is preserved on copied subdirs I consider it is a bug. Reproducible: Always Steps to Reproduce: 1.mkdir foo 2.chmod g+s foo 3. in mc select some files and directories as source 4. set preserve attributes as NOT checked and copy to foo Actual Results: ls -al drwxrws--- foo cd foo ls -al all copied directories drwxrwx--- but not s Expected Results: newly created (ie copied) directories to foo/something to honour g+s of the parent directory, like plain cp does version of mc = 4.8.15
(In reply to M. Prášek from comment #0) > I have a directory with setfacl and setgid flak on it so newly created stuff > inside directory have a set group as parent directory > > mkdir foo > chmod g+s foo > > when I try to copy by midnight commander ie select in one panel and > directory foo in second panel as destination, even with the PRESERVE > ATTRIBUTES NOT checked, newly created directories under foo does not have > a s bit set . > > Hovewer, copying the same things with plain cp source/* /path/to/foo work > and s bit of foo directory is preserved on copied subdirs > > I consider it is a bug. > > > Reproducible: Always > > Steps to Reproduce: > 1.mkdir foo > 2.chmod g+s foo > 3. in mc select some files and directories as source > 4. set preserve attributes as NOT checked and copy to foo > > > Actual Results: > > ls -al > drwxrws--- foo > cd foo > ls -al > all copied directories > drwxrwx--- but not s > > > Expected Results: > newly created (ie copied) directories to foo/something to honour g+s of the > parent directory, like plain cp does > > version of mc = 4.8.15 You have picked not to preserve attributes (I use this option to copy files over to FTP and other non-posix filesystems). I'm not sure what the semantics are here. Can you file upstream bug report at https://midnight-commander.org/, explain your use case there and link the bug here?
Please file an upstream bug to clarify semantics. I'm not convinced it's a bug.