patch for alsa-info.sh to quote [ -d $SYSFS ]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Found a couple of bugs in http://www.alsa-project.org/alsa-info.sh
while running it in my system.

* old uname <= 2.0.11 doesn't accept -o argument
* $SYSFS is not quoted while checking if directory exist and fails if
empty

Attached is a small patch for the first of them, but think that all
variables also should be quoted to avoid future problems.

Regards.
--- alsa-info.sh.orig	Sat Oct 25 14:16:43 2008
+++ alsa-info.sh	Sat Oct 25 14:18:44 2008
@@ -373,7 +373,7 @@
 echo "" >> $FILE
 fi
 
-if [ -d $SYSFS ]
+if [ -d "$SYSFS" ]
 then
 echo "!!Loaded sound module options" >> $FILE
 echo "!!--------------------------" >> $FILE
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux