summaryrefslogtreecommitdiff
path: root/src/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/umount.c')
-rw-r--r--src/umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/umount.c b/src/umount.c
index 4fd6b22ad7..6fe0a26dd4 100644
--- a/src/umount.c
+++ b/src/umount.c
@@ -355,7 +355,7 @@ static int delete_loopback(const char *device) {
int fd, r;
if ((fd = open(device, O_RDONLY|O_CLOEXEC)) < 0)
- return -errno;
+ return errno == ENOENT ? 0 : -errno;
r = ioctl(fd, LOOP_CLR_FD, 0);
close_nointr_nofail(fd);