Bugtraq mailing list archives

Re: RPC protocol problem? [patch for Sun/Solaris systems]


From: Luc.Saccavini () imag fr (Luc Saccavini)
Date: Wed, 24 Aug 1994 12:16:50 +0200


It's available as ftp://coast.cs.purdue.edu/pub/tools/unix/nfsbug

 Here is an other patch for Sun running Solaris (2.1 :-()


*** nfsbug.c.orig       Wed Aug 24 11:24:04 1994
--- nfsbug.c    Wed Aug 24 11:38:45 1994
***************
*** 31,37 ****
--- 31,41 ----
  #include <sys/vfs.h>
  #include <sys/sysmacros.h>
  #ifdef SVR4
+ #ifdef sun
+ #include <sys/fs/ufs_inode.h>
+ #else
  #include <sys/inode.h>
+ #endif
  #else
  #ifndef HPUX
  #include <ufs/inode.h>
*** Makefile.orig       Wed Aug 24 11:24:02 1994
--- Makefile    Wed Aug 24 11:46:35 1994
***************
*** 1,8 ****
  CC=cc
  #CFLAGS=-g -I. -DSVR4
! #LIBS=-lsocket -lnsl -L/usr/ucblib -lucb -lresolv
  CFLAGS=-ggdb -I.
! LIBS=
  NFSBUG_SOURCES=mount_clnt.c mount_xdr.c nfs_prot_clnt.c nfs_prot_xdr.c nfsbug.c
  NFSBUG_OBJECTS=mount_clnt.o mount_xdr.o nfs_prot_clnt.o nfs_prot_xdr.o nfsbug.o
  RPCGEN_MOUNT= mount.h mount_clnt.c mount_svc.c mount_xdr.c
--- 1,8 ----
  CC=cc
  #CFLAGS=-g -I. -DSVR4
! LIBS=-lsocket -lnsl -L/usr/ucblib -R/usr/ucblib -lucb -lresolv -lelf
  CFLAGS=-ggdb -I.
! #LIBS=
  NFSBUG_SOURCES=mount_clnt.c mount_xdr.c nfs_prot_clnt.c nfs_prot_xdr.c nfsbug.c
  NFSBUG_OBJECTS=mount_clnt.o mount_xdr.o nfs_prot_clnt.o nfs_prot_xdr.o nfsbug.o
  RPCGEN_MOUNT= mount.h mount_clnt.c mount_svc.c mount_xdr.c

----------------------------------------
Luc Saccavini   <Luc.Saccavini () INRIA Fr>
INRIA Rhone-Alpes
46, Avenue Felix Viallet
F-38031 GRENOBLE Cedex 1



Current thread: