aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-03-18 23:35:12 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-03-18 23:35:12 +0000
commit878447cc75eb514a3b2ee42f5992f905fb88b350 (patch)
tree1ffaa14110d10beec5da06548dda7043023fd995 /tools
parenteb5d7e74b5b6d282ecf363b902e1d7dc167b9514 (diff)
downloadupstream-878447cc75eb514a3b2ee42f5992f905fb88b350.tar.gz
upstream-878447cc75eb514a3b2ee42f5992f905fb88b350.tar.bz2
upstream-878447cc75eb514a3b2ee42f5992f905fb88b350.zip
[tools] fix file creation mode, thanks rtz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20293 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/airlink.c2
1 files changed, 1 insertions, 1 deletions
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) {