ALT Linux Bugzilla
– Attachment 2790 Details for
Bug 16723
unsafe bash expression
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
sound-scripts-0.51-correct-bash.patch
sound-scripts-0.51-correct-bash.patch (text/plain), 737 bytes, created by
Ivan Zakharyaschev
on 2008-08-18 13:19:09 MSD
(
hide
)
Description:
sound-scripts-0.51-correct-bash.patch
Filename:
MIME Type:
Creator:
Ivan Zakharyaschev
Created:
2008-08-18 13:19:09 MSD
Size:
737 bytes
patch
obsolete
>sound-scripts 20070530:0.51-alt1 > >The attached patch makes the script better; this way it is more correct (e.g., in case of special chars in the pathname) and hence works more predictable in strange situations. > >(I stumbled upon this problem when trying to "source" the script from another bash.) > >imz at altlinux.org > >--- /usr/share/hal/scripts/linux/hal-system-alsa-mixer-linux.~1.1~ 2008-08-18 11:30:57 +0400 >+++ /usr/share/hal/scripts/linux/hal-system-alsa-mixer-linux 2008-07-05 11:15:13 +0400 >@@ -56,7 +57,7 @@ > return $ret > } > >-case $(basename "$0") in >+case "$(basename -- "$0")" in > hal-system-alsa-mixer-restore-linux) > [ -f "$STATEPATH/$HAL_PROP_ALSA_CARD.state" ] || set_mixer_default > restore_mixer || set_mixer_default
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16723
: 2790