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

Oliver Schramm <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kio/-/commit/8a0d9b6
                   |                            |4849115dd40ac20b3f20d9ff645
                   |                            |a32e71
             Status|REPORTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Oliver Schramm <[email protected]> ---
Git commit 8a0d9b64849115dd40ac20b3f20d9ff645a32e71 by Oliver Schramm.
Committed on 04/11/2025 at 20:20.
Pushed by meven into branch 'master'.

trashimpl: better determine trashForMountPoint for network file systems

With uid mapping the local userid and remote userid might not match;
if permissions are checked by ownership, KIO won't consider a trash
directory even if it is writable.
This forced a fallback to the home trash which could mean moving a file
over a network, which is catastrophic for huge file sizes.

To fix this, instead of checking ownership and mode bits, use access()
which correctly queries the VFS for permission.

Signed-off-by: Oliver Schramm <[email protected]>

M  +8    -8    src/kioworkers/trash/trashimpl.cpp

https://invent.kde.org/frameworks/kio/-/commit/8a0d9b64849115dd40ac20b3f20d9ff645a32e71

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

Reply via email to