summaryrefslogtreecommitdiff
path: root/jet.c
diff options
context:
space:
mode:
Diffstat (limited to 'jet.c')
-rw-r--r--jet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jet.c b/jet.c
index 4000b32..7d0ef0a 100644
--- a/jet.c
+++ b/jet.c
@@ -7,7 +7,7 @@
int main(int argc, char *argv[]) {
char *buffer = 0;
if (argc > 1) {
- int file_descriptor = open(argv[1], O_RDWR);
+ int file_descriptor = open(argv[1], O_RDONLY);
struct stat file_stat;
stat(argv[1], &file_stat);