- Fix build on 4.x
Reported by: pointyhat via kris
This commit is contained in:
parent
1664af539b
commit
b30be827cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123094
1 changed files with 14 additions and 0 deletions
14
net/unfs3/files/patch-nfs.c
Normal file
14
net/unfs3/files/patch-nfs.c
Normal 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)); \
|
Loading…
Reference in a new issue