mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00: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:
1 parent
a02f369a89
commit
5240c0cf19
1 file changed
+3
-2
+3
-2
@@ -96,8 +96,9 @@ static int unmount(const char *target)
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = umount(target);
|
rc = umount(target);
|
||||||
if (rc && errno != EBUSY) {
|
if (rc) {
|
||||||
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
if (errno != EBUSY)
|
||||||
|
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
print(0, "Unmounting %s", target);
|
print(0, "Unmounting %s", target);
|
||||||
|
|||||||
Reference in new issue
Block a user