Ticket #3122: mc-extfs-iso9660-xorriso.patch
File mc-extfs-iso9660-xorriso.patch, 1.2 KB (added by dnh, 11 years ago) |
---|
-
mc-4.8.11/src/vfs/extfs/helpers/iso9660.in
old new 38 38 return 1 39 39 fi 40 40 local dir attr ln usr gr sz dt1 dt2 dt3 nm len name 41 dir="$2" 42 $XORRISO -dev stdio:"$1" -cd "$dir" -lsl 2> /dev/null | @GREP@ "^[-d]" | \ 41 dir="${2:-/}" 42 lsl=$( $XORRISO -abort_on FATAL -dev stdio:"$1" -cd "$dir" -lsl 2> /dev/null ) 43 r=$? 44 test $r -gt 0 && return $r 45 echo "$lsl" | /usr/bin/grep "^[-d]" | \ 43 46 while read attr ln usr gr sz dt1 dt2 dt3 nm ; do 44 47 len=$((${#nm} - 1)) 45 name=$(printf "$nm" | cut -c2-$len) # remove quotes46 if test $(printf "$nm" | cut -c1-2) != "d"; then47 printf "%s %s %s %s %s %s %s %s %s/%s\n" "$attr" "$ln" "$usr" "$gr" "$sz" "$dt1" "$dt2" "$dt3" "$dir" "$name"48 name=$(printf -- '%s' "$nm" | cut -c2-$len) # remove quotes 49 if test $(printf -- '%s' "$attr" | cut -c1) != "d"; then 50 printf -- "%s %s %s %s %s %s %s %s %s/%s\n" "$attr" "$ln" "$usr" "$gr" "$sz" "$dt1" "$dt2" "$dt3" "$dir" "$name" 48 51 else 49 52 xorriso_list "$1" "$dir/$name" 50 53 fi