mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-19 06:54:58 +01:00
fix file creation mode, thanks rtz
SVN-Revision: 20293
This commit is contained in:
parent
029b3f62ab
commit
66dc3ee0c9
@ -110,7 +110,7 @@ int generate_image(char *kname, char *fsname, char *fname, int EHDR)
|
|||||||
uchar *bk, *bs;
|
uchar *bk, *bs;
|
||||||
int fkd, ffd, fsd;
|
int fkd, ffd, fsd;
|
||||||
fkd = open(kname, O_RDONLY);
|
fkd = open(kname, O_RDONLY);
|
||||||
ffd = creat(fname, 0x644);
|
ffd = creat(fname, 0644);
|
||||||
if ((fkd < 0) || (ffd < 0))
|
if ((fkd < 0) || (ffd < 0))
|
||||||
return -1;
|
return -1;
|
||||||
if (fsname) {
|
if (fsname) {
|
||||||
|
Loading…
Reference in New Issue
Block a user