From bcaa7aabf8088aadfdbda4da4a3f1c30af8dd9d6 Mon Sep 17 00:00:00 2001 From: Roy Li Date: Thu, 10 Oct 2013 16:34:44 +0800 Subject: vsftpd: use quotes to wrap variable "test -z ${PAMLIB}" in do_install() may report error if ${PAMLIB} has space chars. This commit added double quotes to wrap it in case of errors. Signed-off-by: Qiang Chen Signed-off-by: Roy Li Signed-off-by: Joe MacDonald --- meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb index 49d5d2a959..d6bee9be14 100644 --- a/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb +++ b/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.0.bb @@ -64,7 +64,7 @@ do_install() { install -m 600 ${WORKDIR}/vsftpd.ftpusers ${D}${sysconfdir}/ install -m 600 ${WORKDIR}/vsftpd.user_list ${D}${sysconfdir}/ - if ! test -z ${PAMLIB} ; then + if ! test -z "${PAMLIB}" ; then install -d ${D}${sysconfdir}/pam.d/ cp ${S}/RedHat/vsftpd.pam ${D}${sysconfdir}/pam.d/vsftpd sed -i "s:/lib/security:${base_libdir}/security:" ${D}${sysconfdir}/pam.d/vsftpd -- cgit v1.2.3-54-g00ecf