[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kio/kio
From: Stephan Binner <binner () kde ! org>
Date: 2003-01-31 20:38:31
[Download RAW message or body]
CVS commit by binner:
Don't let -X emulation interfere with mandatory file locking.
M +7 -1 chmodjob.cpp 1.10
--- kdelibs/kio/kio/chmodjob.cpp #1.9:1.10
@@ -149,5 +149,11 @@ void ChmodJob::slotEntries( KIO::Job*, c
int newPerms = m_permissions & mask;
if ( (newPerms & 0111) && !(permissions & 0111) )
+ {
+ // don't interfere with mandatory file locking
+ if ( newPerms & 02000 )
+ mask = mask & ~0101;
+ else
mask = mask & ~0111;
+ }
}
info.permissions = ( m_permissions & mask ) | ( permissions & ~mask );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic