diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 5f758474..a964083b 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -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) { diff --git a/install/upgrades/3.4.2.sql b/install/upgrades/3.4.2.sql index 613c02b7..3dfde5ee 100644 --- a/install/upgrades/3.4.2.sql +++ b/install/upgrades/3.4.2.sql @@ -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; +