summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-08 22:18:17 +0200
committerGitHub <noreply@github.com>2020-07-08 22:18:17 +0200
commit02b0109af5d7df805cd2f765a765e8f14f08527d (patch)
tree69f48a9c3464f3b04a30c781e7dbfc1a93089fa4 /src/core
parent62320feb9f3baefcad3ff69f21d9a6e5a767dcd2 (diff)
parent4276749dd3546dea6cc4a5967c698886829f4573 (diff)
downloadsystemd-02b0109af5d7df805cd2f765a765e8f14f08527d.tar.gz
Merge pull request #15955 from anitazha/nullorempty
core: check null_or_empty_path for masked units instead of /dev/null
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index edc96537cb..2c09def06f 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -5955,7 +5955,7 @@ const char *unit_label_path(const Unit *u) {
return NULL;
/* If a unit is masked, then don't read the SELinux label of /dev/null, as that really makes no sense */
- if (path_equal(p, "/dev/null"))
+ if (null_or_empty_path(p) > 0)
return NULL;
return p;