s3-privileges: add handling of both old and new formats in database
authorAndrew Tridgell <tridge@samba.org>
Fri, 3 Sep 2010 06:33:41 +0000 (16:33 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Sep 2010 08:46:12 +0000 (18:46 +1000)
commit86fdb4c152d40ce862dea0ca7b5790df4b168289
tree97c20bea67b98fc5baac508b62f66a6d28b312df
parent45aecc283398a061f185ebc5577fcb4de0b89262
s3-privileges: add handling of both old and new formats in database

We update privileges on a per-record basis instead of all at once, as
this maintains maximum compatibility is someone uses old tools with a
new version of Samba. The also auto-detects the byte order of the old
entries in the database, and copes with either native or reversed byte
order.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source3/lib/privileges.c