chiark / gitweb /
basic: don't append suffixes to unit name glob expressions
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2016 19:25:10 +0000 (20:25 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
commit935ee8fca4987ead1c3afd657e8da4acbb0a45ce
tree6306c99755a70a8f358e02d4ecbe9ce94d1fbb4b
parent69db37b5fbcf6d4d26839860d5e067a45f3f7023
basic: don't append suffixes to unit name glob expressions

When the user specifies "foo*" as unit name glob expression, we shouldn't turn this into "foo*.service". Hence: only
append a suffix if the specified string isn't a glob expression.

Fixes: #2397
src/basic/unit-name.c