This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: File name too long (91)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 10 Apr 2005 10:00:01 +0200
- Subject: Re: File name too long (91)
- References: <42586E26.10802@baldauf.org>
- Reply-to: cygwin at cygwin dot com
On Apr 10 02:07, Xu?n Baldauf wrote:
> Hello,
>
> I'm hitting "File name too long (91)" errors when using "rsync" or even
> "ls" within cygwin. I tracked down this problem to the constant
> "CYG_MAX_PATH", which seems to be defined in "cygtls.h". Would it be a
> problem to rise this limit?
Yes. The main reason is, it won't work. Cygwin is using the ASCII
variations of Win32 functions which limit the path length to 260
characters, including the trailing 0. Just raising a define won't
change anything. The real long term solution is to use the WideChar
variations of the Win32 functions or the NT API instead, but that
would not work on 9x (heh, *I*'m sayin that) and even then, it's a
lot of work, especially to do it right.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/