delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/10/08/14:02:46

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 598I2kdk240686
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 598I2kdk240686
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=f4bsxmyV
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC9EE3858C41
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1759946564;
bh=/d2P/jIxV34t648hju60RRRHEsWbsKkzVQTy50RQUjA=;
h=Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=f4bsxmyVvkAU+72SVd8lbAWdyd7N9ZzcOdHGAbxTpL8+1uPEhcqtVV3WhIijWMDor
uGhsTMdnVkM/6HzmWIODtwPxHUX+bO5IPyIfc/1e9rKIHimFB+56KVQobstaC2qLpR
e5fre1vLVqRZ6bEu+EHG+kYnR/Cwg/S5IIn9TkzM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 845B03858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 845B03858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759946541; cv=none;
b=eEqIkPW3um7rbluJLOvE3KXQ67Klb62udH17a4vanY5GuE2+bCHYwm/H9nZYGLpK7uVwFqU/HI6MblWExRDIjkF3i81YCwWCm/qdIl7js7EyAS36DWTPcAcZXmwPAZovWMtVfjoaA5eZk0e/SKvGUpFRil+AuwShi8d+yn60HVc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1759946541; c=relaxed/simple;
bh=pzRhIxPVn0XzkQSVsvZEdtH5UMZmH/K99eOsFdfY8iQ=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=Bt9lURHl3Hvf9sFeEz2xhPu/xtrDKAtjNtcfvakUWprA9iQlXok4bgm2WKYM/dfyTuqPB/8AidL3Hu2YL241TBRfjrREXNO/QMT3DBU1jPGnWljwpAGwMVU9nNgemgicsV6I6dU8UkAwIAU7D99G/bRSAYEaZlH/OGYqnspPtxA=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 845B03858D1E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1759946541; x=1760551341;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=pzRhIxPVn0XzkQSVsvZEdtH5UMZmH/K99eOsFdfY8iQ=;
b=L0Bxomkxcj/BUaY2tfv4jWsVV+ytZhZmTGacIWsjJDNJ06JfIgjDMN6qWSJ0sUpIhx
sRLpZjBsDNlECUudm5jpO7dqJ2yL9jHc0UWiITiHmNsaW6GmVdngFWcW3/CQ0Fu8pW6j
EqqcWtv6DqMtD2OZ6zAqUgy9HaXniZ0Z/b80e3k//Ahlzc6hjNCQyoCkWvpkg6QFdUF5
T8GscRu239Y708q9mZ25kHQXXEQTfMkuE25xPUK/Btt+w1n4QFaNK2ni5GZtp9K7ERDZ
+OBaisunEfcy+qoJaQqyVx3GSQcH8cqyKzom49HijTu1DNqf+Aw4q9Et7dRjVZ7VMcC4
OEgQ==
X-Gm-Message-State: AOJu0YxufFM1KBdLQ4pMOJxEPC+NNSlKCCOL2lwtW/ytvgq/FsqqKs1d
FzDoe0FPQUtql8jIQ+bQP4zadd3EfhyKjUEf21+oqdbp15e71JZ15+Qc2g8NJmbX18EKSaDqlwF
yhGhbMTP3029RvkiAVzEC+U8f0k/i//vcCqQjQds=
X-Gm-Gg: ASbGncsXjtozrU/JFqR11t00pcWRhbr/Gk4d4p5XkuFtR+mF7faKbVz/1pt78MigUBz
K3k71L38bChRI49eIPxlF5BKCTs7+FrXkQdxkJ+rZ8HWPf2uJFn33OHQZttfF9oP6LeGT+yOiVQ
JaU8q7WORP50Jrcs5rfpvmArfIMPNaAVG7fBnisXqfgahGCPBb7V1eKqwMGo/4po2ospUMPE7hw
NXBIGqNlsGRK+4Myz7lui9pDDt+yI7k
X-Google-Smtp-Source: AGHT+IFlwaUTxqql95vuYQEwrZMTPIye00xby+x7DjcExAMhqKTe5C9/gLQdq0fJwKpRZ31TEJmm//eOljrjAh4HvNo=
X-Received: by 2002:a05:6808:68cf:10b0:441:7c61:7f90 with SMTP id
5614622812f47-4417c618537mr1899461b6e.32.1759946540317; Wed, 08 Oct 2025
11:02:20 -0700 (PDT)
MIME-Version: 1.0
Date: Wed, 8 Oct 2025 21:02:08 +0300
X-Gm-Features: AS18NWAnOWBIYLiBZxfrJDDl6HAqkruO5RkDSJeKd_6epkrfZQ-G_5OFsz80Xlg
Message-ID: <CAFNJpnjAnoKgKtCCoajeEoustA6SCQ213eboZ9dq1L3-tdQF0g@mail.gmail.com>
Subject: MAX_PATH issue, 256 long file names are not visible to Cygwin
To: cygwin AT cygwin DOT com
Cc: Oleksandr Gavenko <gavenkoa AT gmail DOT com>
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-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: Oleksandr Gavenko via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Oleksandr Gavenko <gavenkoa AT gmail 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 598I2kdk240686

During rsync in WSL 2 via p9 I've got few read errors.

I investigated paths with Cygwin tools, ls.exe fails with error:

/usr/bin/ls: cannot access
'/users/user/net/tmp/test/124'$'\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211\\321\\211''.t':
No such file or directory

To reproduce:

mkdir test
cd test
n='щ'; for ((i=1; i<150; i+=1)); do echo $i >$(printf "%03s"
$i)"$n.txt"; n="$nщ"; done

It start fails with:

bash: 125щщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщщ.txt:
File name too long

I edited 124...txt file manually, adding another extra symbol to the
name in Explorer. Far manager and Explorer see file correctly,
Cygwin's ls.exe fails (see the first error at the top of email).

If we count the length of the last non-failing file name in UTF-8
coding, the length is 3 + 124*2 + 4 = 255.

Flipping through cygwin-ug-net-nochunks.html didn't enlightened me, like:

> What's new and what changed from 1.5 to 1.7
> PATH_MAX is now 4096. Internally, path names can be as long as the underlying OS can handle (32K).

I had to shorten names to keep WSL2 to ext4 fs backup working ( wmic
diskdrive list brief + wsl --mount \\.\PHYSICALDRIVE2 --partition 1
--type ext4 + rsync ) anyway.

Still, I manage files via Emacs-W32 Dired (utilizing ls.exe with
ls-lisp.el), wondering if the situation is OK for Cygwin failing on
256 long file names.

Please CC me gavenkoa AT gmail DOT com in a reply, I'm not subscribed.

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