tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY (and bug(?)-report): du-4.0b and getlogin(2)
@ 1997-07-29 12:07 Bernt Christandl
  0 siblings, 0 replies; only message in thread
From: Bernt Christandl @ 1997-07-29 12:07 UTC (permalink / raw)
  To: tru64-unix-managers


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-07-29 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-29 12:07 SUMMARY (and bug(?)-report): du-4.0b and getlogin(2) Bernt Christandl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox