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:
parent
2614c4835f
commit
b6539d47bd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user