commit | ce9cc65165351770d64b3bf3d929a99e02b177cc | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Feb 17 10:16:04 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Tue Feb 17 10:25:23 2015 -0800 |
tree | f2acee23a529ca45233f719b1665ba01bcc85b55 | |
parent | 439c730cd043a3d08ac30c3eb67c4f8b2a50404c [diff] |
Fix the WriteStringToFile overload that takes mode/owner/group. The actual bug is == instead of !=, but the real cause was me trying to be too clever. This patch switches to much simpler code, and -- since the intended use of this code is security anyway -- adds logging if anything goes wrong. Bug: 19361774 Change-Id: If2af07d31a5002f9010b838247b691f6b28bdfb1