summaryrefslogtreecommitdiffstats
path: root/system_part.c
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-09-27 01:02:32 +0300
committerGalin Simeonov <gts@volconst.com>2021-09-27 01:02:32 +0300
commit8f9c2f76af222b5d3374fb575d953f1bc80f9ff8 (patch)
treee93b822c0650428afb407b49f0ea1ac49dca4ba9 /system_part.c
parent35a3d5be72654d744563c8d4ca5d1014563fc1d9 (diff)
downloadvolgit-8f9c2f76af222b5d3374fb575d953f1bc80f9ff8.tar.gz
should not create header or footer file when reading them
Diffstat (limited to 'system_part.c')
-rw-r--r--system_part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system_part.c b/system_part.c
index 1865184..f8d91db 100644
--- a/system_part.c
+++ b/system_part.c
@@ -42,7 +42,7 @@ char* read_file(const char *filename)
char *ret;
struct stat file_stats;
- file=open(filename,O_RDONLY|O_CREAT);
+ file=open(filename,O_RDONLY);
if(file==-1)
die("Could not open file %s\n",filename);