mirror of
https://github.com/troglobit/finit.git
synced 2026-10-10 16:52:39 +07:00
Follow-up to a91e197: allow umount fail on EBUSY, skip error message
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+3
-2
@@ -96,8 +96,9 @@ static int unmount(const char *target)
|
||||
int rc;
|
||||
|
||||
rc = umount(target);
|
||||
if (rc && errno != EBUSY) {
|
||||
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
||||
if (rc) {
|
||||
if (errno != EBUSY)
|
||||
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
||||
return rc;
|
||||
}
|
||||
print(0, "Unmounting %s", target);
|
||||
|
||||
Reference in New Issue
Block a user