]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-unit-name.c
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)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Jan 2016 01:21:28 +0000 (02:21 +0100)
commit2aaafcf57048983b2b76d6325f333e50aca4a3a3
treeadd7bf54847be43c14becda04104e1c08b32476c
parent1f00ededc7451933e23a95597804897b37fa88d6
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
src/test/test-unit-name.c