| Summary: | New files on SFTP remote folders are created with all permission bits set/enabled | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] kio-extras | Reporter: | Kishore Gopalakrishnan <kishore96> |
| Component: | SFTP | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | gaaf, john.kizer |
| Priority: | NOR | ||
| Version First Reported In: | 24.12.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Other | ||
| Latest Commit: | https://invent.kde.org/network/kio-extras/-/commit/edebcef5933836dd9bfc8d2cac9b68bb43d71c41 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Kishore Gopalakrishnan
2025-01-19 15:51:27 UTC
Hi - thanks for your bug report! I can reproduce this on Fedora KDE 41: $ stat --format="%a %A" "Downloads/testbugs/Text File.txt" 7777 -rwsrwsrwt I noticed it too and submitted a merge request at: https://invent.kde.org/network/kio-extras/-/merge_requests/479 Git commit edebcef5933836dd9bfc8d2cac9b68bb43d71c41 by Méven Car, on behalf of Alex Hermann. Committed on 01/12/2025 at 13:43. Pushed by meven into branch 'master'. sftp: Fix detection of empty permissions Commit 04e710b6e5674fe39d314c20c31b956298a918c8 removed the check for mode < 0, but that is exactly what is fed to ::copy() and ::put() by their callers. Re-add the check and make the mode variable an int so a negative value doesn't get lost. M +4 -1 sftp/kio_sftp.cpp https://invent.kde.org/network/kio-extras/-/commit/edebcef5933836dd9bfc8d2cac9b68bb43d71c41 |