www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/12/14/04:27:15

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BE9RFXr1111345
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BE9RFXr1111345
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=vwk/hv/9
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF02B4BA2E23
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1765704434;
bh=TIvkUWqvgU+FmTPyGMCXP/7pao2tl4qyXJqk2QgfmK0=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=vwk/hv/9hLpCfUD80ZLbDOgKlhRskIljY06Efx8XTeL/jJcN5uTCzb+zSo32qIBKE
+8a9/+SS5o8G28lido4lu1jJj4USj4ot8yFzhMe0tWRg1HxX6jEIcLbKtXZMHNMew/
oKerI4ye+PER/MRvCWAUHNPuIxaBbpumFnRrpE7A=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A175A4BA2E07
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A175A4BA2E07
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765704386; cv=none;
b=spanJFg1qCjSnYdp0M5B4XxxhjB8dNKBtkPPvJLU991mCwjkvmSarKxXYEXCN4gQClFgqyghO8IfcaTqSOBD1cWcfVuUmDoEXTpWV7oj5MEdUXDOlBqOWB0mA9jmusb8X8zInuoxQtPfnQZSR7Kuz3oIQCEarfk4syV7KZ1P0iQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1765704386; c=relaxed/simple;
bh=ZTTs5YT9TRPVso/JHXw8gqgViRqnm04jfjtX93nKN7g=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=dYDR9M8zG/HaJC1zznRlkmt7IHlWx3HPAazZgReWsnu664pPbXuZypa97FuuY/kiOm0NbBcXZ+AeSKUe73jsfIaC8MAhNBjc77RBjJBv6GQtiPAfU7jAE7RDPU2XQsWtPddwskdlpmP6qMK4yW5OnDR9DPbbg5nMh6aHjXhfB9s=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A175A4BA2E07
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1765704385; x=1766309185;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id
:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=Z6pjrmKQ9o8r4Xt8Bb+KACX9jIAmSBptWMXQ87scRDg=;
b=X6Zc50kVmeAmAa8ETOaZ3n2r/3UabSj3i2jtfR2sCFgQA7iNg79oy2DYGCAYhC4IEA
+uu+g79pkgrPdgsM5HveNUNztYcIkyku3EBvyBmnSRcj9dr08m+8+J2eHjC9E2pM3mXA
D2yXAaUrOPb59YXC7Eo6+6HwfSTtrIPO1GXwgTcWha24hJxy3VaAXQz4/rccf7GqZO3t
0qgnBpz0/0sR5lw2zNS0r+LcJzLt3m3P4CpJrFPvy7l7haJKbX+FSPzyfhdCOYWQeADh
MB69Eqh4f//hqqa0yjG3Ju/EfG0ZSTBfpvq4ZnK4KCT255XjUx+F9GNZwCqMob/o+ITn
KvtQ==
X-Gm-Message-State: AOJu0Yw5CdB6mxjB/PWGfaQ5iAfPAVlar212561V4BePHLgDqPrPSaHu
ZlvrblTSzxQD7f/HkSHvk6XcGksj9iKnDbERKL6xDQW+YPWDh14skIYpeHBE5w==
X-Gm-Gg: AY/fxX47H0LeKeA1ytpF/scQxjXPre78Uo0XjYTuXFolknK4OeVFC5J5AZA+F3WO1vO
+XQwUhikD66+eIdJV+/Js8fRIpZMgVUdzs9UFRDnxzKTlOOO9QpW2crnxO5VfLZx/FkK6bLNwTn
1pTDfxMYLNnQYjX/n3EafZJIc8Sajk/0fENPYU1tA/LcYA9fEj/32B+zqHkJxAOWrS0NgMrAA86
2xhDRoPNPmwh9pWa4rDPikLVKCq9RHig83KjbcTRivrV5RRw2LyiND8bsBv0NcPJ5ZRP3B0+7E6
wOxWM2CC8fcTnqIkdWQnsKrn1OK3Gc2qOoyVSdMJKPKgYR14nVIB5p7OnBQnAlpZbHTfrfAeamC
0Xpjd2ThHr7iRhY7AFbTlQQZ9eDYJ9ygeuSu3oPFpQN51KEGKWJKLcGpAuDtG9o8eFRzNDfoEU8
HgpOnK4h7WI1aU+s49mgzFLvC/289pzRyWGBwbRtTowJy3Fuk83QSPaa7G8cGxxxjXc5H6
X-Google-Smtp-Source: AGHT+IENiobmt4vX97GQLATZBvC7h0hkFBXzq1UPeESVoFdHUby1CW7yAhEUI2ehbXTu+6Ly5HICdw==
X-Received: by 2002:a05:600c:4f84:b0:46e:1fb7:a1b3 with SMTP id
5b1f17b1804b1-47a8f904065mr70914175e9.23.1765704385447;
Sun, 14 Dec 2025 01:26:25 -0800 (PST)
Message-ID: <d0d7f867-3c37-4e5a-9291-43f296c97b10@gmail.com>
Date: Sun, 14 Dec 2025 10:26:24 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: group '545' does not exist ?
To: cygwin AT cygwin DOT com
References: <3a9f1d9a-d363-4617-bc24-e2b5aa4d27e9 AT gmail DOT com>
<CAKAoaQntTmvE8EbKCiJMcySrhHG91a947A8WTvKkv3H6LzhsHg AT mail DOT gmail DOT com>
<48e6fb4c-2341-4f43-b158-d70a9b391f91 AT gmail DOT com>
<de6f8c31-2e4d-48e3-af61-6e6a2b640f79 AT dronecode DOT org DOT uk>
<a3be4a15-ff9b-4056-9982-b991eed1a430 AT SystematicSW DOT ab DOT ca>
<89866400-5131-4790-aa55-542e451ab197 AT gmail DOT com>
<aTLSsHtxB_8ssxWU AT calimero DOT vinschen DOT de>
<aTMkqp9bwoz7E0-X AT calimero DOT vinschen DOT de>
<aTMpECmWwfXmUE7Q AT calimero DOT vinschen DOT de>
In-Reply-To: <aTMpECmWwfXmUE7Q@calimero.vinschen.de>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5BE9RFXr1111345

On 05/12/2025 19:48, Corinna Vinschen via Cygwin wrote:
> On Dec  5 19:30, Corinna Vinschen via Cygwin wrote:
>> On Dec  5 13:40, Corinna Vinschen via Cygwin wrote:
>>> On Dec  5 09:28, Marco Atzeri via Cygwin wrote:
>>>> On 04/12/2025 21:50, Brian Inglis via Cygwin wrote:
>>>>> On 2025-12-04 08:00, Jon Turney via Cygwin wrote:
>>>>>> Actually, I think this is a shortcoming of the cygwin version of newgrp.
>>>>>> The SUS description [1] of newgrp allows a numeric group id to be
>>>>>> specified.
>>>>>> (In fact, it includes the clarifying remark "If group is a non-
>>>>>> negative numeric string and exists in the group database as a group
>>>>>> name, the numeric group ID associated with that group name will be
>>>>>> used as the group ID", which suggests a, um, straightforward
>>>>>> implementation)
>>>>>> But it seems that our implementation only currently handles a group
>>>>>> name (See [2]).
>>>>>> [1] https://pubs.opengroup.org/onlinepubs/7908799/xcu/newgrp.html
>>>>>
>>>>> That's OG SUSV2 1997 - current is at:
>>>>>
>>>>>       https://pubs.opengroup.org/onlinepubs/9799919799/utilities/newgrp.html
>>>>>
>>>>>> [2] https://cygwin.com/cgit/newlib-cygwin/tree/winsup/utils/newgrp.c#n166
>>>
>>> Shouldn't be too hard to add to our newgrp(1).
>>
>> Uhm... there's a problem here.
>>
>> Right now, our newgrp is commandline compatible with Linux' newgrp from
>> shadow-utils:
>>
>> - A single '-' reinitializes the environment.
>> - The group must be given as name, not as GID.
>>
>> This is not commandline compatible with the POSIX definition:
>>
>> - A '-l' reinitializes the environment.
>> - The group may be given as name or GID.
>>
>> I can't just change it to POSIX compatible because this potentially
>> breaks Linux compatibility.
>>
>> What we could do is to check the POSIXLY_CORRECT environment variable
>> and switch the identity to POSIX if this variable is set.
>>
>> Make sense?
> 
> No, scratch that, it's much eaiser.  shadow-utils newgrp let's -l slip
> through, any other -X results in a usage message.  I can change Cygwin's
> newgrp accordingly.
> 
> The only non-compatibility is that Cygwin's newgrp allows to specify a
> command.   shadow-utils nad POSIX newgrp only create a new shell
> environment.
> 
> I guess we can ignore this...
> 
> 
> Corinna
> 


-- 
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