delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/10/13/14:07:03

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 69DI72wG4013843
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 69DI72wG4013843
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=VIhIOYst
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E0514BA79A3
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1791914804;
bh=IwZC94LzFT6Ru1e9zbgtqhX+75PwP9e/bZHdRL6QdmQ=;
h=Date:Subject:References:Cc:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=VIhIOYstXZ4saEAc3fdhCVnf2Ik3wJhQo/WWDD5/CxN2abodObfP/Kw7Q31q7PQYB
/7BVsoB5UvDZb0nn26Ao/mx+ONXC9Or8c0a33tBDWq/GpqzbEPCPnuFymWU4SMutDN
xIRjGCvgYNHAdHjH4z9+X8FzM3Gw/NtHMwwU8860=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4DAC4BA23CD
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A4DAC4BA23CD
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791914751; cv=none;
b=uya9rQaGQWh9sIYmfrWYulipc0Fjqqc13+tF6OnAg7cgoGhvR9XEabGGm4lm9oRDcH7L6K40dbScfhF2ij0FzsQRzqUyx1te5yTUcUy/X3tJsoe3369BdMWPRqx3/cS0aPA8vNw2ulFeLw/0yZCRZ9HgjQFUPviYFi3BGQq6TtM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1791914751; c=relaxed/simple;
bh=T4NES7H3QGz8zfCBeI7Db2Xo645x19r7mxr5lh1Qojs=;
h=Message-ID:Date:MIME-Version:Subject:From;
b=tnGjU8XWX0JvaDnPnRKQ011MIP2AV80GhxqRyk6WDS/pUgx/hp7iRcgQlXpTRp8g4L8aIrZSLm84+nvBc0P8DlNGNeseOamH7xllkzOyv2fcuYOiftQqDE9HKMPSsWSul+6aIRuaKvgHrMB61yTF/hHZd+MXzYv04zjSpzg4h9E=
ARC-Authentication-Results: i=1; sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4DAC4BA23CD
X-SNCR-Rigid: 6A989FAD086940D1
X-Originating-IP: [62.49.190.104]
X-OWM-Source-IP: 62.49.190.104
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: dmFkZTEIL1hPc5C5Krc/9aHBgo5UPyqUcFIeJZZ4CO0vxW6UZO0Msdo2m1s+L0awEFh+SfqOtCKwefUe0b83xR8PSDR/WeLohBNc323RerOKnvyYcJ7rUlE3J4CDnliew+4nglgSHgGOWYGtY5xSEduVolplLmqAtgYBCHOEZsd2oUTJO38DVpXehA2KET2BZ3/BS2Mj5/AEB0ocNgCmfDU143mehNesBymjbozYhiOs3IguppUxBRuVCld8tJN9LHCDkuF1Ry4IFQiAABXpFtVlcDGC2JFb8pmDBUMmsrgVKPDVM7W/s4pDrjRqhq/OFYVkJ1a57OJueQD0Bvd706sjku80syZR0OVwvtYVU4bFHMsZmHFQQ4yG11yQgPad0D8WwgSahsBrI7es0VVx449cGjwlolnO9RIpmEOjRlYvcFPKoLjwPZyzy3437v/UlgCeD6x3Hqz/9/+vW//eTjuRSsB66Mrrbatt7i11TXYCPkkAi5SV4jUEeKJtVeu5DJREoYizXSu3F4FR1u1qRQ7oZydc2eoikVUzNQXtubsiEQRTDURhsxTw/fI1Hu19/+W9tNsQo95NijeFZagMnTxQpK8wLYCIs9guWVXyReXCb3MBdyjJW1D1w17e6OauaB22188MMonmt2ktn4+71Kv5Yl10cogevTJax/6b1dzSh0MsRQ
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <8c357564-4195-493e-b5c0-eb111e07e134@dronecode.org.uk>
Date: Tue, 13 Oct 2026 19:05:48 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: update-ca-trust postinstall picks up Windows find.exe, fails
during setup update (cygwin 3.6.11-1)
References: <!&!AAAAAAAAAAAYAAAAAAAAANF6J7I3vL9HhCvibCIN9NTCgAAAEAAAABB5hjCoudpAjh6P4NNyD/oBAAAAAA==@TR1.de>
Cc: cygwin AT cygwin DOT com, Manfred Drechsel <Manfred AT TR1 DOT de>
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAANF6J7I3vL9HhCvibCIN9NTCgAAAEAAAABB5hjCoudpAjh6P4NNyD/oBAAAAAA==@TR1.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: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
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>

On 13/10/2026 10:23, Manfred Drechsel via Cygwin wrote:
> Hello,
> 
> During a regular update with setup-x86_64.exe (latest version), the
> postinstall run of /usr/bin/update-ca-trust (ca-certificates package)
> failed on Windows 11 with Cygwin 3.6.11-1.

Thanks for reporting this issue.

> Observed:
> The script calls "find" without a path. In the postinstall environment
> this resolved to the Windows find.exe instead of Cygwin's find, which
> rejected the options (-type l, -regextype) with a command line
> parameter error. The script is run by setup, not manually. The exact
> error message is no longer available, because the failing code path
> is not reached anymore after my fix.
> 
> Expected:
> Postinstall scripts should not depend on the Windows PATH, or at least
> not on its order.

Well... maybe. The environment when the postinstall script runs is 
under-documented.

But in actuality, setup carefully curates the environment which scripts 
run in and sets PATH to start with 
"/usr/bin:/usr/sbin:/sbin:<WindowsSystemDir>" (See [1])

[1] https://cygwin.com/cgit/cygwin-apps/setup/tree/script.cc#n46

(You can confirm this by creating a /etc/postinstall/zp_env_dump.sh
file containing just '/usr/bin/env | /usr/bin/sort' and then examining 
what that outputs in /var/log/setup.log.full)

So I'm a bit baffled as to how it's not finding the right "find" for you.

> Workaround:
> Use /bin/find in both places where the script calls find (lines 124
> and 153). After that, the script ran through.
> 
> Separately, I also had to change "ln -s" to "ln -f -s" in line 157.
> This is unrelated to the PATH problem and I do not know why it was
> needed in my case. I did not look at which link already existed.
> 
> Diff (original -> working version):
> 
> --- update-ca-trust.orig
> +++ update-ca-trust
> @@ -124 +124 @@
> -              find "$DEST_CERTS" -type l -regextype posix-extended \
> +              /bin/find "$DEST_CERTS" -type l -regextype posix-extended \
> @@ -153 +153 @@
> -              find "$DEST/pem/directory-hash" -type l -regextype posix-extended \
> +              /bin/find "$DEST/pem/directory-hash" -type l -regextype posix-extended \
> @@ -157 +157 @@
> -                      ln -s "$target" "$new_link"
> +                      ln -f -s "$target" "$new_link"
> 
Even if your diagnosis is correct, this is a fix for a specific 
instance. I'm not sure if all other postinstall scripts are so 
meticulous about using explicit paths, so perhaps there'd be many other 
places to fix as well?


-- 
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 © 2026   by DJ Delorie     Updated Dec 4 2026