[Pkg-acpi-devel] Bug#608117: missing quoting in /etc/init.d/acpi-support

Ferenc Wagner wferi at niif.hu
Mon Dec 27 13:56:18 UTC 2010


Package: acpi-support
Version: 0.138-3
Severity: normal

Hi,

/etc/init.d/acpi-support contains this code block:

    for SCRIPT in /etc/acpi/start.d/*.sh; do
	if [ -f "$SCRIPT" ] ; then
  	  . $SCRIPT
  	fi
    done

The command '. $SCRIPT' above should be '. "$SCRIPT"' in my opinion
to avoid strange behaviour if the administrator puts a file with a
space in its name in /etc/acpi/start.d in a bad moment of his/hers.

Regards,
Feri.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.36-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-acpi-devel mailing list