SUMMARY (and bug(?)-report): du-4.0b and getlogin(2)

From: Bernt Christandl <beb_at_mpe.mpg.de>
Date: Tue, 29 Jul 1997 14:07:23 +0200

Hello managers,

my question was:

> is getlogin(2) broken under du-4.0b???
>
> I have a small c-programm,
>
> #include <unistd.h>
> 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?


The answer is NO.

But we think we have found a bug with CDE. The above described failure/
behaviour occurs only in those windows, that are opened automatically
remote at CDE-session login-time from another machine.

All these machines run under du-4.0b inclusive all patches from
patchkit 4 (DUV40BAS00004-19970609).

>From our only du-4.0a machine no xterms/dxterms/dtterms were started
automatically at all (when saved for a cde-session via "exit").

I will now open a call at my dec-telefon-support...

Thanks for the bandwidth,

Bernt Christandl
Received on Tue Jul 29 1997 - 14:24:52 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT