From: Florian Fainelli Date: Thu, 18 Mar 2010 23:35:12 +0000 (+0000) Subject: [tools] fix file creation mode, thanks rtz X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e01d1d3c7b63ba91e9dd5d61c1d0e9241ead439;p=openwrt%2Fsvn-archive%2Farchive.git [tools] fix file creation mode, thanks rtz SVN-Revision: 20293 --- diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c index 63bd51835b..560a58df59 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) {