X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0607072057r16dab0eif2ee438a7a846d1a@mail.gmail.com>
Date: Fri, 7 Jul 2006 23:57:52 -0400
From: "Lev Bishop" <lev.bishop@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Using du.exe to calculate disk usage on a Microsoft cluster server
In-Reply-To: <44AECD02.2090306@tlinx.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <00ec01c6a1dd$ab40c1b0$a501a8c0@CAM.ARTIMI.COM> 	 <44AECD02.2090306@tlinx.org>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On 7/7/06, Linda Walsh  wrote:

>        It is quite trivial.  He's prepending either "S:/" or
> "/cygdrive/s" to an existing pathname.  The existing pathname can be at the
> limit (~256 bytes).  Adding either prefix, above, the pathlen becomes 259

...which is why MAX_PATH on windows is 260, to allow for these extra 3 chars...

>        Another easy way: cd to directory "/averylongdirnamethathas200chars"
> you can create a file in that directory of "maxchars",

No, you can't. At least, you shouldn't be able to. The attempt to
create this file is supposed to fail because the limit is for the path
length as a whole.

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

