[PATCH] avoid more useless diagnostics: "failed to get policy..."

Pete Zaitcev zaitcev at redhat.com
Mon Jun 6 18:18:14 UTC 2011


On Mon, 06 Jun 2011 20:04:07 +0200
Jim Meyering <jim at meyering.net> wrote:

>  		int rc = meta_get_value(ms->bucket,ms->key, "_policy", &policy);
> -		if (rc)
> +		if (rc && rc != ENOENT)
>  			error (0, rc, _("failed to get policy for %s/%s"),
>  			       ms->bucket,ms->key);

Looks fine to me.

-- Pete


More information about the iwhd-devel mailing list