Bug 245169

Summary: sftp forces 600 permissions for new files
Product: [Frameworks and Libraries] kio Reporter: Chani <chanika>
Component: sftpAssignee: Andreas Schneider <asn>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Chani 2010-07-19 20:24:00 UTC
Version:           SVN (using Devel) 
OS:                Linux

when I save from ksnapshot to my webspace, it used to work just fine. now it sets the screenshot's permissions to 600 - not very useful to a web server ;) I keep forgetting and sending people 403'd links :/

Reproducible: Always

Steps to Reproduce:
I tested with dolphin, and this is only with sftp and new files - it can correctly copy the permissions of existing files, and ksnapshot uses correct permissions locally.
Comment 1 Andreas Schneider 2010-07-21 16:50:01 UTC
SVN commit 1152597 by anschneider:

kio_sftp: Change initial mode to 0644.

BUG: 245169


 M  +1 -1      kio_sftp.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1152597
Comment 2 Chani 2010-07-21 18:44:55 UTC
thanks :)
...although, someday it ought to respect umask or something, right?
Comment 3 Andreas Schneider 2010-07-21 19:03:16 UTC
The server has to respect the umask if you're talking about the remote side. If you're talking about your client and local files then it is a bug in KIO file slave.