X-Spam-Check-By: sourceware.org
Message-ID: <43D8D4D2.8070302@byu.net>
Date: Thu, 26 Jan 2006 06:55:30 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Morten Kjarulff <MKJ@dk.ibm.com>
CC: cygwin@cygwin.com
Subject: Re: rsync: skipping overly long name
References: <OF4974E5CA.3ED38729-ONC1257102.003D9A7B-C1257102.003E47C0@dk.ibm.com>
In-Reply-To: <OF4974E5CA.3ED38729-ONC1257102.003D9A7B-C1257102.003E47C0@dk.ibm.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Morten Kjarulff on 1/26/2006 4:20 AM:
> I tried to google it, and it seems that the limit is is MAXPATHLEN. It also
> seems that MAXPATHLEN is smaller under cygwin than under other systems.
> 
> Is this true?

Almost.  The name is PATH_MAX, not MAXPATHLEN.

> What is the limit?

Look in /usr/include/limits.h.  260 (although a few Windows calls are even
more restrictive, such as directory names have a max of 248 or so in order
to allow an 8.3 filename within the directory).

> Is there a way that I can come around it (other than renaming my files ;-)?

Not on Windows 9x machines - it is a fundamental limitation of the ASCII
Windows system calls.  And even on Windows NT machines, it would be a
MAJOR patch to cygwin to use the Unicode Windows system calls (where your
limit increases to 32k, but it is still a limit); read the list archives,
this topic has come up before.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD2NTS84KuGfSFAYARAr+3AKCGgurUGgSqBuzFL42qf/hUT4Dq/wCgwAS0
NgueeH5B+dk8woJOQ1OqFdM=
=eL4P
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

