]> arthur.barton.de Git - bup.git/commit
Avoid uid/gid 0 metadata tests when ids don't exist 0.26-rc2
authorPatrick Rouleau <prouleau72@gmail.com>
Thu, 3 Jul 2014 00:58:39 +0000 (20:58 -0400)
committerRob Browning <rlb@defaultvalue.org>
Thu, 3 Jul 2014 18:09:10 +0000 (13:09 -0500)
commitab8abd11a5a542981c525572406a12f5eaa9a521
tree61c734ef7b4fec7fe9239dbe330eb2ef8db0b954
parent2a329adae165b509eb92c8f1d5cac48d771882bf
Avoid uid/gid 0 metadata tests when ids don't exist

Cygwin may not have a 0 uid/gid, so skip the relevant tests whenever
it doesn't.

We have to explicitly exclude the gid 0 from other_group, because
/etc/group may define a group named root with the same id as
Administrators. We cannot use "root" instead of 0, because root may
not be defined.

Cygwin users: If you want to define the root group, add this line
at the begining of /etc/group:
  root:S-1-5-32-544:0:

Signed-off-by: Patrick Rouleau <prouleau72@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-restore-map-owner.sh