Subject: coreutils: chown --dereference changes gid when it shouldn't Package: coreutils Version: 5.2.1-2 Severity: normal
*** Please type your report below this line *** If one uses chown with --dereference to only set the owner, it incorrectly may change the group as well. It will set the owner of the pointed-to item to the owner requested, but then also change the group to the group of the symlink. This happens because chown reads owner and group from the filename passed, but then, if --dereference is in effect, runs the chown against the file pointed to. The offending code is in src/chown-core.c, approximately lines 211 to 225, and also in the chown_files function. In dereference mode, it needs to not only apply the changes to the dereferenced file, but also to read the current ownership from the dereferenced file. -- System Information: Debian Release: 3.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.4.28-van1 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages coreutils depends on: ii libacl1 2.2.23-1 Access control list shared library ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an -- no debconf information -- -Cheetah "Reality is that which, when you stop believing in it, doesn't go away". -- Philip K. Dick GPG pubkey fingerprint: A57F B354 FD30 A502 795B 9637 3EF1 3F22 A85E 2AD1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]