delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/30/15:41:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Barry Kelly <bkelly DOT ie AT gmail DOT com>
To: eddy DOT blum AT gmail DOT com
Cc: cygwin AT cygwin DOT com
Subject: Re: rsync in cygwin
Date: Sat, 30 Aug 2008 20:40:24 +0100
Message-ID: <pg8jb45gh1frclq1n9jiphpjghd25sea33@4ax.com>
References: <a65bd2270808300428x1c2ebf07s48cc31d3082927e3 AT mail DOT gmail DOT com>
In-Reply-To: <a65bd2270808300428x1c2ebf07s48cc31d3082927e3@mail.gmail.com>
X-Mailer: Forte Agent 4.2/32.1117
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m7UJfIsd024234

Edward Blum wrote:

> cannot send long-named file
> "/cygdrive/d/Shares/Public/Software/Navision Backup/GB Nav
> 4.0.SP3/Disk1/Additional Interfaces/BusinessNotificationServer/program
> files/Microsoft Business Solutions-Navision/Business
> Notification/Templates/en-GB/Template - Production BOM version - Items
> updat"
> 
> Reading up is it to do with a limitation of windows being 255 maximum
> character set is there any way round this?

Note that most Windows programs (including Windows Explorer) will not be
able to access files and directories whose paths exceed MAX_PATH, i.e.
260 characters (259 including null).

This means that the actual utility of copying such files to the machine
with a later version of Cygwin will probably be limited to manipulation
solely with Cygwin programs.

Details:

The Win32 NT subsystem can handle them, by using the \\?\ pseudo-UNC
syntax, but programs have to be written with that in mind. Most software
written in C & C++, and also many Windows-specific RTLs of other
languages, assume MAX_PATH to be the maximum file length and would
actually crash if forced to handle a file longer than MAX_PATH.

One way around the above issue would be to use a junction or similar to
shorten filenames for other programs.

-- Barry

-- 
http://barrkel.blogspot.com/

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