mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Fix problem found with host bionic fortify checks am: dc1921810e
am: 6737d81d15
Change-Id: I5af566812c809a7cd6d58c7645d2fbe8b37fbad0
This commit is contained in:
@@ -56,7 +56,7 @@ class BluetoothAddressTest : public ::testing::Test {
|
|||||||
|
|
||||||
void BluetoothAddressTest::FileWriteString(const char* path,
|
void BluetoothAddressTest::FileWriteString(const char* path,
|
||||||
const char* string) {
|
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);
|
EXPECT_TRUE(fd > 0) << "err = " << strerror(errno);
|
||||||
|
|
||||||
size_t length = strlen(string);
|
size_t length = strlen(string);
|
||||||
|
|||||||
Reference in New Issue
Block a user