diff options
| author | Marcel Telka <marcel.telka@nexenta.com> | 2015-01-24 00:59:24 +0100 | 
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2015-01-26 22:07:15 -0800 | 
| commit | f46abf18becdb2393d5f5bb30fa594037403c4a3 (patch) | |
| tree | 97a0d35ebcc28ed2fa7232d35927876acf7aa4f6 /usr/src | |
| parent | 6ac69b9e8b1fd0a0c01fff97ef2c9510c8934330 (diff) | |
| download | illumos-joyent-f46abf18becdb2393d5f5bb30fa594037403c4a3.tar.gz | |
5557 rfs3_lookup() could return invalid error
Reviewed by: Jason King <jason.brian.king@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/uts/common/fs/nfs/nfs3_srv.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/usr/src/uts/common/fs/nfs/nfs3_srv.c b/usr/src/uts/common/fs/nfs/nfs3_srv.c index 0f3d54ec4c..b10ae94693 100644 --- a/usr/src/uts/common/fs/nfs/nfs3_srv.c +++ b/usr/src/uts/common/fs/nfs/nfs3_srv.c @@ -18,10 +18,11 @@   *   * CDDL HEADER END   */ +  /* + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.   * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.   * Copyright (c) 2013 by Delphix. All rights reserved. - * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.   */  /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ @@ -466,8 +467,7 @@ rfs3_lookup(LOOKUP3args *args, LOOKUP3res *resp, struct exportinfo *exi,  				if (exi != NULL)  					exi_rele(exi);  				VN_RELE(vp); -				resp->status = NFS3ERR_ACCES; -				error = 1; +				error = EACCES;  			}  			if (tp != NULL)  				TPC_RELE(tp); @@ -493,8 +493,7 @@ rfs3_lookup(LOOKUP3args *args, LOOKUP3res *resp, struct exportinfo *exi,  				if (publicfh_flag && exi != NULL)  					exi_rele(exi);  				VN_RELE(vp); -				resp->status = NFS3ERR_ACCES; -				error = 1; +				error = EACCES;  			}  		}  	} | 
