diff options
author | Daniel Mack <github@zonque.org> | 2015-09-30 15:55:26 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-30 15:55:26 +0200 |
commit | 1115d417067190d5144586e0147b5ca7a917227c (patch) | |
tree | fb101d9c4a7c3b041db537a9aacba40fd469132a /src/shared/dropin.c | |
parent | 6b68a4442e2b9343d10476810c6662b496dd250d (diff) | |
parent | 2ca2a91cf1deba83825692f1ce06116d2aed2379 (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.c | 5 |
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 (;;) { |