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
I can reproduce this bug as described.
@David: I have not debugged this, but Kate uses KSaveFile while Okteta does not. Might this be an issue in KSaveFile?
(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
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 ***