storage: Use L_TFR instead of TFR

This commit is contained in:
Denis Kenzior 2019-05-28 14:06:22 -05:00
parent 57748347b0
commit d74fcfd25c
1 changed files with 3 additions and 3 deletions

View File

@ -133,12 +133,12 @@ ssize_t write_file(const void *buffer, size_t len,
if (create_dirs(path) != 0)
goto error_create_dirs;
fd = TFR(mkostemps(tmp_path, 4, O_CLOEXEC));
fd = L_TFR(mkostemps(tmp_path, 4, O_CLOEXEC));
if (fd == -1)
goto error_mkostemps;
r = TFR(write(fd, buffer, len));
TFR(close(fd));
r = L_TFR(write(fd, buffer, len));
L_TFR(close(fd));
if (r != (ssize_t) len) {
r = -1;