- Fix build on 4.x

Reported by:	pointyhat via kris
This commit is contained in:
Clement Laforet 2004-12-04 11:22:02 +00:00
parent 1664af539b
commit b30be827cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123094

View file

@ -0,0 +1,14 @@
--- nfs.c.orig Sat Dec 4 12:17:53 2004
+++ nfs.c Sat Dec 4 12:18:20 2004
@@ -45,9 +45,10 @@
* otherwise zero result structure and return with error status
*/
#define PREP(p,f) do { \
+ unfs3_fh_t *fh; \
setegid(0); \
seteuid(0); \
- unfs3_fh_t *fh = (void *)f.data.data_val; \
+ fh = (void *)f.data.data_val; \
p = fh_decomp(f); \
if (exports_options(p, rqstp, NULL, NULL) == -1) { \
memset(&result, 0, sizeof(result)); \