svn commit: r346318 - head/lib/libcasper/services/cap_fileargs

Alexey Dokuchaev danfe at freebsd.org
Wed Apr 17 16:43:32 UTC 2019


On Wed, Apr 17, 2019 at 04:31:30PM +0000, Ed Maste wrote:
> New Revision: 346318
> URL: https://svnweb.freebsd.org/changeset/base/346318
> 
> Log:
>   cap_fileargs: fix GCC build, don't shadow 'stat'
>   
> @@ -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_
>  
>  	name = nvlist_get_string(nvlin, "name");
>  
> -	stat = lstat(name, &sb);
> +	error = lstat(name, &sb);
>  	if (stat < 0)
>  		return (errno);

Looks like "if (stat < 0)" is wrong now.

./danfe


More information about the svn-src-head mailing list