Bug 333214

Summary: kate sets executable bit upon save for php, javascript and html files mounted over sshfs
Product: [Applications] kate Reporter: aleha <nick_aleha>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: egorov, faure, mail, michel.ludwig
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description aleha 2014-04-08 21:50:22 UTC
Kate and also Kdevelop set the execute bit for php and html files upon save, on an sshfs mounted directory.
This behavior occurs only when saving a file and not when creating one, although if you create a file, make some more changes and then save it later, then it still sets it as executable.
This didn't happen with okteta.

Reproducible: Always

Steps to Reproduce:
1. Mount a dir over sshfs with default opts
2. Open an existing php or html file
3. Make some changes and save it
Comment 1 Sven Brauch 2014-04-08 21:53:54 UTC
I can reproduce this bug as described.
Comment 2 Dominik Haumann 2014-04-29 11:26:54 UTC
@David: I have not debugged this, but Kate uses KSaveFile while Okteta does not. Might this be an issue in KSaveFile?
Comment 3 Boris Egorov 2014-10-24 16:46:26 UTC
(In reply to Dominik Haumann from comment #2)
> @David: I have not debugged this, but Kate uses KSaveFile while Okteta does
> not. Might this be an issue in KSaveFile?

It is KSaveFile, I've debugged it today. Permissions changes after KSaveFile::finalize().

Duplicate of https://bugs.kde.org/show_bug.cgi?id=333577
Comment 4 Dominik Haumann 2014-10-29 19:46:27 UTC
Thanks for this info, then let's mark it as such. Well, this issue should then be fixed in KSaveFile and QSaveFile in Qt5 respectively...

*** This bug has been marked as a duplicate of bug 333577 ***