[fix] chmod action requiring a SQL change + lost action global reference in m_bro

This commit is contained in:
alban 2014-09-16 18:40:50 +02:00
parent 4cfa0d3603
commit 6b033580c9
2 changed files with 3 additions and 1 deletions

View File

@ -556,7 +556,7 @@ class m_bro {
* @return boolean TRUE Si les fichiers ont t renomms, FALSE si une erreur s'est produite.
*/
function ChangePermissions($R,$d,$perm,$verbose=false) {
global $err;
global $err, $action;
$absolute=$this->convertabsolute($R,false);
if (!$absolute) {
$err->raise("bro",_("File or folder name is incorrect"));

View File

@ -0,0 +1,2 @@
ALTER TABLE `actions` CHANGE `type` `type` ENUM('CREATE_FILE','FIX_USER','CREATE_DIR','DELETE','MOVE','FIX_DIR','FIX_FILE','CHMOD') DEFAULT NULL ;