delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/10/04:00:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 10 Apr 2005 10:00:01 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: File name too long (91)
Message-ID: <20050410080001.GW1471@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <42586E26 DOT 10802 AT baldauf DOT org>
Mime-Version: 1.0
In-Reply-To: <42586E26.10802@baldauf.org>
User-Agent: Mutt/1.4.2i

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019