diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 35894246b..1db52731b 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,7 @@ +2003-06-24 Andrew V. Samoilov + + * extfs/lslR.in: Portability fixes. + 2003-06-21 Jindrich Makovicka * ftpfs.c (command): Fix misuse of the status variable. Don't diff --git a/vfs/extfs/lslR.in b/vfs/extfs/lslR.in index 553760271..273fe5e53 100644 --- a/vfs/extfs/lslR.in +++ b/vfs/extfs/lslR.in @@ -5,6 +5,10 @@ # (to allow spaces in filenames) # # It's assumed that lslR was generated in C locale. +LC_ALL=C +export LC_ALL=C + +AWK=@AWK@ mclslRfs_list () { case "$1" in @@ -15,7 +19,7 @@ case "$1" in *) MYCAT="cat";; esac -$MYCAT "$1" | @AWK@ ' +$MYCAT "$1" | $AWK ' BEGIN { dir=""; # Pattern to match 8 first fields. @@ -31,7 +35,7 @@ BEGIN { else sub(/:$/, "/", dir); next; } -{ $9 != "" } { +( $9 != "" ) { # gensub() is not portable. name=$0 sub(rx, "", name) @@ -41,8 +45,6 @@ BEGIN { }' } -export LC_ALL="C" - case "$1" in list) mclslRfs_list "$2"; exit 0;; esac