[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: chown fails to ignore symbolic links during recursive directory tran
From: |
Paul Eggert |
Subject: |
Re: chown fails to ignore symbolic links during recursive directory transversals |
Date: |
Wed, 09 Mar 2005 14:45:13 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
I can't reproduce that bug with coreutils 5.3.0 on my Debian stable
box, so I'd guess the problem has been fixed. Can you please try it
again with coreutils 5.3.0?
ftp://alpha.gnu.org/gnu/coreutils/coreutils-5.3.0.tar.gz
Here's my attempt to reproduce the problem:
penguin:/tmp# mkdir sandbox
penguin:/tmp# cd sandbox/
penguin:/tmp/sandbox# mkdir -p a/aa/aaa
penguin:/tmp/sandbox# touch foo
penguin:/tmp/sandbox# mkdir b
penguin:/tmp/sandbox# cd a/aa/aaa/
penguin:/tmp/sandbox/a/aa/aaa# ln -s ../../../foo foo
penguin:/tmp/sandbox/a/aa/aaa# ln -s ../../../b b
penguin:/tmp/sandbox/a/aa/aaa# cd ../../..
penguin:/tmp/sandbox# ls -l
total 8
drwxr-xr-x 3 root root 4096 Mar 9 14:42 a
drwxr-xr-x 2 root root 4096 Mar 9 14:42 b
-rw-r--r-- 1 root root 0 Mar 9 14:42 foo
penguin:/tmp/sandbox# chown -R nobody:users a
penguin:/tmp/sandbox# ls -al
total 948
drwxr-xr-x 4 root root 4096 Mar 9 14:42 .
drwxrwxrwt 42 root root 954368 Mar 9 14:41 ..
drwxr-xr-x 3 nobody users 4096 Mar 9 14:42 a
drwxr-xr-x 2 root root 4096 Mar 9 14:42 b
-rw-r--r-- 1 root root 0 Mar 9 14:42 foo
penguin:/tmp/sandbox# chown --version
chown (GNU coreutils) 5.3.0
Written by David MacKenzie and Jim Meyering.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.