fix params permissions for offroad (#2356)

* fix params permissions

* don't need that one
pull/2197/head
Adeeb Shihadeh 5 years ago committed by GitHub
parent 339d1967cb
commit 20a6ca83c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      selfdrive/common/params.cc

@ -167,6 +167,12 @@ int Params::write_db_value(const char* key, const char* value, size_t value_size
if (result < 0) {
goto cleanup;
}
} else {
// Ensure permissions are correct in case we didn't create the symlink
result = chmod(path.c_str(), 0777);
if (result < 0) {
goto cleanup;
}
}
// Write value to temp.

Loading…
Cancel
Save