summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index ffc8acd..95c4a34 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -71,7 +71,7 @@ int FAST_FUNC del_loop(const char *device)
fd = open(device, O_RDONLY);
if (fd < 0)
- return 1;
+ return fd; /* -1 */
rc = ioctl(fd, LOOP_CLR_FD, 0);
close(fd);