Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2019 16:45:43 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346321 - head/lib/libcasper/services/cap_fileargs
Message-ID:  <201904171645.x3HGjhV1075494@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Apr 17 16:45:42 2019
New Revision: 346321
URL: https://svnweb.freebsd.org/changeset/base/346321

Log:
  cap_fileargs: fix test after r346318
  
  Reported by:	danfe, mjg
  MFC after:	3 weeks
  MFC with:	r346315
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/lib/libcasper/services/cap_fileargs/cap_fileargs.c

Modified: head/lib/libcasper/services/cap_fileargs/cap_fileargs.c
==============================================================================
--- head/lib/libcasper/services/cap_fileargs/cap_fileargs.c	Wed Apr 17 16:45:35 2019	(r346320)
+++ head/lib/libcasper/services/cap_fileargs/cap_fileargs.c	Wed Apr 17 16:45:42 2019	(r346321)
@@ -579,7 +579,7 @@ fileargs_command_lstat(const nvlist_t *limits, nvlist_
 	name = nvlist_get_string(nvlin, "name");
 
 	error = lstat(name, &sb);
-	if (stat < 0)
+	if (error < 0)
 		return (errno);
 
 	if (!allcached && (lastname == NULL ||



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904171645.x3HGjhV1075494>