summaryrefslogtreecommitdiff
path: root/src/shared/dropin.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-09-30 15:55:26 +0200
committerDaniel Mack <github@zonque.org>2015-09-30 15:55:26 +0200
commit1115d417067190d5144586e0147b5ca7a917227c (patch)
treefb101d9c4a7c3b041db537a9aacba40fd469132a /src/shared/dropin.c
parent6b68a4442e2b9343d10476810c6662b496dd250d (diff)
parent2ca2a91cf1deba83825692f1ce06116d2aed2379 (diff)
Merge pull request #1417 from poettering/nspawn-and-more
Various fixes, primarily for nspawn, but other stuff too
Diffstat (limited to 'src/shared/dropin.c')
-rw-r--r--src/shared/dropin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shared/dropin.c b/src/shared/dropin.c
index 963d05d32e..1845068adb 100644
--- a/src/shared/dropin.c
+++ b/src/shared/dropin.c
@@ -78,7 +78,7 @@ int write_drop_in(const char *dir, const char *unit, unsigned level,
if (r < 0)
return r;
- mkdir_p(p, 0755);
+ (void) mkdir_p(p, 0755);
return write_string_file_atomic_label(q, data);
}
@@ -132,8 +132,7 @@ static int iterate_dir(
if (errno == ENOENT)
return 0;
- log_error_errno(errno, "Failed to open directory %s: %m", path);
- return -errno;
+ return log_error_errno(errno, "Failed to open directory %s: %m", path);
}
for (;;) {