cap_fileargs: fix test after r346318

Reported by:	danfe, mjg
MFC after:	3 weeks
MFC with:	r346315
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2019-04-17 16:45:42 +00:00
parent 246e18b224
commit 151744cf5c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346321

View file

@ -579,7 +579,7 @@ fileargs_command_lstat(const nvlist_t *limits, nvlist_t *nvlin,
name = nvlist_get_string(nvlin, "name");
error = lstat(name, &sb);
if (stat < 0)
if (error < 0)
return (errno);
if (!allcached && (lastname == NULL ||