From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10301311655.AA25197@clio.rice.edu> Subject: Re: Bug: getmntent() sets LFN, but doesn't restore it To: djgpp-workers AT delorie DOT com Date: Fri, 31 Jan 2003 10:55:02 -0600 (CST) In-Reply-To: <3E3A52D3.5F011CEA@phekda.freeserve.co.uk> from "Richard Dawe" at Jan 31, 2003 10:41:23 AM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > getmntent() in src/libc/compat/mntent/mntent.c sets LFN, but doesn't not > restore its original value, once it has finished. To work around a Win2k bug, > it sets LFN=n, to find volume labels, and then sets it to LFN=y, once it's > done. That's fine when LFN=y, but what if LFN=n initially? If LFN=n to begin with, w2k_bug won't be set. That entire thing was a mess - I think it would be better to get rid of the putenv's and fix findfirst to work around the bug. A bad choice on my part