fileio-label: return error when writing fails
The status of actually writing the file was totally ignored.
This commit is contained in:
parent
a62e83b48c
commit
754fc0c720
|
@ -34,7 +34,7 @@ int write_string_file_atomic_label(const char *fn, const char *line) {
|
|||
if (r < 0)
|
||||
return r;
|
||||
|
||||
write_string_file_atomic(fn, line);
|
||||
r = write_string_file_atomic(fn, line);
|
||||
|
||||
label_context_clear();
|
||||
|
||||
|
@ -48,7 +48,7 @@ int write_env_file_label(const char *fname, char **l) {
|
|||
if (r < 0)
|
||||
return r;
|
||||
|
||||
write_env_file(fname, l);
|
||||
r = write_env_file(fname, l);
|
||||
|
||||
label_context_clear();
|
||||
|
||||
|
|
Loading…
Reference in a new issue