Set ret to EXIT_FAILURE if umount2() actually fails

This commit is contained in:
sin 2014-03-07 13:52:31 +00:00
parent 7f92db7327
commit e6375453b1

View File

@ -55,9 +55,10 @@ main(int argc, char *argv[])
} }
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if (umount2(argv[i], flags) < 0) if (umount2(argv[i], flags) < 0) {
perror("umount2:"); perror("umount2:");
ret = EXIT_FAILURE; ret = EXIT_FAILURE;
}
} }
return ret; return ret;
} }