Skip to content

Commit fc7f1b1

Browse files
author
Till Brehm
committed
Fixed: FS#3736 - Bind slave file directory has wrong permissions
1 parent d907c0c commit fc7f1b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public function configure_bind() {
621621

622622
//* Chown the slave subdirectory to $conf['bind']['bind_user']
623623
exec('chown '.$conf['bind']['bind_user'].':'.$conf['bind']['bind_group'].' '.$content);
624-
exec('chmod 770 '.$content);
624+
exec('chmod 2770 '.$content);
625625

626626
}
627627

install/lib/installer_base.lib.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,11 +1230,12 @@ public function configure_bind() {
12301230

12311231
//* Create the slave subdirectory
12321232
$content .= 'slave';
1233-
if(!@is_dir($content)) mkdir($content, 0770, true);
1233+
if(!@is_dir($content)) mkdir($content, 2770, true);
12341234

12351235
//* Chown the slave subdirectory to $conf['bind']['bind_user']
12361236
chown($content, $conf['bind']['bind_user']);
12371237
chgrp($content, $conf['bind']['bind_group']);
1238+
chmod($content, 2770);
12381239

12391240
}
12401241

0 commit comments

Comments
 (0)