From 6be8520a84f7d43d1df5bc529a75be40be5f805b Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 31 Aug 2021 07:31:27 +0800 Subject: [PATCH] Params::put: fixed the wrong call to Params::remove instead of global ::remove (#21974) * fix bug * use unlink --- selfdrive/common/params.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }