From 5d6b103e96cba83ea188660e1d0547953e6e3dd2 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 18 Aug 2002 22:40:36 +0000 Subject: [PATCH] * vfs/extfs/ftplist.in: Remove support for running commands, it makes no sence. --- ChangeLog | 5 +++++ vfs/extfs/ftplist.in | 31 ------------------------------- 2 files changed, 5 insertions(+), 31 deletions(-) diff --git a/ChangeLog b/ChangeLog index de000ef56..e931f648e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-18 Pavel Roskin + + * vfs/extfs/ftplist.in: Remove support for running commands, it + makes no sence. + 2002-08-16 Pavel Roskin * lib/mc.global: Remove, it duplicates the role of mc.lib. diff --git a/vfs/extfs/ftplist.in b/vfs/extfs/ftplist.in index 64e1905bc..57b2d5e07 100644 --- a/vfs/extfs/ftplist.in +++ b/vfs/extfs/ftplist.in @@ -50,38 +50,7 @@ if ($1 ~ /^ftp:\/\//) { }' 2>/dev/null } -mcftplistfs_run () -{ -if [ -n "$MC_CONTROL_FILE" ] -then - cat $1 | @AWK@ -v name=$2 ' -/^[\ \ ]*(#.*)?$/ { next } -{ -if ($1 ~ /^ftp:\/\//) { - if ($1 ~ /\/$/) { - a[4]=substr($1, 7, length($1) - 7) - a[5]=$1 - } else { - a[4]=substr($1, 7) - a[5]=sprintf("%s/", $1) - } - if (NF >= 2) - a[4]=$2 - else { - i=split(a[4], b, "/") - a[4]=b[1] - for (j = 2; j <= i; j++) - a[4]=sprintf("%s_%s", a[4], b[j]) - } - if (a[4] ~ name) - printf "cd %s\n", a[5] -} -}' 2>/dev/null > $MC_CONTROL_FILE -fi -} - case "$1" in list) mcftplistfs_list $2; exit 0;; - run) mcftplistfs_run $2 $3; exit 0;; esac exit 1