summaryrefslogtreecommitdiff
path: root/jet.c
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-03-25 06:19:02 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-03-25 06:19:02 -0300
commitb679c68ac05a399fad6ef727ac3352a01d441e77 (patch)
tree2eba0f0a574156f0ccb1c8098fb6489eea19cd00 /jet.c
parentd94d279532c7933e3f3b785d8e72c487757c9efe (diff)
downloadjet-b679c68ac05a399fad6ef727ac3352a01d441e77.tar.gz
jet-b679c68ac05a399fad6ef727ac3352a01d441e77.zip
Fix open permissions
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);