Skip to content

Commit b0f7dc1

Browse files
author
Florian Schaal
committed
restrict permissions for db-dump during prepareDBDump
1 parent 0722ce3 commit b0f7dc1

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)