[oe-commits] Roy Li : vsftpd: use quotes to wrap variable

git at git.openembedded.org git at git.openembedded.org
Fri Oct 18 18:55:41 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: bcaa7aabf8088aadfdbda4da4a3f1c30af8dd9d6
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=bcaa7aabf8088aadfdbda4da4a3f1c30af8dd9d6

Author: Roy Li <rongqing.li at windriver.com>
Date:   Thu Oct 10 16:34:44 2013 +0800

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 <qiang.chen at windriver.com>
Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Joe MacDonald <joe at deserted.net>

---

 .../recipes-daemons/vsftpd/vsftpd_3.0.0.bb         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 49d5d2a..d6bee9b 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



More information about the Openembedded-commits mailing list