[837] in Kerberos-V5-bugs
Re: Patch for window-size propagation in krb5 krlogin
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Fri Oct 7 15:05:58 1994
Date: Fri, 7 Oct 1994 15:07:46 -0400
From: "Jonathan I. Kamens" <jik@cam.ov.com>
To: "Jonathan I. Kamens" <jik@cam.ov.com>
Cc: krb5-bugs@MIT.EDU
In-Reply-To: [688]
I was wrong when I said that in krlogin.c, everything should use
getpid() instead of -getpid() when deciding what to pass into fcntl or
ioctl to set the ownership of a socket.
Apparently, getpid() works on SunOS, HP-UX and (I think) AIX, but
-getpid() works on Solaris (and getpid()) doesn't.
The patch I submitted on August 31 should be updated to use:
#ifdef __svr4__
int pid = -getpid();
#else
int pid = getpid();
#endif
instead of just "int pid = getpid();" where the pid is subsequently
used to set the ownership of a socket.
jik