From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078614710615.tru64-unix-managers.marc@archive.invalid> From: Bernt Christandl Date: Tue, 29 Jul 1997 10:05:22 +0000 To: tru64-unix-managers Subject: du-4.0b and getlogin(2) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078614710615 Hello managers, is getlogin(2) broken under du-4.0b??? I have a small c-programm, #include main() { char *val; val = getlogin(); if ( val == (char *)NULL ) { perror("getlogin(2) failed"); } else { printf("getlogin(2): login name = %s\n", val); } } which runs under du-4.0a and returns the loginname, while under du-4.0b an error is returned: getlogin(2) failed: Invalid argument Obviously i've missed something? What's the problem here? Thank you! Bernt Christandl ---------------------------------------------------------------------- - Bernt Christandl / Max Planck Institut - Extraterrestrische Physik - - D-85740 Garching / Phone: +49/89/3299-3342 / Fax: +49/89/3299-3569 - - email: beb@mpe.mpg.de - ----------------------------------------------------------------------