Params::put: fixed the wrong call to Params::remove instead of global ::remove (#21974)

* fix bug

* use unlink
pull/22079/head
Dean Lee 4 years ago committed by GitHub
parent 813ddb0c18
commit 6be8520a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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;
}

Loading…
Cancel
Save