samba-tool: skip chown in sysvolreset when it would fail on a GID
commit2f0753b456c4d9b4eb52f128a83c8ba19adde160
authorAndrew Bartlett <abartlet@samba.org>
Fri, 5 Oct 2012 00:19:17 +0000 (5 10:19 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Oct 2012 13:24:44 +0000 (9 15:24 +0200)
tree639c0718640bf25f86394e5bf5c104da0e754d10
parent1c35c22e62253835e1c82fd44fe8532f6e79dbb9
samba-tool: skip chown in sysvolreset when it would fail on a GID

This skips the chown of the files if (for example) the domain Admins group
were to own the file and not be able to because the group maps only to a GID.

This essentially papers over the problem, but may be enough to get us past
the Samba 4.0 release.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Oct  9 15:24:44 CEST 2012 on sn-devel-104
source4/scripting/python/samba/ntacls.py
source4/scripting/python/samba/provision/__init__.py