Bug 245169 - sftp forces 600 permissions for new files
Summary: sftp forces 600 permissions for new files
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: sftp (show other bugs)
Version: SVN
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Schneider
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 20:24 UTC by Chani
Modified: 2010-07-21 19:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.