Your message dated Thu, 22 Dec 2005 16:17:02 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Indeed fixed in 5.93
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Dec 2005 19:34:40 +0000
>From [EMAIL PROTECTED] Fri Dec 09 11:34:40 2005
Return-path: <[EMAIL PROTECTED]>
Received: from wumpus.mythic-beasts.com ([212.69.37.9] ident=Debian-exim)
by spohr.debian.org with esmtp (Exim 4.50)
id 1Eko0u-0004XZ-Mi
for [EMAIL PROTECTED]; Fri, 09 Dec 2005 11:34:40 -0800
Received: from sphinx.mythic-beasts.com ([212.69.37.6])
by wumpus.mythic-beasts.com with esmtp (Exim 4.44)
id 1Eko0t-0001TN-Bu
for [EMAIL PROTECTED]; Fri, 09 Dec 2005 19:34:39 +0000
Received: from chris by sphinx.mythic-beasts.com with local (Exim 4.51)
id 1Eko0s-0000mc-9R; Fri, 09 Dec 2005 19:34:38 +0000
Date: Fri, 9 Dec 2005 19:34:38 +0000
From: Chris Lightfoot <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: chown and symlinks
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-Mail-Author: me
X-Face: "kUA_=&I|(by86eXgYc|U}5`O%<xlo,~+JN9uk"Z`A.UCf2\1KKZ{FY-IIOqH/IS"=5=cb`
U,mDyyf8a6BzVgYT~pRtqze]%s#\(J{/um"(r,Ol^4J*Y%aWe-9`ZKGEYjG}d?#u2jzP,x37.%A~Qa
;Yy6Fz`i/vu{}?y8%cI)RJpLnW=$yTs=TDM'MGjX`/LDw%p;EK;[ww;9_;UnRa+JZYO}[-j]O08X\N
m/K>M(P#,)y`g7N}Boz4b^JTFYHPz:[EMAIL PROTECTED]:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3
Q=9c
X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/
X-Sigs-Plug: vote on my signature quotes at
http://ex-parrot.com/~chris/scripts/amisigornot
Sender: Chris Lightfoot <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_10,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: coreutils
Version: 5.2.1-2
chown(1) behaves as if the -h option were specified, even
if it is not. For instance:
# touch Q
# ln -s Q R
# ls -ln Q R
-rw-r--r-- 1 0 0 0 2005-12-09 19:21 Q
lrwxrwxrwx 1 0 0 1 2005-12-09 19:21 R -> Q
# chown 65535:65535 R
# ls -ln Q R
-rw-r--r-- 1 0 0 0 2005-12-09 19:21 Q
lrwxrwxrwx 1 65535 65535 1 2005-12-09 19:21 R -> Q
-- that should have changed the ownership of Q. If we
pass the nonstandard option --dereference, we get the
default behaviour:
# chown --dereference 65534:65534 R
# ls -ln Q R
-rw-r--r-- 1 65534 65534 0 2005-12-09 19:21 Q
lrwxrwxrwx 1 65535 65535 1 2005-12-09 19:21 R -> Q
This is correct in the current GNU version of coreutils
(5.93) and broken in 5.2.1.
I believe that the following patch is sufficient to fix
the problem:
--- coreutils-5.2.1/src/chown-core.c.orig Fri Dec 9 19:31:24 2005
+++ coreutils-5.2.1/src/chown-core.c Fri Dec 9 19:31:32 2005
@@ -46,7 +46,7 @@
{
chopt->verbosity = V_off;
chopt->root_dev_ino = NULL;
- chopt->affect_symlink_referent = false;
+ chopt->affect_symlink_referent = true;
chopt->recurse = false;
chopt->force_silent = false;
chopt->user_name = 0;
--
``There has to be a balance between telling the truth and reassurance.''
(David Blunkett, on terrorist alerts)
---------------------------------------
Received: (at 342722-done) by bugs.debian.org; 22 Dec 2005 15:17:42 +0000
>From [EMAIL PROTECTED] Thu Dec 22 07:17:42 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mailservice.tudelft.nl ([130.161.131.5])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EpSCM-0006uJ-IS
for [EMAIL PROTECTED]; Thu, 22 Dec 2005 07:17:42 -0800
Received: from localhost (localhost [127.0.0.1])
by rav.antivirus (Postfix) with ESMTP id DD44522F287
for <[EMAIL PROTECTED]>; Thu, 22 Dec 2005 16:17:11 +0100 (CET)
Received: from 82-171-132-56.dsl.ip.tiscali.nl (x078.decis.nl [130.161.177.78])
by mx1.tudelft.nl (Postfix) with ESMTP id 97EA122F22C
for <[EMAIL PROTECTED]>; Thu, 22 Dec 2005 16:17:11 +0100 (CET)
Received: from [127.0.0.1] (localhost [127.0.0.1])
by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 09B44C029B
for <[EMAIL PROTECTED]>; Thu, 22 Dec 2005 16:17:02 +0100 (CET)
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 22 Dec 2005 16:17:02 +0100
From: Thomas Hood <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Indeed fixed in 5.93
X-Enigmail-Version: 0.92.1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new at tudelft.nl
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
[EMAIL PROTECTED]:/tmp/w$ rm -rf *
[EMAIL PROTECTED]:/tmp/w$ touch Q
[EMAIL PROTECTED]:/tmp/w$ ln -s Q R
[EMAIL PROTECTED]:/tmp/w$ ls -ln Q R
-rw-r--r-- 1 1001 1001 0 2005-12-22 16:14 Q
lrwxrwxrwx 1 1001 1001 1 2005-12-22 16:14 R -> Q
[EMAIL PROTECTED]:/tmp/w$ sudo chown root:root R
[EMAIL PROTECTED]:/tmp/w$ ls -ln Q R
-rw-r--r-- 1 0 0 0 2005-12-22 16:14 Q
lrwxrwxrwx 1 1001 1001 1 2005-12-22 16:14 R -> Q
[EMAIL PROTECTED]:/tmp/w$ chown --version
chown (GNU coreutils) 5.93
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie and Jim Meyering.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]