From 9602629057e1016f8ca7dfa2aae1477e4faece65 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 5 Apr 2015 13:21:51 +0000 Subject: [PATCH] com_setatt(): Return negative on errors --- aft.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aft.c b/aft.c index 96e0ab9a..c255b245 100644 --- a/aft.c +++ b/aft.c @@ -2458,12 +2458,10 @@ static int com_setatt_callback(int fd, const struct osl_object *query) if (ret < 0) goto out; if (pmd.num_matches == 0) - para_printf(&cad.pb, "no matches\n"); + ret = -E_NO_MATCH; out: - if (ret < 0) - para_printf(&cad.pb, "%s\n", para_strerror(-ret)); flush_and_free_pb(&cad.pb); - return 0; + return ret; } int com_setatt(struct command_context *cc) -- 2.30.2