commit:     08af5d112cc3044e4068dddef1b40d8ba26c7ae8
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 12 19:06:29 2020 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Wed Feb 12 19:06:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08af5d11

net-nds/openldap: fix MissingSlash

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 net-nds/openldap/openldap-2.4.49.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-nds/openldap/openldap-2.4.49.ebuild 
b/net-nds/openldap/openldap-2.4.49.ebuild
index d7df0d817e0..6b4c5ba2ad9 100644
--- a/net-nds/openldap/openldap-2.4.49.ebuild
+++ b/net-nds/openldap/openldap-2.4.49.ebuild
@@ -866,7 +866,7 @@ pkg_postinst() {
                # and a misconfiguration if multiple machines use the same key 
and cert.
                if use ssl; then
                        install_cert /etc/openldap/ssl/ldap
-                       use prefix || chown ldap:ldap 
"${EROOT}"etc/openldap/ssl/ldap.*
+                       use prefix || chown ldap:ldap 
"${EROOT}"/etc/openldap/ssl/ldap.*
                        ewarn "Self-signed SSL certificates are treated harshly 
by OpenLDAP 2.[12]"
                        ewarn "Self-signed SSL certificates are treated harshly 
by OpenLDAP 2.[12]"
                        ewarn "add 'TLS_REQCERT allow' if you want to use them."
@@ -881,11 +881,11 @@ pkg_postinst() {
                fi
 
                # These lines force the permissions of various content to be 
correct
-               use prefix || chown ldap:ldap "${EROOT}"var/run/openldap
+               use prefix || chown ldap:ldap "${EROOT}"/var/run/openldap
                chmod 0755 "${EROOT}"var/run/openldap
-               use prefix || chown root:ldap 
"${EROOT}"etc/openldap/slapd.conf{,.default}
+               use prefix || chown root:ldap 
"${EROOT}"/etc/openldap/slapd.conf{,.default}
                chmod 0640 "${EROOT}"etc/openldap/slapd.conf{,.default}
-               use prefix || chown ldap:ldap "${EROOT}"var/lib/openldap-data
+               use prefix || chown ldap:ldap "${EROOT}"/var/lib/openldap-data
        fi
 
        if has_version 'net-nds/openldap[-minimal]' && 
((${OPENLDAP_PRINT_MESSAGES})); then

Reply via email to