Package: fai-client
Version: 3.2.8
Severity: grave
Tags: patch
Justification: renders package unusable

Hello,

Almost a repeat of bug report 416616 where the output from file has changed.
But in this case it is for Perl scripts which have -w on the shebang line.

The output used to be:

/tmp/foo.pl: perl script text executable

Now it is:

/tmp/foo.pl: a /usr/bin/perl -w script text executable

So now fai-do-scripts will refuse to run any Perl scripts with -w.

The attached patch to fai-do-scripts resolves this issue.

Cheers!

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.6-dirk (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
--- /usr/bin/fai-do-scripts.orig        2008-07-09 23:01:54.000000000 +1200
+++ /usr/bin/fai-do-scripts     2008-07-10 09:39:18.000000000 +1200
@@ -133,7 +133,7 @@
            fc_check_status $file $? | tee -a $LOGDIR/cfengine.log
        ;;
 
-       *"perl script"*)
+       *"perl "*" script"*)
            echo "Executing    perl: $file"
            echo "=====   perl: $file   =====" >> $LOGDIR/perl.log 2>&1
            ./$file >> $LOGDIR/perl.log 2>&1

Reply via email to