[dolphin] [Bug 471972] chmod after file upload breaks sftp-server's Fedora-specific file permission enforcement

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Wed Jul 5 14:19:46 BST 2023


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

--- Comment #2 from regime_unsold498 at simplelogin.com ---
(In reply to Harald Sitter from comment #1)
> When the client asks for a given permissions set we need to try to apply
> that set in kio-sftp. Moving bug to dolphin, though I'm almost sure it tries
> to forward the permissions the local file has, so that too may be working as
> intended.

Isn't that already done by this line?
https://github.com/KDE/kio-extras/blob/master/sftp/kio_sftp.cpp#L1458

To my best knowledge, sftp-server preserves the mode requested by the client
(unless the -m switch is present, which is why it was implemented) without the
need of an additional chmod.

>From what I can tell, Dolphin passes the local permissions to kio core, which
passes them to kio sftp, all of which assume that file permissions should be
preserved.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list