[47] in 6.033-lab

home help back first fref pref prev next nref lref last post

nfsserv.c fixes

daemon@ATHENA.MIT.EDU (Constantine P. Sapuntzakis)
Sun Apr 20 20:02:52 1997

To: 6.033-lab@MIT.EDU
Date: Sun, 20 Apr 1997 20:02:53 EDT
From: "Constantine P. Sapuntzakis" <csapuntz@MIT.EDU>


1)

Delete all #include lines up to but not include #include "sysconf.h"

2)

In the function internal_lookup, replace the lines:

	e = Sdirent_lookup(s, a->name);
	internal_diropres(&res, e);	

with:
	
	e = Sdirent_lookup(s, a->name);
	if (e) {
		internal_diropres(&res, e);	
	} else {
		res.status = NFSERR_NOENT;
	}
	

-Costa
csapuntz@mit.edu

home help back first fref pref prev next nref lref last post