mirror of
https://github.com/troglobit/finit.git
synced 2026-12-04 21:58:19 +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
+2
-1
+2
-1
@@ -96,7 +96,8 @@ static int unmount(const char *target)
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = umount(target);
|
rc = umount(target);
|
||||||
if (rc && errno != EBUSY) {
|
if (rc) {
|
||||||
|
if (errno != EBUSY)
|
||||||
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user