diff -ru mc-4.8.11.orig/src/vfs/extfs/helpers/iso9660.in mc-4.8.11/src/vfs/extfs/helpers/iso9660.in
old
|
new
|
|
37 | 37 | if test -z "$XORRISO"; then |
38 | 38 | return 1 |
39 | 39 | fi |
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]" | \ |
| 40 | local dir attr ln usr gr sz dt1 dt2 dt3 nm len name lsl r |
| 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" | @GREP@ "^[-d]" | \ |
43 | 46 | while read attr ln usr gr sz dt1 dt2 dt3 nm ; do |
44 | | len=$((${#nm} - 1)) |
45 | | name=$(printf "$nm" | cut -c2-$len) # remove quotes |
46 | | if test $(printf "$nm" | cut -c1-2) != "d"; then |
47 | | printf "%s %s %s %s %s %s %s %s %s/%s\n" "$attr" "$ln" "$usr" "$gr" "$sz" "$dt1" "$dt2" "$dt3" "$dir" "$name" |
| 47 | name=${nm:1:${#nm}-2} # remove quotes |
| 48 | if test ${attr:0:1} != "d"; then |
| 49 | printf -- "%s %s %s %s %s %s %s %s %s/%s\n" "$attr" "$ln" "$usr" "$gr" "$sz" "$dt1" "$dt2" "$dt3" "$dir" "$name" |
48 | 50 | else |
49 | 51 | xorriso_list "$1" "$dir/$name" |
50 | 52 | fi |