From unknown Tue Jun 17 22:29:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74094: chgrp/chmod/chown fails to recognize "root" and respect --preserve-root under Cygwin Resent-From: Brian Inglis Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 29 Oct 2024 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74094 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 74094@debbugs.gnu.org Cc: Eric Blake X-Debbugs-Original-To: bug-coreutils@gnu.org Reply-To: Brian.Inglis@SystematicSW.ab.ca Received: via spool by submit@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 ) id 1t5rPX-0006fZ-Dn for submit@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 ) id 1t5rPW-0006fT-0u for submit@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 ) id 1t5rPV-0008BO-JP for bug-coreutils@gnu.org; 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 ) id 1t5rPT-0001B7-Pc for bug-coreutils@gnu.org; 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@SystematicSW.ab.ca) by omf19.hostedemail.com (Postfix) with ESMTPA id 072DA20028; Tue, 29 Oct 2024 18:57:14 +0000 (UTC) Message-ID: Date: Tue, 29 Oct 2024 12:57:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Brian Inglis References: <1ffefae4-6da4-4b22-9c6d-3e98b88d5435@SystematicSW.ab.ca> Content-Language: en-CA Organization: Systematic Software In-Reply-To: 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@SystematicSW.ab.ca; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From unknown Tue Jun 17 22:29:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74094: chgrp/chmod/chown fails to recognize "root" and respect --preserve-root under Cygwin Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 29 Oct 2024 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74094 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Brian.Inglis@SystematicSW.ab.ca Cc: 74094@debbugs.gnu.org, Eric Blake Received: via spool by 74094-submit@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 ) id 1t5tis-00038q-2g for submit@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 ) id 1t5tiq-00038i-IH for 74094@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: Date: Tue, 29 Oct 2024 14:25:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <1ffefae4-6da4-4b22-9c6d-3e98b88d5435@SystematicSW.ab.ca> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 "/".