Mail Archives: djgpp/1997/01/16/08:25:03
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.
- Raw text -