Mail Archives: djgpp-workers/2000/07/24/02:36:45
On Mon, 24 Jul 2000, Piotr Eljasiak wrote:
> After patching libc, gelogin() works very fine outside DJGPP env.,
> but unforunately not on DJGPP machine. This is for USER env. var.
> is set to 'dosuser' in djgpp.env (if not defined in DOS) and USER
> has higher 'precedence' in getlogin().
>
> IMHO ideally it'd be the best to set USER DJGPP env. var. to
> USERNAME else to 'dosuser' if USERNAME undefined.
Why not change the order of precedence in getlogin()? If there are
systems where USERNAME is defined, but USER is not, that would be the
logical solution, no?
I'd prefer not to change DJGPP.ENV without a good reason.
> I've tried:
>
>
> +USER=%USERNAME%
> +USER=dosuser
>
> I'm not certain if it's legal
You mean, ``valid'', not ``legal''. ``Illegal'' is something prohibited
by a law ;-).
- Raw text -