chiark / gitweb /
use "Out of memory." consistantly (or with "\n")
[elogind.git] / src / shutdownd / shutdownd.c
index 0497cd41a05ee8ed90c6042e22da3528dde3778a..9dd13361331fefedf8bec03a7ecb867b620ee246 100644 (file)
@@ -205,7 +205,7 @@ static int update_schedule_file(struct sd_shutdown_command *c) {
 
         assert(c);
 
-        r = safe_mkdir("/run/systemd/shutdown", 0755, 0, 0);
+        r = mkdir_safe_label("/run/systemd/shutdown", 0755, 0, 0);
         if (r < 0) {
                 log_error("Failed to create shutdown subdirectory: %s", strerror(-r));
                 return r;
@@ -213,7 +213,7 @@ static int update_schedule_file(struct sd_shutdown_command *c) {
 
         t = cescape(c->wall_message);
         if (!t) {
-                log_error("Out of memory");
+                log_error("Out of memory.");
                 return -ENOMEM;
         }