chiark / gitweb /
unit-name: fix detection of unit templates/instances
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Jun 2014 15:01:26 +0000 (17:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Jun 2014 23:24:03 +0000 (01:24 +0200)
commit6ef9eeed61a291cc42b7d911f5cf5a4deca742a3
treed80f32968fc7ea4477442e73b45d245fcc51edc3
parente94b5a7bc201fe73c4a291169c5c1d21cceee128
unit-name: fix detection of unit templates/instances

We need to check for the last dot, not the first one in a unit name, for
the suffix. Correct that.
src/shared/unit-name.c