KFileSave bug

Nick Shaforostoff shafff at ukr.net
Fri Mar 9 13:35:37 GMT 2007


On Fri, 09 Mar 2007 13:00:37 +0200, <kde-core-devel-request at kde.org> wrote:
> On 3/8/07, Nick Shaforostoff <shafff at ukr.net> wrote:
>> KFileSave doesnt preserve original file's permissions (and ownerz)
>
> Permissions maybe, but how is it supposed to preserve the owner? That
> would totally violate the unix security model. Please could you
> provide a precise example of what the current behaviour is and what
> you'd prefer in comparison.

I test KAider (ran from kde-devel account) on kde svn .po files:
i 'chmod a+r *po && chmod a+w *po' under my usual account, then change one  
of .po files with KAider,
and then i cant even 'svn diff' from my main account, because the file  
cant be read.

because of this i have switched back to QFile
(kaider could take a little advantage of KFileSave anyway, cause it uses  
transaction-style saving ("begin transaction", "commit transaction"))





More information about the kde-core-devel mailing list