delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/10/10/15:42:23

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3BED385141E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1602358893;
bh=oAC6xYVHZeCIRW6LJKFqjnMbnh6L4Rv7X91IHGL+VNw=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=pxFjku/kx/rqUlc/zvl0D2MpqnjGL9u7dEGywPd+TvfZ6uc41/6wTvFastW5O4+hJ
hZE0EwLdsksseHuDK6zmZECE9id2oMGTDeEdmE4qr7r+joaQ/MLA8Km0WsyFDAytjE
6iZBF2C8cAj2EajzYOIsZoq8xnW6bVdakMu/niSA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 645913858C27
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=HxKexTKaUqRFNRYCY0DRYP/6x0ZfMDesW5EHx4PqJFQyA44omOccymJLiapnMo0dUJbSFFt8BS7EfmZmwQiMEubmoEEipmteeQQgIXsbSDO5d1ZrqP8cq36zTSbvSJATMn4sTd+XlAMbuzrhuDGt/McENFSHHkHgFOh5ncerndlQhHkcDWShPUn8GSbmpNI43C9YeBRL5oXOB52Hnm1sYzzgn1BQrvl2+TvXnqAM1yHwkdHO3ABgTEVU/g1cBjEYJdHU6JSrSc1Y0WGetUH6VaFiDyOZzM+x9oGnF5hM4a37/RoOhLEfqi2u5ISjavT4v0dRcC5qW0unBrDVoK8Ueg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=zIJlWt0SiI7BoB5YvGcrZpHrCST+1CGn3wZ9FgnhMOg=;
b=nNBEq6oTeV75yHmBs+ISF6bsmJuvf9/EiyuvBu1npwLyipyfoS8TN6hVNUUCCWNxi7hDxhU6IkuJoIhggSO20z25JAIevNVbGc6ti+hH3ddVteIACdJ/HSktRQY5p//CezIqpvvwCJ8oedf0GUgMMuZ3M0JmHwbtDnpxPqTjLMcdhJrL3fh1FKyBqud9zx/4pBFTA/zowDj6sCuYtig7M1mthEbDZIsaBvHsX3OG3v9fsyvNKpjHIglnDh8A79egeScqFJoGfKOMjNaFeEq6ztkfCDdj7V3kTxKu9X7tN+uhI4/FDyn3p/sbaRoDn7jjdljaIoLWOUC5bzkIiFOdnA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: chmod issue on 3.1.7.
To: "Kaz Kylheku (Cygwin)" <743-406-3965 AT kylheku DOT com>, cygwin AT cygwin DOT com
References: <7cb8ee6c7e9a36a3c1ee73def342bcb6 AT mail DOT kylheku DOT com>
Message-ID: <ef27ae60-ac04-a74b-3bed-a927788f6cf4@cornell.edu>
Date: Sat, 10 Oct 2020 15:41:28 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
In-Reply-To: <7cb8ee6c7e9a36a3c1ee73def342bcb6@mail.kylheku.com>
X-Originating-IP: [68.175.129.7]
X-ClientProxiedBy: MN2PR16CA0001.namprd16.prod.outlook.com
(2603:10b6:208:134::14) To MN2PR04MB6176.namprd04.prod.outlook.com
(2603:10b6:208:e3::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 5316bfe2-9507-4ae4-5ba5-08d86d547b68
X-MS-TrafficTypeDiagnostic: MN2PR04MB5534:
X-Microsoft-Antispam-PRVS: <MN2PR04MB553450E37DDF012D75EDE9CDD8090 AT MN2PR04MB5534 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:7219;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: aF5kdkvrvIUjV0MUzAaR3bI1f2J4MDqYG9Cd4FhARjfwwrUEKvyO4aTVOFYdpkAQm7MU+sqUo30VXAVWuwpyCJtA6qrO6uGYDwxCM+LXBqfsG7aKDpT0iHMVtgNLQYay8ZEcnvERvWW41UTujiihYRe1c2k7YyweHgOb4+DoNH+KC3i+iGgy5RFEnLIDwSkUBySo1GaWtQmZk2hXfLSD2BTcSb0o4djrh25AFp1VoyfH4zqhtgQTxwGBiuAEr4xt6TzhsqwFBRM+qEBhZrmGZn8EhXjmGLZO0dAKg/BPwdHQdl7B5Ce/YGG94DjjUceAzdhTyh1OnQn71Ndk2Pc0wNBiUQd7zoajL8PmKQ5JSEcns6mLtRyI4gzBbgZQOFGgTeF8qg0odDUKcaNZ+Ghsp1hprrTxx/WbycbL3YYvIBLilRiOKZaVqTCPMLyyh/JO4RCo9QF2yy+VzaHJmxJJNT584BQXuIcjGlu3GGWC+bw=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:MN2PR04MB6176.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66476007)(8676002)(66946007)(36756003)(7116003)(26005)(6486002)(2616005)(478600001)(186003)(2906002)(75432002)(16526019)(16576012)(53546011)(52116002)(83080400001)(31696002)(966005)(786003)(4001150100001)(86362001)(956004)(8936002)(316002)(5660300002)(31686004)(21314003)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: RfctIiGyqiMcwEep6gT/NLrk+4FGkxyxK940UYPim0smM+A0dBbTyCGTA4s9Z3tOvPvA4gElBBEcZ29dM7E40kqAkU5nheO+580d0B3aehUEj0Co6PBIATSZpYHfer2TcfxZP1/O9jWZuJC+V3PsoBmxhIeZClTP/0zniwNRjZWV9gp7UdRnV3owghXhkCWMh/DDvPr5d8cCrxoFKFNmBX7lU30jm1WgLLhR34BYIMZLAg612OEPMLmW2IrTYISiyBvDNzPLI2/csCk0P08RuYq+Odhr9WYKhUZpxaDuN+p6CmWiCbBV3SW1SmB+Eem2KugUaV7V2uWC8Bpfk7Nrk2Sg3xEQib0meK+m14VqWMxl1Gb013aq17olzBA1y08Iq1gOnE7GDe8nc7Mo1wW2ynYCfqdeheZGLso5YrRA5oJDWA/5py9l4QUbC2//WEZIjrPfZS8PcYSBfl0h16udgqz0UIJc/L5CfLSB0/veCL7wCMw06EmI0GvPzbxVzEAUbtDx53EIVt7CFW82RKPYs6HIJrEgrHXAi59dCoF1/ejf6/7GE2XUj8m54jRn2A6YxXg8GTYGDxjyUceD5vCSIV0pgNTvpNo5V33s0uOY8oQuGmOI9nJ/x79kHX0dTHBnBzqK7QtrL3dAbwhAskZE4w==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 5316bfe2-9507-4ae4-5ba5-08d86d547b68
X-MS-Exchange-CrossTenant-AuthSource: MN2PR04MB6176.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2020 19:41:28.9151 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 2vQZh7B0aJiTtsnfkGfWxMfuCpdXiKL1SXgcPiCAVd11O5l+wAt+qvLYwHv5Odu/6PvxGQOy+HU32TDvMyI/XA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5534
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, DKIM_INVALID,
DKIM_SIGNED, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, MSGID_FROM_MTA_HEADER,
NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 09AJfwiG009731

On 10/10/2020 12:32 PM, Kaz Kylheku (Cygwin) via Cygwin wrote:
> Hi all,
> 
> Running this Cygwin on a Windows 10 system:
> 
>    0:DESKTOP-K8055OB:~$ uname -a
>    CYGWIN_NT-10.0-WOW DESKTOP-K8055OB 3.1.7(0.340/5/3) 2020-08-22 19:03 i686 Cygwi
> 
> When a file is created, and permissions set as follows:
> 
>    0:DESKTOP-K8055OB:~$ touch tempfile
>    0:DESKTOP-K8055OB:~$ chmod 03777 tempfile
>    0:DESKTOP-K8055OB:~$ ls -l tempfile
>    -rwsrwsrwt 1 kaz kaz 0 Oct 10 08:59 tempfile
> 
> Then "chmod u=" is not able to clear the owner's permissions to nothing:
> 
>    0:DESKTOP-K8055OB:~$ chmod u= tempfile
>    0:DESKTOP-K8055OB:~$ ls -l tempfile
>    -rwxrwsrwt 1 kaz kaz 0 Oct 10 08:59 tempfile
> 
> As you can see, it has no effect. The expected value is ----rwsrwt.
> 
> I tried both with 64 and 32 bit Cygwin: same deal.
> 
> This is not a problem with the chmod utility.  I ran into this as a failing
> test case against a chmod library function in a programming language.
> 
> http://www.kylheku.com/cgit/txr/tree/tests/018/chmod.tl
> 
> The test cases pass until the "u=", which fails in the same way.
> This does not use the chmod utility.
> 
> It's an issue with the chmod system call.
> 
> This used to work on my older Cygwin installation, which was around 2.5.

FWIW, I can't reproduce this on my system:

$ uname -a
CYGWIN_NT-10.0-WOW XXX 3.1.7(0.340/5/3) 2020-08-22 19:03 i686 Cygwin

$ touch tempfile

$ ls -l tempfile
-rw-r--r-- 1 kbrown None 0 2020-10-10 15:16 tempfile

$ chmod 03777 tempfile

$ ls -l tempfile
-rwxrwsrwt 1 kbrown None 0 2020-10-10 15:16 tempfile

$ chmod u= tempfile

$ ls -l tempfile
----rwsrwt 1 kbrown None 0 2020-10-10 15:16 tempfile

Ken
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019