[2838] in Release_Engineering
login/xlogin patch
daemon@ATHENA.MIT.EDU (Richard Basch)
Mon May 18 16:45:07 1992
Date: Mon, 18 May 92 16:44:44 -0400
To: rel-eng@MIT.EDU, release@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>
updated patch that should also work w/ sun.
This patch should work with both login.c and verify.c and is w/ respect
to my last patch...
-R
*** /tmp/,RCSt1R0QA_P Mon May 18 16:43:38 1992
--- verify.c Mon May 18 16:43:17 1992
***************
*** 929,936 ****
return(TRUE);
#endif
! #if (defined(vax) || defined(ibm032)) && !defined(REMOTEDONE)
#define REMOTEDONE
int f;
char c;
struct stat stbuf;
--- 929,942 ----
return(TRUE);
#endif
! #if (defined(vax) || defined(ibm032) || defined(sun)) && !defined(REMOTEDONE)
#define REMOTEDONE
+ #if defined(vax) || defined(ibm032)
+ #define NFS_MAJOR 0xff
+ #endif
+ #if defined(sun)
+ #define NFS_MAJOR 130
+ #endif
int f;
char c;
struct stat stbuf;
***************
*** 938,944 ****
if (stat(dir, &stbuf))
return(TRUE);
! if ((unsigned short)stbuf.st_dev >= 0xff00)
return(TRUE);
if (stbuf.st_dev == 0x0001) /* AFS */
return(TRUE);
--- 944,950 ----
if (stat(dir, &stbuf))
return(TRUE);
! if (major(stbuf.st_dev) == NFS_MAJOR)
return(TRUE);
if (stbuf.st_dev == 0x0001) /* AFS */
return(TRUE);