File mc-extfs-iso9660-xorriso.patch of Package mc

Index: src/vfs/extfs/helpers/iso9660.in
===================================================================
--- src/vfs/extfs/helpers/iso9660.in.orig
+++ src/vfs/extfs/helpers/iso9660.in
@@ -46,9 +46,9 @@ xorriso_list() {
     echo "$lsl" | grep "^[-d]" | \
     while read attr ln usr gr sz dt1 dt2 dt3 nm ; do
         len=$((${#nm} - 1))
-        name=$(printf -- "$nm" | cut -c2-$len)  # remove quotes
+        name=$(printf -- '%s' "$nm" | cut -c2-$len)  # remove quotes
 
-        if test $(printf -- "$attr" | cut -c1-1) != "d"; then
+        if test $(printf -- '%s' "$attr" | cut -c1-1) != "d"; then
             printf -- "%s %s %s %s %s %s %s %s %s/%s\n" "$attr" "$ln" "$usr" "$gr" "$sz" "$dt1" "$dt2" "$dt3" "$dir" "$name"
         else
             xorriso_list "$1" "$dir/$name"
openSUSE Build Service is sponsored by