commit | 0a217de1802bc5cf785524c1913af7ae3faa9c54 | [log] [tgz] |
---|---|---|
author | Vinit Deshpande <vinitd@google.com> | Thu Feb 05 12:48:02 2015 -0800 |
committer | Vinit Deshpande <vinitd@google.com> | Thu Feb 05 15:46:52 2015 -0800 |
tree | d7cce0e205aac49544dabfe4ac6b7393f1ecfaf1 | |
parent | adaa28a85b3a1e28d36875bdf9113fea8eeb0248 [diff] |
Don't write to wpa_supplicant.conf directly There is a chance that wpa_supplicant may get killed during the time it is writing config file. If this happens, user information like SSIDs and passwords can be lost forever. This change works around that by writing config to a temporary file and then renaming the file to the correct name. Bug: 19224089 Change-Id: I1709cdd5e5c6dfa3073e42c644fae941b43401cc Signed-off-by: Vinit Deshpande <vinitd@google.com>