aboutsummaryrefslogtreecommitdiff
path: root/libbb/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/loop.c')
-rw-r--r--libbb/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c
index da41d1e76..d22b39800 100644
--- a/libbb/loop.c
+++ b/libbb/loop.c
@@ -83,7 +83,7 @@ int set_loop(char **device, const char *file, int offset)
83 bb_loop_info loopinfo; 83 bb_loop_info loopinfo;
84 struct stat statbuf; 84 struct stat statbuf;
85 int i, dfd, ffd, mode, rc=-1; 85 int i, dfd, ffd, mode, rc=-1;
86 86
87 /* Open the file. Barf if this doesn't work. */ 87 /* Open the file. Barf if this doesn't work. */
88 if((ffd = open(file, mode=O_RDWR))<0 && (ffd = open(file,mode=O_RDONLY))<0) 88 if((ffd = open(file, mode=O_RDWR))<0 && (ffd = open(file,mode=O_RDONLY))<0)
89 return -errno; 89 return -errno;