diff options
author | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2010-08-03 16:50:50 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-05 11:59:22 -0500 |
commit | ed8ef7a1e82d757356c30cf238027c571bbeeb1a (patch) | |
tree | 2ad10d985b1a3d7ed772863e1b7e8673bc45912e /doc/coding-style.txt | |
parent | c8219725f7c30ed4206cf8e6ab241c1e4d947b3f (diff) | |
download | ofono-ed8ef7a1e82d757356c30cf238027c571bbeeb1a.tar.bz2 |
storage: make write_file transaction-safe
write_file(), as written wasn't transaction-safe; a crash bewtween a
file being open and the buffer being written before a safe close would
leave the file with a set of undetermined contents.
Modified to the file is written to a temporary file name; once
completed, it is renamed to the final name. This way, a crash in the
middle doesn't leave half-baked files.
Diffstat (limited to 'doc/coding-style.txt')
0 files changed, 0 insertions, 0 deletions