X-Loop: help-debbugs@HIDDEN
Subject: bug#74094: chgrp/chmod/chown fails to recognize "root" and respect --preserve-root under Cygwin
Resent-From: Brian Inglis <Brian.Inglis@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 29 Oct 2024 18:58:02 +0000
Resent-Message-ID: <handler.74094.B.173022826725645 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 74094
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 74094 <at> debbugs.gnu.org
Cc: Eric Blake <eblake@HIDDEN>
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Reply-To: Brian.Inglis@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.173022826725645
(code B ref -1); Tue, 29 Oct 2024 18:58:02 +0000
Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 18:57:47 +0000
Received: from localhost ([127.0.0.1]:58133 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1t5rPX-0006fZ-Dn
for submit <at> debbugs.gnu.org; Tue, 29 Oct 2024 14:57:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:58346)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <Brian.Inglis@HIDDEN>) id 1t5rPW-0006fT-0u
for submit <at> debbugs.gnu.org; Tue, 29 Oct 2024 14:57:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <Brian.Inglis@HIDDEN>)
id 1t5rPV-0008BO-JP
for bug-coreutils@HIDDEN; Tue, 29 Oct 2024 14:57:45 -0400
Received: from smtprelay0016.hostedemail.com ([216.40.44.16]
helo=relay.hostedemail.com)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <Brian.Inglis@HIDDEN>)
id 1t5rPT-0001B7-Pc
for bug-coreutils@HIDDEN; Tue, 29 Oct 2024 14:57:45 -0400
Received: from omf19.hostedemail.com (a10.router.float.18 [10.200.18.1])
by unirelay02.hostedemail.com (Postfix) with ESMTP id 7034E1203CB;
Tue, 29 Oct 2024 18:57:35 +0000 (UTC)
Received: from [HIDDEN] (Authenticated sender:
Brian.Inglis@HIDDEN) by omf19.hostedemail.com (Postfix) with
ESMTPA id 072DA20028; Tue, 29 Oct 2024 18:57:14 +0000 (UTC)
Message-ID: <ce585cb4-ec85-424a-8e97-355cb5457da6@HIDDEN>
Date: Tue, 29 Oct 2024 12:57:33 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: Brian Inglis <Brian.Inglis@HIDDEN>
References: <1ffefae4-6da4-4b22-9c6d-3e98b88d5435@HIDDEN>
<ba23cfc0-8898-4565-9c2b-d5b11d92a19f@HIDDEN>
Content-Language: en-CA
Organization: Systematic Software
In-Reply-To: <ba23cfc0-8898-4565-9c2b-d5b11d92a19f@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Rspamd-Queue-Id: 072DA20028
X-Spam-Status: No, score=-0.09
X-Rspamd-Server: rspamout02
X-Stat-Signature: o65g1z79yat3munsnexhm4m6gxc5nwi6
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18L4VUSmvIdEcID4siiYeCRdD6jxeVOGmQ=
X-HE-Tag: 1730228234-857327
X-HE-Meta: U2FsdGVkX1+Qo4nYu29xzsFFqsbUTssUissKee0hRRmjVHI3sm6bIdWu1OX4iF93j69X7LIW2D3OTHNr6aN7DLbGMOaXUY6DNlgUV7i3zRr56K5c2gsDWyUuC2c/T3l8QSf9LmQOICiqTSP8YKm79Nt0dlKscHU8ctunrDNQ3VZlI22um+RIMOM8xzeaSfatMCZCAfp3dnBJflX5BJEPi8QXZVxO/v1MUQW3ph2IZIramCvXWhzRbELJPzYvMKhS1F3UobHtvz4gT2QDiGRdQqSNYCtZpdUnVsHVc3gDsmw+2T0jmcwrDH3g2xdE6BM0A8tf5bL121ZK1VRtqu88uydDjI1wEszE
Received-SPF: pass client-ip=216.40.44.16;
envelope-from=Brian.Inglis@HIDDEN; helo=relay.hostedemail.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
Hi folks,
I now appear to have the issue that the Cygwin emulated "root" is not being
detected and handled properly, so during tests, chgrp/chown/chmod
--preserve-root is being ignored, also presumably rm!, tests are taking forever,
and all my account and CI system mount points are being trashed by the tests,
and build/gt-preserve-root.sh.XKPb/out is over 1GB!
I need to understand whether any access to "root" is just warned and skipped, or
the command is terminated with prejudice, as I would expect.
The info docs section "Treating ‘/’ specially" appears to be ambiguous about the
ch??? commands, except that they default to --no-preserve-root whereas the man
pages say "fail to operate recursively on ’/’", as I would expect.
I know that I will have to handle the "root" issue, but advice on how the
commands are conceptually expected to deal with "root" and --preserve-root would
be useful, and any gotchas on other systems, before I dig into then hack at the
operations.
Cygwin would probably want to default these ch??? commands to --preserve-root
like rm, and also require -f, --force --no-preserve-root to override, but ch???
redefine -f to --silent, --quiet, so would have to mandate the long --force
option with --preserve-root, and also change the docs!
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Brian.Inglis@HIDDEN Subject: bug#74094: Acknowledgement (chgrp/chmod/chown fails to recognize "root" and respect --preserve-root under Cygwin) Message-ID: <handler.74094.B.173022826725645.ack <at> debbugs.gnu.org> References: <ce585cb4-ec85-424a-8e97-355cb5457da6@HIDDEN> X-Gnu-PR-Message: ack 74094 X-Gnu-PR-Package: coreutils Reply-To: 74094 <at> debbugs.gnu.org Date: Tue, 29 Oct 2024 18:58:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 74094 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 74094: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74094 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#74094: chgrp/chmod/chown fails to recognize "root" and respect --preserve-root under Cygwin
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 29 Oct 2024 21:26:01 +0000
Resent-Message-ID: <handler.74094.B74094.173023715412084 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 74094
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: Brian.Inglis@HIDDEN
Cc: 74094 <at> debbugs.gnu.org, Eric Blake <eblake@HIDDEN>
Received: via spool by 74094-submit <at> debbugs.gnu.org id=B74094.173023715412084
(code B ref 74094); Tue, 29 Oct 2024 21:26:01 +0000
Received: (at 74094) by debbugs.gnu.org; 29 Oct 2024 21:25:54 +0000
Received: from localhost ([127.0.0.1]:58944 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1t5tis-00038q-2g
for submit <at> debbugs.gnu.org; Tue, 29 Oct 2024 17:25:54 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66]:59000)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <eggert@HIDDEN>) id 1t5tiq-00038i-IH
for 74094 <at> debbugs.gnu.org; Tue, 29 Oct 2024 17:25:52 -0400
Received: from localhost (localhost [127.0.0.1])
by mail.cs.ucla.edu (Postfix) with ESMTP id 3B0F73C013279;
Tue, 29 Oct 2024 14:25:47 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
id iVkhk0B9pOPc; Tue, 29 Oct 2024 14:25:47 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by mail.cs.ucla.edu (Postfix) with ESMTP id F31B73C00FA92;
Tue, 29 Oct 2024 14:25:46 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu F31B73C00FA92
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1730237147;
bh=UMEojGtI0T+pTCZwK86RnHHC9RObojapzwEthkbMGcw=;
h=Message-ID:Date:MIME-Version:To:From;
b=JCgccjapUP2o4Q3GVbPVpHYMSnKVH/hEkuKMaQoqmXdJgMshrO8mmlHPBGu2TTdJE
Ju6gsTnPRdlXQIFLPcSl/7540ETq0jw0zXa4qz81nqNRVMIvrnNbSQx1LRVg5L4jK/
nZKKjillCXNwxduXtJbl6qa7V5wbhmddQcaJKKCcQmyiwdmmtIQs8UjmffQE6MztbI
fmbPS5pjoUC8gCMUm0LRtKOFssB0XNfVyKVhOJCV5Q4fdumGmXmxEteqiAKEQEkOLn
1IO5xKZbP2SYE7nIzjjnmbKY/6+d+Qi+98HGovJbjD0ImhmDZojwvtQk4QXMzmwvG/
3ypGzzf9VKfYA==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
id jNoMgXDrnAgA; Tue, 29 Oct 2024 14:25:46 -0700 (PDT)
Received: from [192.168.254.12] (unknown [47.150.137.250])
by mail.cs.ucla.edu (Postfix) with ESMTPSA id 981F43C013279;
Tue, 29 Oct 2024 14:25:46 -0700 (PDT)
Message-ID: <d8f78a73-7fc4-4f53-9e56-c1960527f14d@HIDDEN>
Date: Tue, 29 Oct 2024 14:25:46 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <1ffefae4-6da4-4b22-9c6d-3e98b88d5435@HIDDEN>
<ba23cfc0-8898-4565-9c2b-d5b11d92a19f@HIDDEN>
<ce585cb4-ec85-424a-8e97-355cb5457da6@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <ce585cb4-ec85-424a-8e97-355cb5457da6@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
On 2024-10-29 11:57, Brian Inglis wrote:
> advice on how the commands are conceptually expected to deal with "root"
> and --preserve-root would be useful
Presumably the way that "/" is treated on a GNU platform should be the
way that a root filesystem is treated on Cygwin, even if that root
filesystem isn't named "/".
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.