summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
Diffstat (limited to 'discover')
-rw-r--r--discover/file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/file.c b/discover/file.c
index 1ebfe43..0cee43b 100644
--- a/discover/file.c
+++ b/discover/file.c
@@ -115,6 +115,9 @@ int replace_file(const char *filename, char *buf, int len)
}
free(tempfile);
+
+ fchmod(fd, 0644);
+
close(fd);
return rc;
}
OpenPOWER on IntegriCloud