From adab436e48c8d15c1447551e3e688e5ae2eea5b2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Jul 2004 23:05:27 +0000 Subject: [PATCH] Test for proper handling of uids like "010", which must be parsed as decimal. --- tests/chown/basic | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2