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