From 33ba1ee9079650d5e4f160bbb2f1caaf44e07467 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 13 Jan 2014 14:28:01 -0800 Subject: [PATCH] Fix the sec=krb5* handling in debian/nfs-common.init to properly match all cases. Closes: #715478. --- debian/changelog | 7 +++++++ debian/nfs-common.init | 16 ++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index be2c409..d43aa04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +nfs-utils (1:1.2.8-6) UNRELEASED; urgency=medium + + * Fix the sec=krb5* handling in debian/nfs-common.init to properly match + all cases. Closes: #715478. + + -- Steve Langasek Mon, 13 Jan 2014 22:19:43 +0000 + nfs-utils (1:1.2.8-5) unstable; urgency=medium [ Ben Hutchings ] diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 39f63f2..8137232 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -47,12 +47,16 @@ if [ -f /etc/fstab ]; then continue ;; esac - case "$OPTS" in - - sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5i,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*) - AUTO_NEED_GSSD=yes - ;; - esac + OLDIFS="$IFS" + IFS="," + for OPT in $OPTS; do + case "$OPT" in + sec=krb5|sec=krb5i|sec=krb5p) + AUTO_NEED_GSSD=yes + ;; + esac + done + IFS="$OLDIFS" done exec 0<&9 9<&- -- 2.39.5