Summary: | chmod after file upload breaks sftp-server's Fedora-specific file permission enforcement | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | regime_unsold498 |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | kfm-devel, sitter |
Priority: | NOR | ||
Version First Reported In: | 22.12.3 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
regime_unsold498
2023-07-05 11:58:06 UTC
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. (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. Now this rings a bell. There was already a report about this! *** This bug has been marked as a duplicate of bug 345687 *** |