Skip to content

Commit 5c6eab5

Browse files
happyCoder92copybara-github
authored andcommitted
Fix wrong StatusOr access in HandleUnotify
If ENOENT on read from the unotify fd is raised the function did not return early as intended. PiperOrigin-RevId: 897140378 Change-Id: If00383a2b2aae8c1e82f7127a98ce9ed850f41a9
1 parent 916fbc3 commit 5c6eab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sandboxed_api/sandbox2/monitor_unotify.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ void UnotifyMonitor::HandleUnotify() {
202202
VLOG(1) << "Unotify recv failed with ENOENT";
203203
} else {
204204
SetExitStatusCode(Result::INTERNAL_ERROR, Result::FAILED_NOTIFY);
205-
return;
206205
}
206+
return;
207207
}
208208
Syscall syscall(req_data->pid, req_data->data);
209209
if (wait_for_execveat() && syscall.nr() == __NR_execveat &&

0 commit comments

Comments
 (0)