diff options
-rw-r--r-- | libbb/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index e5b21642e..5d06116e8 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -119,7 +119,7 @@ int set_loop(char **device, const char *file, int offset) | |||
119 | loopinfo.lo_offset = offset; | 119 | loopinfo.lo_offset = offset; |
120 | /* Associate free loop device with file. */ | 120 | /* Associate free loop device with file. */ |
121 | if(!ioctl(dfd, LOOP_SET_FD, ffd)) { | 121 | if(!ioctl(dfd, LOOP_SET_FD, ffd)) { |
122 | if (!ioctl(dfd, BB_LOOP_SET_STATUS, &loopinfo)) rc=0; | 122 | if (!ioctl(dfd, BB_LOOP_SET_STATUS, &loopinfo)) rc=0; |
123 | else ioctl(dfd, LOOP_CLR_FD, 0); | 123 | else ioctl(dfd, LOOP_CLR_FD, 0); |
124 | } | 124 | } |
125 | 125 | ||