qsap: Put files in a sane location
* And set their perms Change-Id: Ifc61a3504433f6b7e1602432ecea70c37785c895
This commit is contained in:
committed by
Steve Kondik
parent
31e1ef0ca4
commit
fc4e0df7b2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user