nfs-server-2.2beta26 patch for MkLinux This patch "nfs-server-2.2beta26.mklinux.diff" is for porting of ftp://linux.nrao.edu/pub/people/okir/nfs-server-2.2beta26.tar.gz to MkLinux DR2.1 in static library. Usage: patch -p1 < nfs-server-2.2beta26.mklinux.diff by MURATA Nobuhiro nob@makioka.y-min.or.jp 1997.6.10 diff -c nfs-server-2.2beta26.orig/auth.c nfs-server-2.2beta26/auth.c *** nfs-server-2.2beta26.orig/auth.c Mon Sep 30 16:45:35 1996 --- nfs-server-2.2beta26/auth.c Tue Jun 3 23:43:03 1997 *************** *** 23,31 **** /* It appears to be an old and long-standing tradition on Unices not * to declare the netgroup functions in any header file */ ! extern _PRO( int setnetgrent, (char *netgroup) ); extern _PRO( int getnetgrent, (char **host, char **user, char **domain) ); ! extern _PRO( int endnetgrent, (void) ); extern _PRO( int innetgr, (const char *netgroup, const char *host, const char *user, const char *domain) ); --- 23,31 ---- /* It appears to be an old and long-standing tradition on Unices not * to declare the netgroup functions in any header file */ ! extern _PRO( int setnetgrent_nfs, (char *netgroup) ); extern _PRO( int getnetgrent, (char **host, char **user, char **domain) ); ! extern _PRO( int endnetgrent_nfs, (void) ); extern _PRO( int innetgr, (const char *netgroup, const char *host, const char *user, const char *domain) ); diff -c nfs-server-2.2beta26.orig/auth_clnt.c nfs-server-2.2beta26/auth_clnt.c *** nfs-server-2.2beta26.orig/auth_clnt.c Sat Sep 21 00:22:28 1996 --- nfs-server-2.2beta26/auth_clnt.c Wed Jun 4 00:53:30 1997 *************** *** 128,135 **** short uid, gid, grplen = NGRPS; int groups[NGRPS], i; ! i = authdes_getucred(rqstp->rq_clntcred, &uid, &gid, &grplen, groups); if (!i) goto nobody; cred_uid = (uid_t) uid; --- 128,137 ---- short uid, gid, grplen = NGRPS; int groups[NGRPS], i; ! /* i = authdes_getucred(rqstp->rq_clntcred, &uid, &gid, &grplen, groups); + */ + i = 0; if (!i) goto nobody; cred_uid = (uid_t) uid; diff -c nfs-server-2.2beta26.orig/fh.h nfs-server-2.2beta26/fh.h *** nfs-server-2.2beta26.orig/fh.h Wed Nov 27 05:20:16 1996 --- nfs-server-2.2beta26/fh.h Tue Jun 3 23:32:01 1997 *************** *** 115,121 **** /* Global function prototypes. */ extern _PRO( enum nfsstat nfs_errno, (void) ); ! extern _PRO( psi_t pseudo_inode, (u_long inode, u_short dev) ); extern _PRO( void fh_init, (void) ); extern _PRO( char *fh_pr, (nfs_fh *fh) ); extern _PRO( int fh_create, (nfs_fh *fh, char *path) ); --- 115,121 ---- /* Global function prototypes. */ extern _PRO( enum nfsstat nfs_errno, (void) ); ! extern _PRO( psi_t pseudo_inode, (ino_t inode, dev_t dev) ); extern _PRO( void fh_init, (void) ); extern _PRO( char *fh_pr, (nfs_fh *fh) ); extern _PRO( int fh_create, (nfs_fh *fh, char *path) );