[Pkg-alsa-devel] Bug#254622: XSIisms in /etc/init.d/alsa; 10.4
Clint Adams
Clint Adams <schizo@debian.org>, 254622@bugs.debian.org
Tue, 15 Jun 2004 18:35:16 -0400
Package: alsa-base
Version: 1.0.5a-1
The use of -a as a binary operator to [ violates Policy 10.4.
This fixes it.
--- /etc/init.d/alsa 2004-05-02 06:49:37.000000000 -0400
+++ /tmp/alsa 2004-06-15 18:33:18.000000000 -0400
@@ -4,7 +4,8 @@
PATH=/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
-if [ "$(id -u)" != "0" -a "$1" != "--help" -a "$1" != "help" -a ! -z "$1" ]; then
+if [ "$(id -u)" != "0" ] && [ "$1" != "--help" ] &&
+ [ "$1" != "help" ] && [ ! -z "$1" ]; then
echo "$0: To $1 ALSA, you must be root."
exit 1
fi