Package: make-fai-nfsroot
Version: 4.0.3 (or git)
Severity: normal

Dear Maintainer,

make-fai-nfsroot tries to run all files in $NFSROOT_HOOKS no matter if it is
directories or special files. At least a basic check should be done.

Diff against current git.

diff --git a/bin/fai-make-nfsroot b/bin/fai-make-nfsroot
index 6cab090..7a38681 100755
--- a/bin/fai-make-nfsroot
+++ b/bin/fai-make-nfsroot
@@ -516,7 +516,9 @@ run_hooks() {
 
     echo "Running hooks..."
     for file in $(cd $NFSROOT_HOOKS ;ls 2>/dev/null | egrep 
'^[[:alnum:]_.-]+$'); do
-        . $NFSROOT_HOOKS/$file
+       if [ -f $NFSROOT_HOOKS/$file ]; then
+           . $NFSROOT_HOOKS/$file
+       fi
     done
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - -


-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise-proposed'), (500, 'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-30-generic (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to