From: Andre Noll Date: Sun, 5 Apr 2015 15:18:48 +0000 (+0000) Subject: com_addblob(): Return negative on errors X-Git-Tag: v0.5.6~94^2~11 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=134e02f7e90d37a3056198d8ba374e0271415d15;hp=bb94ae9d3364ac5e868bc0f979854ccea222963c com_addblob(): Return negative on errors --- diff --git a/blob.c b/blob.c index ea746072..6e48c487 100644 --- a/blob.c +++ b/blob.c @@ -374,13 +374,12 @@ static int com_addblob_callback(struct osl_table *table, int fd, afs_event(BLOB_ADD, NULL, table); out: if (ret < 0) - msg_len = xasprintf(&msg, "could not add %s: %s\n", name, - para_strerror(-ret)); + msg_len = xasprintf(&msg, "cannot add %s\n", name); else msg_len = xasprintf(&msg, "added %s as id %u\n", name, id); pass_buffer_as_shm(fd, SBD_OUTPUT, msg, msg_len); free(msg); - return 0; + return ret; } /* Write input from fd to dynamically allocated buffer, but maximal 10M. */