[Patches] [ python-Patches-1477350 ] Allow os.listdir to accept file names longer than MAX_PATH

SourceForge.net noreply at sourceforge.net
Mon Aug 28 05:44:49 CEST 2006


Patches item #1477350, was opened at 2006-04-26 21:19
Message generated for change (Comment added) made by rupole
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1477350&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Roger Upole (rupole)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow os.listdir to accept file names longer than MAX_PATH

Initial Comment:
On windows, os.listdir currently truncates paths 
longer than MAX_PATH due to using a fixed-size 
buffer.  Patch allocates a buffer of needed size.
It also replaces the forward slash appended to the 
path with a backslash since forward slashes don't
work when using a raw path.  There was also a 
potential crash if FindClose failed.

Diff'ed against 2.4.3.



----------------------------------------------------------------------

>Comment By: Roger Upole (rupole)
Date: 2006-08-27 22:44

Message:
Logged In: YES 
user_id=771074

Wheel subsequently reinvented

----------------------------------------------------------------------

Comment By: Roger Upole (rupole)
Date: 2006-04-26 22:38

Message:
Logged In: YES 
user_id=771074

Attaching a test script

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1477350&group_id=5470


More information about the Patches mailing list