<br><br><div><span class="gmail_quote">On 10/9/07, <b class="gmail_sendername">Thiago Macieira</b> <<a href="mailto:thiago@kde.org">thiago@kde.org</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Em Tuesday 09 October 2007 19:45:47 Maksim Orlovich escreveu:<br>> The problem here isn't really KMimeType. What happens is that<br>> KFolderMimeType looks for a .directory file to get a comment, and uses a<br>> KDesktopFile to read that. KDesktopFile/KConfig tries to lock the file
<br>> with KLockFile. KLockFile can't, no permissions in /usr/include, so it<br><br>It shouldn't be locking a file that it can't write to anyways.</blockquote><div><br class="webkit-block-placeholder"></div>
<div>you're right, I haven't had a chance to go back and look at lock() yet, that's probably what was causing all those "can't lock local file" warnings also. Does this patch fix it?</div><br><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
And it should be considered an "administration error" to modify a shared file<br>while it's in use. (That's why there are tools like vipw to edit /etc/passwd<br>and save it atomically)<br><br>--<br> Thiago Macieira - thiago (AT) 
<a href="http://macieira.info">macieira.info</a> - thiago (AT) <a href="http://kde.org">kde.org</a><br>  PGP/GPG: 0x6EF45358; fingerprint:<br>  E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358<br><br></blockquote></div><br>