From fc4e0df7b243504012e2cf60171ee9d43c44f817 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Sun, 11 May 2014 04:01:05 -0700 Subject: [PATCH] qsap: Put files in a sane location * And set their perms Change-Id: Ifc61a3504433f6b7e1602432ecea70c37785c895 --- softap/sdk/qsap_api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/softap/sdk/qsap_api.c b/softap/sdk/qsap_api.c index b2b9493..69a4519 100755 --- a/softap/sdk/qsap_api.c +++ b/softap/sdk/qsap_api.c @@ -1990,6 +1990,11 @@ s16 wifi_qsap_reset_to_default(s8 *pcfgfile, s8 *pdefault) if(eERR_UNKNOWN == rename(buf, pcfgfile)) status = eERR_CONF_FILE; + if (chown(pcfgfile, AID_WIFI, AID_WIFI) < 0) { + ALOGE("Error changing group ownership of %s to %d: %s", + pcfgfile, AID_WIFI, strerror(errno)); + } + /** Remove the temporary file. Dont care the return value */ unlink(buf);