cap_fileargs: fix GCC build, don't shadow 'stat'

Reported by:	ci.freebsd.org
MFC after:	3 weeks
MFC with:	r346315
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2019-04-17 16:31:30 +00:00
parent 2614c4835f
commit b6539d47bd

View File

@ -566,7 +566,7 @@ static int
fileargs_command_lstat(const nvlist_t *limits, nvlist_t *nvlin,
nvlist_t *nvlout)
{
int stat;
int error;
const char *name;
struct stat sb;
@ -578,7 +578,7 @@ fileargs_command_lstat(const nvlist_t *limits, nvlist_t *nvlin,
name = nvlist_get_string(nvlin, "name");
stat = lstat(name, &sb);
error = lstat(name, &sb);
if (stat < 0)
return (errno);