diff options
Diffstat (limited to 'src/shared/unit-name.c')
-rw-r--r-- | src/shared/unit-name.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/unit-name.c b/src/shared/unit-name.c index d6391228f2..cfe3133b5a 100644 --- a/src/shared/unit-name.c +++ b/src/shared/unit-name.c @@ -477,8 +477,7 @@ char *unit_name_mangle(const char *name) { /* Try to turn a string that might not be a unit name into a * sensible unit name. */ - if (path_startswith(name, "/dev/") || - path_startswith(name, "/sys/")) + if (is_device_path(name)) return unit_name_from_path(name, ".device"); if (path_is_absolute(name)) |