From: Andre Noll Date: Sun, 5 Apr 2015 13:21:51 +0000 (+0000) Subject: com_setatt(): Return negative on errors X-Git-Tag: v0.5.6~94^2~21 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=9602629057e1016f8ca7dfa2aae1477e4faece65 com_setatt(): Return negative on errors --- 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)