From b679c68ac05a399fad6ef727ac3352a01d441e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Wed, 25 Mar 2020 06:19:02 -0300 Subject: Fix open permissions --- jet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jet.c') 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); -- cgit v1.2.3