delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/24/16:31:34

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2443389C423
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1608845449;
bh=vAR+tD1Zd9e6TvKMZd1c4c+4Sdn9BbxuAexmtdWu//E=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=etMCaj4OSDs1OG8qFlBlG3VHQkZrcjeyVefe27Llpqco09P+GtPVniZ/WlBahvKXW
ot68GZOsZdnhp0YMy34+b9f9UZITH77fiUJbSA7OHNLL7AzL/Aqhs27GjJqeo6CD8Y
DE63ndgY2TjRjVUJ+sHPkqn/5ABtL2/re7rMAzBQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 34BBF3857C71
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
To: cygwin AT cygwin DOT com
Subject: Another chmod issue on 3.1.7, Win 10.
X-PHP-Originating-Script: 501:rcmail.php
MIME-Version: 1.0
Date: Thu, 24 Dec 2020 13:30:44 -0800
Message-ID: <62106326e8b2faf64aedb194c8fc7a3d@mail.kylheku.com>
X-Sender: kaz AT kylheku DOT 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
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: Kaz Kylheku via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Kaz Kylheku <kaz AT kylheku DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Initial conditions:

   0:BLACKBOX:~/txr$ rm testfile
   0:BLACKBOX:~/txr$ touch testfile
   0:BLACKBOX:~/txr$ chmod = 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 
read
or write at all, and that funny  + is still hanging around.

This test case worked on Cygwin 2.5 on Win 7.
--
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