From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078614710621.tru64-unix-managers.marc@archive.invalid> From: Bernt Christandl Date: Tue, 29 Jul 1997 12:07:23 +0000 To: tru64-unix-managers Subject: SUMMARY (and bug(?)-report): du-4.0b and getlogin(2) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078614710621 Hello managers, my question was: > 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? 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