diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-14 10:24:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-14 10:24:27 +0200 |
commit | a05f97b3ac590bc313e8c9d1613d06de0bf28ae2 (patch) | |
tree | c4b980a222b8512a5dc20d462e6f9bdbcaf6113e /src/shared/unit-name.c | |
parent | e67f47e55b850c2a3a52c550726b1fd7394f9276 (diff) |
util: various additional modernizations
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)) |