chiark / gitweb /
systemctl: mangle names when avoiding dbus
authorVáclav Pavlín <vpavlin@redhat.com>
Fri, 17 May 2013 14:03:36 +0000 (16:03 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 May 2013 04:29:10 +0000 (00:29 -0400)
commit3a05c0f96c88984b47ca2f77bbf67dd5048a47d8
tree036e0a60cb85f82c879193ff17cb158274fc7207
parent546158bc6f46f8004cc11e81d19d223e0da56730
systemctl: mangle names when avoiding dbus

Unit names were mangled in function enable_unit only when dbus was
used. This patch adds mangling also when the dbus is not in use.

This makes it possible to say e.g.:
   systemctl --root=/path enable cups
without spelling cups.service out in full.
src/systemctl/systemctl.c