From b1489f97e0670fed7d450bae86a3aae38bc9156b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sun, 10 Nov 2013 00:02:43 +0100 Subject: [PATCH] fstrim: Indicate failure on error +14b Signed-off-by: Bernhard Reutner-Fischer --- util-linux/fstrim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c index 00140b340..84a641022 100644 --- a/util-linux/fstrim.c +++ b/util-linux/fstrim.c @@ -103,6 +103,7 @@ int fstrim_main(int argc UNUSED_PARAM, char **argv) if (opts & OPT_v) printf("%s: %llu bytes were trimmed\n", bd, range.len); + return EXIT_SUCCESS; } - return EXIT_SUCCESS; + return EXIT_FAILURE; } -- 2.25.1