Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc192181 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Fix problem found with host bionic fortify checks

hardware/interfaces/bluetooth/1.0/default/test/bluetooth_address_test.cc:59:39:
error: 'open' called with O_CREAT or O_TMPFILE, but missing mode

Bug: 31559095
Test: out/host/linux-x86/nativetest{,64}/bluetooth-address-unit-tests/bluetooth-address-unit-tests
Change-Id: I913c78e25eccaecf8830f1caf8e92f834ab8bb76
parent ac03dfa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ class BluetoothAddressTest : public ::testing::Test {

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);