diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-01-05 23:20:02 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-01-05 23:20:02 +0000 |
commit | f66a70e0dab3c89990ccd340a91c61d5ce44d93e (patch) | |
tree | 647c53e9c36da0ab6c0ec6f7e26435e3bd76f7b0 /eclass/systemd.eclass | |
parent | Version bump (diff) | |
download | historical-f66a70e0dab3c89990ccd340a91c61d5ce44d93e.tar.gz historical-f66a70e0dab3c89990ccd340a91c61d5ce44d93e.tar.bz2 historical-f66a70e0dab3c89990ccd340a91c61d5ce44d93e.zip |
Fix use of dosym with directory destination.
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r-- | eclass/systemd.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 4d8e3e1e8563..6b94a558c2d0 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.9 2011/09/17 13:48:21 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.10 2012/01/05 23:20:02 mgorny Exp $ # @ECLASS: systemd.eclass # @MAINTAINER: @@ -105,9 +105,10 @@ systemd_enable_service() { local target=${1} local service=${2} local ud=$(_systemd_get_unitdir) + local destname=$(basename "${service}") dodir "${ud}"/"${target}".wants && \ - dosym ../"${service}" "${ud}"/"${target}".wants + dosym ../"${service}" "${ud}"/"${target}".wants/"${destname}" } # @FUNCTION: systemd_with_unitdir |