diff options
-rw-r--r-- | lib/libfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfile.c b/lib/libfile.c index d22519b8f4..83c6399a5b 100644 --- a/lib/libfile.c +++ b/lib/libfile.c @@ -501,7 +501,7 @@ int open_and_lseek(const char *filename, int mode, loff_t pos) { int fd, ret; - fd = open(filename, mode | O_RDONLY); + fd = open(filename, mode); if (fd < 0) { perror("open"); return fd; |