samba_upgradeprovision: Use tdb_util.tdb_copy not shutil.copy2
commit2fa152cc43f5be7b7f7d51642b9d3ef4289d3b00
authorAndrew Bartlett <abartlet@samba.org>
Sun, 17 Feb 2013 07:15:52 +0000 (17 18:15 +1100)
committerKarolin Seeger <kseeger@samba.org>
Sun, 7 Apr 2013 19:33:59 +0000 (7 21:33 +0200)
tree4400b8c4f032346046f262689a24c2790fb0c26e
parent116b8e605487a8bfa4ac4f4fc5167df03f5f486c
samba_upgradeprovision: Use tdb_util.tdb_copy not shutil.copy2

This is really important, because copying a file will both ignore
locks held by another process and break any locks we hold (due to
POSIX brain-damage regarding multiple fds on one file in a process).

By leaving this to tdbbackup in a child, both of these issues are avoided.

Andrew Bartlett

Reviewed-by: Matthieu Patou <mat@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Feb 19 07:48:18 CET 2013 on sn-devel-104
(cherry picked from commit 2cf83f7c645e4b216cf6f23857fd72ec0e6ca7a6)
source4/scripting/bin/samba_upgradeprovision