Ticket #2569: 0001-extfs-fix-more-bashisms.patch

File 0001-extfs-fix-more-bashisms.patch, 2.1 KB (added by jmak, 13 years ago)
  • src/vfs/extfs/helpers/iso9660.in

    From 0a9e55870106ae5e841ebcf1d51659f9eb8b2382 Mon Sep 17 00:00:00 2001
    From: Jindrich Makovicka <makovick@gmail.com>
    Date: Tue, 5 Jul 2011 17:13:21 +0200
    Subject: [PATCH] extfs: fix more bashisms
    
    ---
     src/vfs/extfs/helpers/iso9660.in |    2 +-
     src/vfs/extfs/helpers/uace.in    |    2 +-
     src/vfs/extfs/helpers/uarc.in    |    2 +-
     src/vfs/extfs/helpers/uc1541.in  |    2 +-
     4 files changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/vfs/extfs/helpers/iso9660.in b/src/vfs/extfs/helpers/iso9660.in
    index c78c829..296ac54 100644
    a b BEGIN { 
    7878} 
    7979 
    8080mcisofs_copyout () { 
    81         if [ "x$SEMICOLON" == "xYES" ]; then 
     81        if [ "x$SEMICOLON" = "xYES" ]; then 
    8282            $ISOINFO -i "$1" -x "/$2;1" 2>/dev/null > "$3" 
    8383        else 
    8484            $ISOINFO -i "$1" -x "/$2" 2>/dev/null > "$3" 
  • src/vfs/extfs/helpers/uace.in

    diff --git a/src/vfs/extfs/helpers/uace.in b/src/vfs/extfs/helpers/uace.in
    index 062d82f..d245774 100644
    a b ACE_GET="unace x" 
    2222# ls: 
    2323mc_ace_fs_list() 
    2424{ 
    25     $ACE_LIST "$1" | gawk -v uid=${UID-0} ' 
     25    $ACE_LIST "$1" | gawk -v uid=$(id -ru) ' 
    2626BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" } 
    2727/%/ {  
    2828  split($1,date,".") 
  • src/vfs/extfs/helpers/uarc.in

    diff --git a/src/vfs/extfs/helpers/uarc.in b/src/vfs/extfs/helpers/uarc.in
    index 3f71277..aa7468e 100644
    a b ARC_DEL="arc d" 
    1919 
    2020mc_arc_fs_list() 
    2121{ 
    22     $ARC_LIST "$1" | gawk -v uid=${UID-0} ' 
     22    $ARC_LIST "$1" | gawk -v uid=$(id -ru) ' 
    2323BEGIN { } 
    2424/^Name/ { next } 
    2525/===/ { next } 
  • src/vfs/extfs/helpers/uc1541.in

    diff --git a/src/vfs/extfs/helpers/uc1541.in b/src/vfs/extfs/helpers/uc1541.in
    index fed3301..4f8fc67 100644
    a b C1541="c1541" 
    2020# There are no time stamps in the disk image, so a bogus timestamp is displayed 
    2121mc_c1541_fs_list() 
    2222{ 
    23     $C1541 "$1" -list | gawk -v uid=${UID-0} ' 
     23    $C1541 "$1" -list | gawk -v uid=$(id -ru) ' 
    2424BEGIN { FS = "\"" } 
    2525/No LINES!/ { next } 
    2626/BLOCKS FREE/ { next }