summaryrefslogtreecommitdiff
path: root/tests/cp/preserve-gid
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/preserve-gid')
-rwxr-xr-xtests/cp/preserve-gid4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid
index 5f2c05024..9537dc06c 100755
--- a/tests/cp/preserve-gid
+++ b/tests/cp/preserve-gid
@@ -1,7 +1,7 @@
#!/bin/sh
# Verify that cp -p preserves GID when it is possible.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -61,7 +61,7 @@ if test -z "$nameless_uid" \
skip_test_ "couldn't find a nameless UID or GID"
fi
-chown "+$nameless_uid" .
+chown "+$nameless_uid:+0" .
create a0 0 0
create b0 "$nameless_uid" "$nameless_gid1"