Received: (at 74094) by debbugs.gnu.org; 29 Oct 2024 21:25:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 29 17:25:54 2024 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 Subject: Re: bug#74094: chgrp/chmod/chown fails to recognize "root" and respect --preserve-root under Cygwin To: Brian.Inglis@HIDDEN 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-Debbugs-Envelope-To: 74094 Cc: 74094 <at> debbugs.gnu.org, Eric Blake <eblake@HIDDEN> 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 "/".
bug-coreutils@HIDDEN:bug#74094; Package coreutils.
Full text available.
Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 18:57:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 29 14:57:47 2024
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>
Subject: chgrp/chmod/chown fails to recognize "root" and respect
--preserve-root under Cygwin
To: bug-coreutils@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-Debbugs-Envelope-To: submit
Cc: Eric Blake <eblake@HIDDEN>
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>
Reply-To: Brian.Inglis@HIDDEN
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
Brian.Inglis@HIDDEN:bug-coreutils@HIDDEN.
Full text available.bug-coreutils@HIDDEN:bug#74094; Package coreutils.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.