https://bugs.kde.org/show_bug.cgi?id=103331

--- Comment #18 from bjoe...@arcor.de ---
(In reply to Maximiliano Curia from comment #16)
> This patch breaks the setgid directories and default acl semantics. It might
> be better to avoid setting the group if the dest dir is setgid, and avoid
> setting the file permissions if the destdir has a default acl value.

I agree in case of normal copy operations. But in case of Kate editor's backups
(initial subject of this report) it may not be wise to ignore to set
permissions or groups in special situations. Both can again result in
situations, where some users have more permissions on the backup file than on
the original.

A flag like "--preserve" for the "cp" command can be used to make preserving of
permissions and groups optional.

I can recommend the file operations code of the VIM editor. It contains code
for handling backups and all kinds of ACLs:

https://github.com/vim/vim/blob/master/src/fileio.c
https://github.com/vim/vim/blob/master/src/os_unix.c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to