mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
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:
parent
c7d8e83d60
commit
2869e3f598
|
@ -79,7 +79,7 @@ int main(int argc, char* argv[]) {
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
for (int i = 2; i < argc; ++i) {
|
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;
|
return i - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user