From: Joseph Sutton Date: Tue, 16 Mar 2021 09:20:21 +0000 (+1300) Subject: netcmd: Avoid database corruption by opting not to create database files during an... X-Git-Tag: tevent-0.11.0~1427 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05b17c98598168b6d74a3f2dd0d9973e3bf407c1;p=thirdparty%2Fsamba.git netcmd: Avoid database corruption by opting not to create database files during an offline domain backup If backup dirs contain hardlinks, the backup process could previously attempt to open an LMDB database already opened during the backup, causing it to be recreated as a new TDB database. This commit ensures that new database files are not created during this operation, and that the main SamDB database is not modified. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14027 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall