commit e6375453b1a108f902911cabec559aad210623af
parent 7f92db73273fda65ad7660410f0d23f0c9b1095e
Author: sin <sin@2f30.org>
Date: Fri, 7 Mar 2014 13:52:31 +0000
Set ret to EXIT_FAILURE if umount2() actually fails
Diffstat:
| M | umount.c | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --dropbox 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;
}