diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-03 08:58:40 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-03 08:58:40 -0400 |
commit | 754fc0c720eb998b8e47e695c12807ced0ff3602 (patch) | |
tree | dc605107eca42b3f92594a41f48460470b52f600 /src/shared | |
parent | a62e83b48cda6a709a796a361abaf6b129650b3c (diff) |
fileio-label: return error when writing fails
The status of actually writing the file was totally ignored.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/fileio-label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/fileio-label.c b/src/shared/fileio-label.c index c3def3c568..d5ce24c0d9 100644 --- a/src/shared/fileio-label.c +++ b/src/shared/fileio-label.c @@ -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(); |