delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/30/11:23:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=6w2RKkhu7vgA:10 a=w_pzkKWiAAAA:8 a=xe8BsctaAAAA:8 a=G7FRK6GHccFLEqg1t4IA:9 a=lU3VPuhTcvuKwBhzSgIA:7 a=J4T2isn3IVtKljHJAdda10mhiV0A:4 a=jyxc8lkN1aAA:10 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <47A0A44E.6020507@byu.net>
Date: Wed, 30 Jan 2008 09:22:38 -0700
From: Eric Blake <ebb9 AT byu DOT net>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: harmeet DOT bansal AT wipro DOT com, cygwin AT cygwin DOT com
Subject: Re: Limitation in PathName
References: <CD6509595C66FE4F93EDB0965AE001BA02B735A6 AT DEL-GGN-MBX01 DOT wipro DOT com>
In-Reply-To: <CD6509595C66FE4F93EDB0965AE001BA02B735A6@DEL-GGN-MBX01.wipro.com>
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

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

Please keep replies on the list: http://cygwin.com/acronyms/#PPIOSPE

According to harmeet DOT bansal AT wipro DOT com on 1/30/2008 8:35 AM:
| Hi,
|
| Thanks for replying..
|
| Actually,I am facing an issue where I am able to create a folder of
| absolute length >250 characters in windows but

Cygwin requires that both the Windows absolute name and the POSIX pathname
be less than PATH_MAX.  If you haven't exceeded the Windows limits, it
could be that you are only exceeding the limits from the POSIX path.  In
which case you can try mounting the directory with a shorter POSIX prefix.

|
| when I am using the cygwin built exe (libarchive 2.4.12 bsdtar.exe)
| +
| It is giving the message "File Name too long" for the same path.This exe
| gives no path limit on Unix.

That's because most Unix systems don't have such pathetically small limits.

|
| I am not able to answer why this situation is being encountered. I don't
| understand the figures. +
|
| As 260 being PATH_MAX and255 being windows pathlength limit..

No, the Windows path length limit for files is 260, although I don't
remember if that includes space for a trailing NUL.  However, Windows also
enforces that directories must be shorter that this, so that you could
still create an 8.3 file name within that directory.  Overall, it is just
another annoyance thrust upon Windows users.

|
| I just hope you can help me out.
|
| Regards,
| Harmeet
|
|
| The information contained in this electronic message...

Please refrain from sending mails with these disclaimers to publicly
archived lists - they are unenforceable, and against list policy.

- --
Don't work too hard, make some time for fun as well!

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

iD8DBQFHoKRN84KuGfSFAYARAh46AJ0YExu2y68oIi2L2Q2dzyKI/5NABwCbBR5c
4KEtbTPl4kkoYZToRkM8N7s=
=6XZK
-----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/

- Raw text -


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