X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Ffile.c;h=0cee43b897cd59e9f50f0b20d528c470cf6dd642;hp=1ebfe43b10ba02029dbedac3b8fcf0c3a088d7de;hb=b16b116422f1fb817924f4d2c3d9b1354da35614;hpb=6557f07325409d769f414035cca05a563418e729 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; }