adding CHMOD to actions + fixing Permission bits not properly set

This commit is contained in:
Benjamin Sonntag 2015-06-16 15:35:14 +02:00
parent 719c4502e8
commit f135d17e20
2 changed files with 5 additions and 1 deletions

View File

@ -572,7 +572,7 @@ class m_bro {
if ($perm[$i]['w']) {
$m=$m | 0220; // ug+w
} else {
$m=$m ^ 0222; // ugo-w
$m=$m & (~ 0222); // ugo-w
}
$action->chmod($absolute."/".$d[$i], $m);
if ($verbose) {

View File

@ -3,3 +3,7 @@
UPDATE domaines_type SET compatibility='' where name='cname';
UPDATE domaines_type SET compatibility=REPLACE(compatibility, 'cname,','');
ALTER TABLE actions
CHANGE `type`
`type` enum('CREATE_FILE','FIX_USER','CREATE_DIR','DELETE','MOVE','FIX_DIR','FIX_FILE','CHMOD') DEFAULT NULL;