diff options
author | alc <alc@FreeBSD.org> | 1999-07-28 08:20:49 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-07-28 08:20:49 +0000 |
commit | 1f3845a85984148b211057b3238b0d7eea62bb2b (patch) | |
tree | 49f2a24e58667c21fd6426d6d28081fba1a95545 /sys | |
parent | 37dec27558a97e62dc2669724f0b5a5c01f68004 (diff) | |
download | FreeBSD-src-1f3845a85984148b211057b3238b0d7eea62bb2b.zip FreeBSD-src-1f3845a85984148b211057b3238b0d7eea62bb2b.tar.gz |
Clear error in nfsrv_create when we have a valid reply so that
that reply is actually transmitted.
Submitted by: dillon
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_serv.c | 3 | ||||
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 68cc700..b8203c8 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.80 1999/06/30 04:29:13 julian Exp $ + * $Id: nfs_serv.c,v 1.81 1999/07/17 18:43:46 phk Exp $ */ /* @@ -1767,6 +1767,7 @@ nfsrv_create(nfsd, slp, procp, mrq) nfsm_srvpostop_attr(0, vap); } nfsm_srvwcc_data(dirfor_ret, &dirfor, diraft_ret, &diraft); + error = 0; } else { nfsm_srvfhtom(fhp, v3); nfsm_build(fp, struct nfs_fattr *, NFSX_V2FATTR); diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 68cc700..b8203c8 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.80 1999/06/30 04:29:13 julian Exp $ + * $Id: nfs_serv.c,v 1.81 1999/07/17 18:43:46 phk Exp $ */ /* @@ -1767,6 +1767,7 @@ nfsrv_create(nfsd, slp, procp, mrq) nfsm_srvpostop_attr(0, vap); } nfsm_srvwcc_data(dirfor_ret, &dirfor, diraft_ret, &diraft); + error = 0; } else { nfsm_srvfhtom(fhp, v3); nfsm_build(fp, struct nfs_fattr *, NFSX_V2FATTR); |