diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 2ca4f0f52..108de0622 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2003-08-08 Pavel Roskin + + * extfs/audio.in: Fix non-POSIX constructs. + From GoTaR + 2003-07-28 Andrew V. Samoilov * ftpfs.c (login_server): Undo last change. diff --git a/vfs/extfs/audio.in b/vfs/extfs/audio.in index 96487263b..33f88b036 100755 --- a/vfs/extfs/audio.in +++ b/vfs/extfs/audio.in @@ -18,9 +18,8 @@ audiofs_list () cdparanoia -Q -d $1 2>&1 | grep '^[ 0-9][ 0-9][ 0-9]\.' | while true do read A B C || break - A=`echo $A | sed 's/\.//'` - SIZE=$[44+$B*2352] - if (( $A < 10 )); then A="0$A"; fi + A=`echo $A | sed -e 's/\.//' -e 's/^\(.\)$/0\1/'` + SIZE=$((44+$B*2352)) echo "-r--r--r-- 1 0 0 $SIZE Jan 1 0:00 track-${A}.wav" done }