1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 18:23:09 +02:00

[tools] fix file creation mode, thanks rtz

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20293 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-03-18 23:35:12 +00:00
parent ffb6292494
commit f87759a667

View File

@ -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) {