X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fumount.c;h=6fe0a26dd413278ae704e1037b0466abcdc04429;hb=e03ae6615a1fe9a2aee854d00c3fc7397a06983d;hp=4fd6b22ad78620e3585985b0a3f9a19989a827b3;hpb=7fc942b29e7bdb9d6aa3123f53da6680edabd8f0;p=elogind.git diff --git a/src/umount.c b/src/umount.c index 4fd6b22ad..6fe0a26dd 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);