Merge "trusty: rpmb_dev: Prevent desync between rpmb_dev and storageproxyd"

This commit is contained in:
Matthew Maurer 2020-07-10 22:27:24 +00:00 committed by Gerrit Code Review
commit 30b0838b70

View file

@ -591,7 +591,7 @@ int main(int argc, char** argv) {
return EXIT_SUCCESS;
}
open_flags = O_RDWR;
open_flags = O_RDWR | O_SYNC;
if (init) {
open_flags |= O_CREAT | O_TRUNC;
}