From: florian Date: Thu, 18 Mar 2010 23:35:12 +0000 (+0000) Subject: [tools] fix file creation mode, thanks rtz X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/f87759a667c77a1afbe1393d2de60666c0337e37?ds=sidebyside [tools] fix file creation mode, thanks rtz git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20293 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c index 63bd51835..560a58df5 100644 --- a/tools/firmware-utils/src/airlink.c +++ b/tools/firmware-utils/src/airlink.c @@ -110,7 +110,7 @@ int generate_image(char *kname, char *fsname, char *fname, int EHDR) uchar *bk, *bs; int fkd, ffd, fsd; fkd = open(kname, O_RDONLY); - ffd = creat(fname, 0x644); + ffd = creat(fname, 0644); if ((fkd < 0) || (ffd < 0)) return -1; if (fsname) {