Date: Thu, 16 Jan 1997 15:11:12 +0200 (IST) From: Eli Zaretskii To: Robert Hoehne cc: djgpp AT delorie DOT com Subject: Re: Long filename problem with RHIDE In-Reply-To: <32DE25A8.27E2@Mathematik.tu-chemnitz.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 16 Jan 1997, Robert Hoehne wrote: > When the user gives the -y switch, I do a putenv("LFN=y") but it > seems, that this is not enogh, probably I should modify also the > crt0-flags. No, no, no, please don't do that. The current logic of `_use_lfn' assumes that nobody changes the value of `_crt0_startup_flags' during the entire time that the program runs, and they are only designed to disable the LFN support when it is possible, the other way around won't have any effect. So if you change the crt0 flags you risk subtle bugs. The correct way to do that is to call `putenv', as you described, so please see why this isn't working. src/libc/dos/lfn/_use_lfn.c includes a short test program which does exactly that, and it worked for me at the time.