diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-03-25 06:19:02 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2020-03-25 06:19:02 -0300 |
commit | b679c68ac05a399fad6ef727ac3352a01d441e77 (patch) | |
tree | 2eba0f0a574156f0ccb1c8098fb6489eea19cd00 /jet.c | |
parent | d94d279532c7933e3f3b785d8e72c487757c9efe (diff) | |
download | jet-b679c68ac05a399fad6ef727ac3352a01d441e77.tar.gz jet-b679c68ac05a399fad6ef727ac3352a01d441e77.zip |
Fix open permissions
Diffstat (limited to 'jet.c')
-rw-r--r-- | jet.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |