summaryrefslogtreecommitdiff
path: root/src/basic/util.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-04-14 10:14:41 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2016-04-14 10:14:41 +0200
commit8fae819099a189f03213ee657f44545c1b035f7e (patch)
treea398d2aea2046ae90f149288f9df9befc8d7e4fb /src/basic/util.c
parent43bbb8f005177bcad135ec894419361f0f420034 (diff)
parent78df0edc1b594017b1d3493eb2033d8a92d9d43f (diff)
Merge pull request #3033 from keszybz/code-cleanups
Code cleanups
Diffstat (limited to 'src/basic/util.c')
-rw-r--r--src/basic/util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/basic/util.c b/src/basic/util.c
index 957b0e1ff1..b70c50047f 100644
--- a/src/basic/util.c
+++ b/src/basic/util.c
@@ -792,10 +792,11 @@ int update_reboot_parameter_and_warn(const char *param) {
return 0;
}
- RUN_WITH_UMASK(0022)
+ RUN_WITH_UMASK(0022) {
r = write_string_file("/run/systemd/reboot-param", param, WRITE_STRING_FILE_CREATE);
- if (r < 0)
- return log_warning_errno(r, "Failed to write reboot parameter file: %m");
+ if (r < 0)
+ return log_warning_errno(r, "Failed to write reboot parameter file: %m");
+ }
return 0;
}