From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) by sourceware.org (Postfix) with ESMTPS id 34BBF3857C71 for ; Thu, 24 Dec 2020 21:30:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 34BBF3857C71 Received: from kylheku.com ([70.79.163.252]) by shaw.ca with ESMTPA id sYC4kHylWtdldsYC5kqyQJ; Thu, 24 Dec 2020 14:30:45 -0700 X-Authority-Analysis: v=2.4 cv=INe8tijG c=1 sm=1 tr=0 ts=5fe50885 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=zTNgK-yGK50A:10 a=EIo8IZ44mZNNXFwOpQ8A:9 a=QEXdDO2ut3YA:10 Received: from www-data by kylheku.com with local (Exim 4.72) (envelope-from ) id 1ksYC4-0003YX-6H for cygwin@cygwin.com; Thu, 24 Dec 2020 13:30:44 -0800 To: cygwin@cygwin.com Subject: Another chmod issue on 3.1.7, Win 10. X-PHP-Originating-Script: 501:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Dec 2020 13:30:44 -0800 From: Kaz Kylheku Message-ID: <62106326e8b2faf64aedb194c8fc7a3d@mail.kylheku.com> X-Sender: kaz@kylheku.com User-Agent: Roundcube Webmail/0.9.2 X-CMAE-Envelope: MS4xfLLazUQybBPdd1JvdLpUPfOFNM6pzPGfcXSYW8gMIsi5gb49GfapmRl3issbyUhTUuykDuAGylXrUq7EZPicY6S1IFJ55jmgcPs14gm+fnUIy5/z0p+t K16/+Rglj/FQYbrDvSzzzBE/EeOyCkqvP6J91DqggevfXUKz/k4hhSnsECmKiHlhz9RiyAPiRSOxPw== X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2020 21:30:47 -0000 Initial conditions: 0:BLACKBOX:~/txr$ rm testfile 0:BLACKBOX:~/txr$ touch testfile 0:BLACKBOX:~/txr$ chmod =3D testfile 0:BLACKBOX:~/txr$ ls -l testfile ---------- 1 kaz kaz 0 Dec 24 13:23 testfile Now, light up all the bits, like a Christmas tree---appropriate for December 24: 0:BLACKBOX:~/txr$ chmod ugo+rwxs testfile 0:BLACKBOX:~/txr$ ls -l testfile -rwsrwsrwx 1 kaz kaz 0 Dec 24 13:23 testfile Well, almost all the bits: I didn't add "t", but it makes no difference. Anyway, so far, so good. Now, punch a hole in the group permissions: 0:BLACKBOX:~/txr$ ls -l testfile -rws---rwx+ 1 kaz kaz 0 Dec 24 13:23 testfile No idea what that + is hinting at, which indicates a problem. But the group perms did get masked out. Let's keep going to the main problem: repeat the second step to turn on all the bits: 0:BLACKBOX:~/txr$ chmod ugo+rwxs testfile 0:BLACKBOX:~/txr$ ls -l testfile -rws--Srwx+ 1 kaz kaz 0 Dec 24 13:23 testfile What??? The expected perms are "-rwsrwsrwx". It did not set the group=20 read or write at all, and that funny + is still hanging around. This test case worked on Cygwin 2.5 on Win 7.