diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-14 05:37:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-14 15:37:09 +0100 |
commit | c4f8bd1aef96063ccc2121fe2429a933a0b2068d (patch) | |
tree | fd4a6960e333f0f312bf458d520e822874d61475 /src | |
parent | 973bcd30bfd8c5d6d28d40075ae9b2561f9d3e2a (diff) |
umount: assume that a non-existing /dev/loop device means it is already detached
Diffstat (limited to 'src')
-rw-r--r-- | src/umount.c | 2 |
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); |