From 151744cf5ce7b9a5b7edbea3baa71ad1ea2193ea Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 17 Apr 2019 16:45:42 +0000 Subject: [PATCH] cap_fileargs: fix test after r346318 Reported by: danfe, mjg MFC after: 3 weeks MFC with: r346315 Sponsored by: The FreeBSD Foundation --- lib/libcasper/services/cap_fileargs/cap_fileargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcasper/services/cap_fileargs/cap_fileargs.c b/lib/libcasper/services/cap_fileargs/cap_fileargs.c index 266fdb810d73..71dd88f93a9c 100644 --- a/lib/libcasper/services/cap_fileargs/cap_fileargs.c +++ b/lib/libcasper/services/cap_fileargs/cap_fileargs.c @@ -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 ||