summaryrefslogtreecommitdiff
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
commit66dc3ee0c9a8eae18cd7baf13add8fe73ea217d6 (patch)
tree1f1d070549c51d8560afea1110179554c60f4c83
parent029b3f62abdb91be88277f6f1bbfd6ae48cb6491 (diff)
downloadmtk-20170518-66dc3ee0c9a8eae18cd7baf13add8fe73ea217d6.zip
mtk-20170518-66dc3ee0c9a8eae18cd7baf13add8fe73ea217d6.tar.gz
mtk-20170518-66dc3ee0c9a8eae18cd7baf13add8fe73ea217d6.tar.bz2
fix file creation mode, thanks rtz
SVN-Revision: 20293
-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 63bd518..560a58d 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) {