aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-03-07 16:11:32 -0800
committerDmitry Shmidt <dimitrysh@google.com>2011-03-07 16:11:32 -0800
commit5f27b7c5380b99bfeee77205dd68538e9cc400aa (patch)
treeb098b7170109bd903691e01e56d2c377141e2ca9
parent4d13ed6d3f252ef7a3ae2fd18000fb765b5c2fa1 (diff)
downloadwpa_supplicant_6-5f27b7c5380b99bfeee77205dd68538e9cc400aa.tar.gz
Remove forcing of RW to wpa_supplicant.conf
Change-Id: Ib34bfd132e3d26eb211231ee429ce546aee09e37 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r--wpa_supplicant/config_file.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c
index 6074c00..4c1a407 100644
--- a/wpa_supplicant/config_file.c
+++ b/wpa_supplicant/config_file.c
@@ -24,8 +24,6 @@
#include "uuid.h"
#include "eap_peer/eap_methods.h"
-#include <sys/stat.h>
-
/**
* wpa_config_get_line - Read the next configuration file line
@@ -522,11 +520,6 @@ struct wpa_config * wpa_config_read(const char *name)
return NULL;
}
- /* When creating the config file, give group read/write access
- * to allow backup and restoring the file.
- */
- chmod(name, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
-
while (wpa_config_get_line(buf, sizeof(buf), f, &line, &pos)) {
if (os_strcmp(pos, "network={") == 0) {
ssid = wpa_config_read_network(f, &line, id++);