svn commit: r354271 - projects/nfsv42/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Sun Nov 3 02:17:36 UTC 2019
Author: rmacklem
Date: Sun Nov 3 02:17:35 2019
New Revision: 354271
URL: https://svnweb.freebsd.org/changeset/base/354271
Log:
Fix lsextattr for the case where there are no attributes.
How this one got missed on previous testing, I won't guess, but the
fix is simple.
Modified:
projects/nfsv42/sys/fs/nfsclient/nfs_clrpcops.c
Modified: projects/nfsv42/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- projects/nfsv42/sys/fs/nfsclient/nfs_clrpcops.c Sun Nov 3 01:52:50 2019 (r354270)
+++ projects/nfsv42/sys/fs/nfsclient/nfs_clrpcops.c Sun Nov 3 02:17:35 2019 (r354271)
@@ -8446,7 +8446,7 @@ nfsrpc_listextattr(vnode_t vp, uint64_t *cookiep, stru
NFSM_DISSECT(tl, uint32_t *, NFSX_HYPER + NFSX_UNSIGNED);
*cookiep = fxdr_hyper(tl); tl += 2;
cnt = fxdr_unsigned(int, *tl);
- if (cnt <= 0) {
+ if (cnt < 0) {
error = EBADRPC;
goto nfsmout;
}
More information about the svn-src-projects
mailing list