Fix missing argument in call to open() in namespace test

Calling `open()` with `O_CREAT` requires 3 arguments.

PiperOrigin-RevId: 346739861
Change-Id: I38167e9184f4755e48307eaa674277069bd4ccf8
This commit is contained in:
Christian Blichmann 2020-12-10 02:18:47 -08:00 committed by Copybara-Service
parent c7d8e83d60
commit 2869e3f598

View File

@ -79,7 +79,7 @@ int main(int argc, char* argv[]) {
case 4:
for (int i = 2; i < argc; ++i) {
if (open(argv[i], O_CREAT | O_WRONLY) == -1) {
if (open(argv[i], O_CREAT | O_WRONLY, 0644) == -1) {
return i - 1;
}
}