From dc9790379c129698d0dead906135a4a7b0b551f6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 13 Oct 2006 18:51:08 +0000 Subject: * src/chown-core.c (change_file_owner): Use fstatat, not stat, now that we're using fts_open with FTS_CWDFD. * tests/chgrp/posix-H: Add --preserve-root to an invocation of chgrp, to exercise the above fix. --- tests/chgrp/posix-H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/chgrp') diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H index 147bb5224..907b7da5e 100755 --- a/tests/chgrp/posix-H +++ b/tests/chgrp/posix-H @@ -1,7 +1,7 @@ #!/bin/sh # Test POSIX-mandated -H option. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005, 2006 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 @@ -50,7 +50,7 @@ fi fail=0 -chgrp -H -R $g2 1s 2 || fail=1 +chgrp --preserve-root -H -R $g2 1s 2 || fail=1 # These must have group $g2. # ========================= -- cgit v1.2.3-70-g09d2