Date: Sun, 3 Nov 2019 02:17:36 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r354271 - projects/nfsv42/sys/fs/nfsclient Message-ID: <201911030217.xA32HaiR081572@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911030217.xA32HaiR081572>