diff options
author | pjd <pjd@FreeBSD.org> | 2012-01-03 22:52:29 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-01-03 22:52:29 +0000 |
commit | ff034f8b0d93244190c967c27a0d36173b1bd9b1 (patch) | |
tree | 5c8e0ab07a4ea3f65abdd4224eea6875978dc86a /tools | |
parent | b4621042065526a5c126cd9cc5f95ab475ae69c4 (diff) | |
download | FreeBSD-src-ff034f8b0d93244190c967c27a0d36173b1bd9b1.zip FreeBSD-src-ff034f8b0d93244190c967c27a0d36173b1bd9b1.tar.gz |
Fix an obvious typo. We do want to specify file permission when we pass O_CREAT.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/net80211/wesside/wesside/wesside.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/net80211/wesside/wesside/wesside.c b/tools/tools/net80211/wesside/wesside/wesside.c index 6b276db..76f539e 100644 --- a/tools/tools/net80211/wesside/wesside/wesside.c +++ b/tools/tools/net80211/wesside/wesside/wesside.c @@ -2091,7 +2091,7 @@ void save_key(unsigned char *key, int len) strcat(k, ":"); } - fd = open(KEY_FILE, O_WRONLY | O_CREAT | 0644); + fd = open(KEY_FILE, O_WRONLY | O_CREAT, 0644); if (fd == -1) err(1, "open()"); |