OSDN Git Service

system_properties: do more checking of file
authorNick Kralevich <nnk@google.com>
Fri, 25 Jan 2013 21:07:31 +0000 (13:07 -0800)
committerNick Kralevich <nnk@google.com>
Fri, 25 Jan 2013 21:07:31 +0000 (13:07 -0800)
commitc16961b8c3b932716b2e576c5877d39411b453cc
tree06678c237ade4a15cfdf977235212dc6582ab50d
parent82ef8296dc5e25b9cc8e7231f9515f50185dac9d
system_properties: do more checking of file

Check that the permissions on the properties file
are exactly as we expect them to be.

Make sure we close the fd if fstat fails.

Refactor the code slightly.

Change-Id: I5503fd58c3b8093ce7e6d05920748ed70eaf8e2c
libc/bionic/system_properties.c