Bug 353554 - odd permissions when copy file from CD
Summary: odd permissions when copy file from CD
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.47.0
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-05 07:40 UTC by Salvo "LtWorf" Tomaselli
Modified: 2025-03-24 22:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2015-10-05 07:40:48 UTC
My reported version is 5.14.0-1 (debian package) which doesn't seem available in the list of versions here.

I have copied some files from some CDs and they had permissions: -r--------
which is not what my umask would give them.

I then had to change the permissions to allow writing.

Reproducible: Always

Steps to Reproduce:
1. Copy some files from a CD to home directory
Comment 1 David Faure 2015-10-10 08:06:00 UTC
umask doesn't matter because these aren't new files, they are the result of a copy.
Basically KIO emulates `cp -a`, i.e. preserves permissions.
cp has command line options to choose whether to preserve or not, drag-n-drop doesn't ;)
So it's tricky to guess what the user wants. In your case you obviously didn't want readonly files, but in general, preserving permissions when copying is seen as a feature rather than a bug. So I'm not sure how to "magically make it right for everyone in all cases".
Comment 2 Christoph Feck 2015-12-03 20:44:36 UTC
Maybe it is possible to find out if the source file system is mounted "read-only", resulting in all files to have the "read-only" attribute.