delorie.com/archives/browse.cgi | search |
Sender: | richdawe AT bigfoot DOT com |
Message-ID: | <377A7CC1.44FC71B3@tudor21.net> |
Date: | Wed, 30 Jun 1999 20:23:29 +0000 |
From: | Richard Dawe <richdawe AT bigfoot DOT com> |
X-Mailer: | Mozilla 4.51 [en] (X11; I; Linux 2.2.10 i586) |
X-Accept-Language: | de,fr |
MIME-Version: | 1.0 |
To: | DJGPP workers <djgpp-workers AT delorie DOT com> |
Subject: | getlogin.c, getlogin.txh & djgpp.env inconsistencies |
Reply-To: | djgpp-workers AT delorie DOT com |
Hello. I noticed an inconsistency in the libc sources between src/libc/posix/unistd/getlogin.c and src/libc/posix/unistd/getlogin.txh & djgpp.env. This is with regard to the user's login name. The texinfo docs say the default is 'dosuser', but the code has 'user' as the default user. In practice it will be 'dosuser' because djgpp.env sets $USER (if not set) to 'dosuser'. The simplest fix is to change getlogin.c in accordance with getlogin.txh, djgpp.env. This is true for DJGPP 2.01, 2.02 & CVS dated 1999-06-14. Bye, -- --------------+----------------------+------------------------------------ Richard Dawe | richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ --------------+----------------------+------------------------------------
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |