Set ret to EXIT_FAILURE if umount2() actually fails
This commit is contained in:
parent
7f92db7327
commit
e6375453b1
5
umount.c
5
umount.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user