Bug 253678

Summary: Unprecise error message when creating symlink on partition that does not support that
Product: [Frameworks and Libraries] frameworks-kio Reporter: Kai Uwe Broulik <KaiUweBroulik2>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kde, kdelibs-bugs-null, nate
Priority: NOR Keywords: junior-jobs, usability
Version First Reported In: 5.47.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.86
Sentry Crash Report:
Attachments: Error message displayed (german)

Description Kai Uwe Broulik 2010-10-09 17:22:48 UTC
Created attachment 52372 [details]
Error message displayed (german)

Version:           SVN
OS:                Linux

If you want to create a symlink on a partition/filesystem that does not support it (e.g. a FAT32 usb stick) you end up with an error “Cannot create link. Check your permissions”. It is correct that it cannot create one but it‘s because the file system does not support that.
If it is certainly known that the filesystem does not support symbolic links (NTFS does but in a different way while FAT does not) then say so.

(Also this dialog box lacks an error icon and stuff)

Reproducible: Always
Comment 1 Ahmad Samir 2021-08-12 10:01:26 UTC
Git commit c27196acc33243db1da847a43a63f3442b261688 by Ahmad Samir.
Committed on 12/08/2021 at 09:59.
Pushed by ahmadsamir into branch 'master'.

kio_file: detect failure to create symlinks due to filesystem support

The symlink() system call sets errno to EPERM (operation not permitted)
when the filesystem doesn't support symlinks; check the filesystem type
so that we can show a better error message.
FIXED-IN: 5.86

M  +26   -7    src/ioslaves/file/file_unix.cpp

https://invent.kde.org/frameworks/kio/commit/c27196acc33243db1da847a43a63f3442b261688