projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bdac4f
)
com_setatt(): Return negative on errors
author
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 5 Apr 2015 13:21:51 +0000
(13:21 +0000)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Wed, 12 Aug 2015 21:23:48 +0000
(23:23 +0200)
aft.c
patch
|
blob
|
history
diff --git
a/aft.c
b/aft.c
index 96e0ab9ab2a0142f564d4a9387b1a6a92dfcea9d..c255b245fdf0209f0c8b09ba0b28310fddcb8fa5 100644
(file)
--- 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)