Skip to content

Commit 39f51a4

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1' into 'stable-3.1'
restrict permissions for db-dump during prepareDBDump See merge request !643
2 parents 0722ce3 + b0f7dc1 commit 39f51a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/lib/update.lib.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function prepareDBDump() {
5959

6060
system("mysqldump -h ".escapeshellarg($conf['mysql']['host'])." -u ".escapeshellarg($conf['mysql']['admin_user'])." -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql ".$conf['mysql']['database']);
6161
}
62+
chmod('existing_db.sql', 0400);
63+
chown('existing_db.sql', 'root');
6264

6365
/*
6466
* If we have a server with nothing in it except VE's then the database of thie server is empty.

0 commit comments

Comments
 (0)