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


