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:
Joachim Wiberg committed 2022-04-25 18:52:16 +02:00
1 parent a02f369a89
commit 5240c0cf19
1 file changed
+2 -1
+2 -1
View File
@@ -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;
} }