summaryrefslogtreecommitdiff
path: root/src/update-done
diff options
context:
space:
mode:
Diffstat (limited to 'src/update-done')
-rw-r--r--src/update-done/update-done.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update-done/update-done.c b/src/update-done/update-done.c
index e9d589e0e5..92c348d83b 100644
--- a/src/update-done/update-done.c
+++ b/src/update-done/update-done.c
@@ -31,8 +31,8 @@ static int apply_timestamp(const char *path, struct timespec *ts) {
r = write_string_file_atomic_label_ts(path, message, ts);
if (r == -EROFS)
- return log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
- if (r < 0)
+ log_debug_errno(r, "Cannot create \"%s\", file system is read-only.", path);
+ else if (r < 0)
return log_error_errno(r, "Failed to write \"%s\": %m", path);
return 0;
}