From e6375453b1a108f902911cabec559aad210623af Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 7 Mar 2014 13:52:31 +0000 Subject: [PATCH] Set ret to EXIT_FAILURE if umount2() actually fails --- umount.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umount.c b/umount.c index b205812..e98d4b3 100644 --- a/umount.c +++ b/umount.c @@ -55,9 +55,10 @@ main(int argc, char *argv[]) } for (i = 0; i < argc; i++) { - if (umount2(argv[i], flags) < 0) + if (umount2(argv[i], flags) < 0) { perror("umount2:"); - ret = EXIT_FAILURE; + ret = EXIT_FAILURE; + } } return ret; }