dbcheck: Be more careful with link checks
authorAndrew Bartlett <abartlet@samba.org>
Mon, 24 Oct 2016 21:10:34 +0000 (10:10 +1300)
committerGarming Sam <garming@samba.org>
Tue, 22 Nov 2016 01:10:16 +0000 (02:10 +0100)
commitf051e5bf00d6df70048dd0cf901dd7b37be09669
tree9577dd19739b894f02720a53cb0e8b934d611d30
parent8315d4d03ac77f1727ff01e87392f6e49ba40def
dbcheck: Be more careful with link checks

Here we are more careful when checking links, flagging errors only
when a non-deleted forward link appears incorrect.  In particular, we
trust the GUID more than we trust the name, as otherwise we can get
caught out if there is a swap of names, (the link should follow the
swap, staying on the same target GUID).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12297
python/samba/dbchecker.py
selftest/knownfail