mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 04:53:18 +01:00
statcache need to be updated on chmod, chown or chgrp
This commit is contained in:
parent
176b12e18d
commit
079e7d81eb
@ -889,6 +889,10 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
}
|
||||
$stmt = self::$pdo->prepare('UPDATE '.self::TABLE.' SET fs_uid=:fs_uid WHERE fs_id=:fs_id');
|
||||
|
||||
// update stat-cache
|
||||
if ($path != '/' && substr($path,-1) == '/') $path = substr($path, 0, -1);
|
||||
self::$stat_cache[$path]['fs_uid'] = $owner;
|
||||
|
||||
return $stmt->execute(array(
|
||||
'fs_uid' => (int) $owner,
|
||||
'fs_id' => $stat['ino'],
|
||||
@ -930,6 +934,10 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
}
|
||||
$stmt = self::$pdo->prepare('UPDATE '.self::TABLE.' SET fs_gid=:fs_gid WHERE fs_id=:fs_id');
|
||||
|
||||
// update stat-cache
|
||||
if ($path != '/' && substr($path,-1) == '/') $path = substr($path, 0, -1);
|
||||
self::$stat_cache[$path]['fs_gid'] = $owner;
|
||||
|
||||
return $stmt->execute(array(
|
||||
'fs_gid' => $owner,
|
||||
'fs_id' => $stat['ino'],
|
||||
@ -969,6 +977,10 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
}
|
||||
$stmt = self::$pdo->prepare('UPDATE '.self::TABLE.' SET fs_mode=:fs_mode WHERE fs_id=:fs_id');
|
||||
|
||||
// update stat cache
|
||||
if ($path != '/' && substr($path,-1) == '/') $path = substr($path, 0, -1);
|
||||
self::$stat_cache[$path]['fs_mode'] = ((int) $mode) & 0777;
|
||||
|
||||
return $stmt->execute(array(
|
||||
'fs_mode' => ((int) $mode) & 0777, // we dont store the file and dir bits, give int overflow!
|
||||
'fs_id' => $stat['ino'],
|
||||
|
Loading…
Reference in New Issue
Block a user