Ticket #3972: openindiana.patch

File openindiana.patch, 1.7 KB (added by zaytsev, 2 months ago)
  • src/vfs/extfs/helpers/iso9660.in

    diff --git a/src/vfs/extfs/helpers/iso9660.in b/src/vfs/extfs/helpers/iso9660.in
    index a4519dc3c..2e2a3390d 100644
    a b awk_xorriso_unesc=$(cat <<'EOF' 
    8080EOF 
    8181) 
    8282 
    83 xorriso_list() { 
     83xorriso_list() ( 
    8484    if test -z "$XORRISO"; then 
    8585        return 1 
    8686    fi 
    8787 
    88     local temp_ls 
    8988    temp_ls=$(mktemp "${MC_TMPDIR:-/tmp}"/mc-iso9660.XXXXXX) || return 1 
    9089 
    9190    # $XORRISO must be unquoted here to hook into the testing framework 
    9291    $XORRISO -abort_on FATAL -dev stdio:"$1" -find / -exec lsdl 2>/dev/null >"$temp_ls" 
    93     local r=$? 
     92    r=$? 
    9493 
    9594    if [ "$r" != 0 ]; then 
    9695        rm -f "$temp_ls" 
    xorriso_list() { 
    105104        @AWK@ "$awk_xorriso_unesc" 
    106105 
    107106    rm -f "$temp_ls" 
    108 } 
     107) 
    109108 
    110109xorriso_copyout() { 
    111110    if test -z "$XORRISO"; then 
    test_iso () { 
    175174    fi 
    176175} 
    177176 
    178 mcisofs_list () { 
    179     local lsl r 
    180  
     177mcisofs_list () ( 
    181178    # left as a reminder to implement compressed image support =) 
    182179    case "$1" in 
    183180      *.lz)  MYCAT="lzip -dc";; 
    BEGIN { 
    227224  if (name == "..") next; 
    228225  printf "%s%s%s\n", attr, dir, name 
    229226}' 
    230 } 
     227) 
    231228 
    232229mcisofs_copyout () { 
    233230    if [ "x$SEMICOLON" = "xYES" ]; then 
  • tests/src/vfs/extfs/helpers-list/test_all

    diff --git a/tests/src/vfs/extfs/helpers-list/test_all b/tests/src/vfs/extfs/helpers-list/test_all
    index f5f9be616..b7b604fa8 100755
    a b opt_run_mcdiff_on_error=no # "yes" if '--mcdiff' provided. 
    9494 
    9595############################ Utility functions ############################# 
    9696 
     97# Support ksh93+ 
     98if type typeset > /dev/null 2>&1; then 
     99  alias local="typeset" 
     100fi 
     101 
    97102# 
    98103# Does $1 contain $2? 
    99104#