summaryrefslogtreecommitdiff
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-14 13:52:17 +0100
committerGitHub <noreply@github.com>2018-02-14 13:52:17 +0100
commit04a5236233366a6f4e53baa54495530b9cc2b9bf (patch)
tree29aa8103569a3f41a38d15628f777214dab201cf /src/tmpfiles/tmpfiles.c
parentf37a53b6ae403a03440a5812e8d7de2cff4b25d7 (diff)
parentec316d199a13d8db3f6550d60e369893de2fb417 (diff)
downloadsystemd-04a5236233366a6f4e53baa54495530b9cc2b9bf.tar.gz
Merge pull request #8144 from poettering/journal-inotify-fixes
various journal fixes
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 4b357465a2..98368c36f1 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -383,9 +383,11 @@ static void load_unix_sockets(void) {
/* We maintain a cache of the sockets we found in /proc/net/unix to speed things up a little. */
- unix_sockets = set_new(&string_hash_ops);
- if (!unix_sockets)
+ unix_sockets = set_new(&path_hash_ops);
+ if (!unix_sockets) {
+ log_oom();
return;
+ }
f = fopen("/proc/net/unix", "re");
if (!f) {