commit | fbe95d5c0fccf94a4bbf8a9cf294b2eafcf70a42 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Fri Dec 01 04:37:31 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Dec 01 04:37:31 2017 +0000 |
tree | b2ded310ffed350cfd1452df36e362b6f2580d4f | |
parent | dec548b0a90fae73406ef3ba74ac85f3f941c027 [diff] | |
parent | ca253762cb48b8258203747d62493b7ba9cb0cf1 [diff] |
Fix problem found with host bionic fortify checks am: dc1921810e am: 6737d81d15 am: ca253762cb Change-Id: Ie33aa142f0af34f640397c29baf5d8076b89dc32
diff --git a/bluetooth/1.0/default/test/bluetooth_address_test.cc b/bluetooth/1.0/default/test/bluetooth_address_test.cc index e60729e..2c8dbe5 100644 --- a/bluetooth/1.0/default/test/bluetooth_address_test.cc +++ b/bluetooth/1.0/default/test/bluetooth_address_test.cc
@@ -56,7 +56,7 @@ void BluetoothAddressTest::FileWriteString(const char* path, const char* string) { - int fd = open(path, O_CREAT | O_RDWR); + int fd = open(path, O_CREAT | O_RDWR, 0600); EXPECT_TRUE(fd > 0) << "err = " << strerror(errno); size_t length = strlen(string);