From 8f9c2f76af222b5d3374fb575d953f1bc80f9ff8 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Mon, 27 Sep 2021 01:02:32 +0300 Subject: should not create header or footer file when reading them --- system_part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system_part.c') 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); -- cgit v1.2.3