diff --git a/selfdrive/common/params.cc b/selfdrive/common/params.cc index 81e1e5c028..03574cf033 100644 --- a/selfdrive/common/params.cc +++ b/selfdrive/common/params.cc @@ -261,7 +261,7 @@ int Params::put(const char* key, const char* value, size_t value_size) { } while (false); close(tmp_fd); - remove(tmp_path.c_str()); + ::unlink(tmp_path.c_str()); return result; }