diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-13 07:11:24 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-06-13 07:11:24 +0000 |
commit | b543a9844677910a79a8333dbbecd78d4e39d7b5 (patch) | |
tree | b5f40d0775af246bd48df9d30c218560e7b9f193 | |
parent | 14b418103501f5106632a7af95b067aee7c7b026 (diff) | |
parent | 706ca6ce2d939c02b4813947a397bf7a290f96ab (diff) | |
download | android_frameworks_opt_net_wifi-b543a9844677910a79a8333dbbecd78d4e39d7b5.tar.gz android_frameworks_opt_net_wifi-b543a9844677910a79a8333dbbecd78d4e39d7b5.tar.bz2 android_frameworks_opt_net_wifi-b543a9844677910a79a8333dbbecd78d4e39d7b5.zip |
release-request-7d12f16b-b4a7-4324-8b59-be2d4e07dcb3-for-git_oc-release-4094438 snap-temp-L80000000073561277
Change-Id: Id90263e3d0d66b4ed6dbd9def1b7c25096793c60
-rw-r--r-- | libwifi_system/hostapd_manager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libwifi_system/hostapd_manager.cpp b/libwifi_system/hostapd_manager.cpp index 13bacae22..68184e901 100644 --- a/libwifi_system/hostapd_manager.cpp +++ b/libwifi_system/hostapd_manager.cpp @@ -109,6 +109,14 @@ bool HostapdManager::WriteHostapdConfig(const string& config) { int error = errno; LOG(ERROR) << "Cannot write hostapd config to \"" << kHostapdConfigFilePath << "\": " << strerror(error); + struct stat st; + int result = stat(kHostapdConfigFilePath, &st); + if (result == 0) { + LOG(ERROR) << "hostapd config file uid: "<< st.st_uid << ", gid: " << st.st_gid + << ", mode: " << st.st_mode; + } else { + LOG(ERROR) << "Error calling stat() on hostapd config file: " << strerror(errno); + } return false; } return true; |