From: Paul Eggert Date: Wed, 28 Jul 2004 23:05:27 +0000 (+0000) Subject: Test for proper handling of uids like X-Git-Tag: v5.3.0~1038 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adab436e48c8d15c1447551e3e688e5ae2eea5b2;p=thirdparty%2Fcoreutils.git Test for proper handling of uids like "010", which must be parsed as decimal. --- diff --git a/tests/chown/basic b/tests/chown/basic index 908ef119c3..da6a3d1eb3 100755 --- a/tests/chown/basic +++ b/tests/chown/basic @@ -31,9 +31,9 @@ chown 0:1 f # Make sure the owner and group are 0 and 1 respectively. set _ `ls -n f`; shift; test "$3:$4" = 0:1 || fail=1 -chown --from=0:1 2:3 f || fail=1 +chown --from=0:1 2:010 f || fail=1 -# And now they should be 2 and 3 respectively. -set _ `ls -n f`; shift; test "$3:$4" = 2:3 || fail=1 +# And now they should be 2 and 10 respectively. +set _ `ls -n f`; shift; test "$3:$4" = 2:10 || fail=1 (exit $fail); exit $fail