Topic "WINSCP 3.7.2 & 3.7.3 - Shows empty directory on target"

Author Message
Robert von Knobloch

Guest


I am using WINSCP to connect to a LEAF-Bering firewall (linux / Busybox system).
I have been using 3.7.0 (Build 254) very successfully for some time.
On upgrading to either 3.7.2 or 3.7.3 the program fails to show the root directory of the target host.
Pressing "reload" causes the following error:
-------------------------
Command 'ls -lad --full-time "/.."'
failed with return code 1 and error message
ls: unrecognized option `--full-time'
BusyBox v1.00 (2004.10.13-18:20+0000) multi-call binary

Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...].
-------------------------
from busybox.
WINSCP is running on Windows XP Professional. I have tried running 3.7.2 on a (admittedly under VMWare) Windows2000 box to the same host and it works without error.
Here is an entry from the SCP log file:
--------------------------
. 2005-02-08 14:37:29.075 Closing connection.
. 2005-02-08 14:37:34.052 --------------------------------------------------------------------------
. 2005-02-08 14:37:34.052 WinSCP Version 3.7.3 (Build 265) (OS 5.1.2600 Service Pack 2)
. 2005-02-08 14:37:34.052 Login time: 08 February 2005 14:37:34
. 2005-02-08 14:37:34.052 --------------------------------------------------------------------------
. 2005-02-08 14:37:34.052 Session name: root@brandmauer.praxis.vk
. 2005-02-08 14:37:34.052 Host name: brandmauer.praxis.vk (Port: 22)
. 2005-02-08 14:37:34.052 User name: root (Password: No, Key file: No)
. 2005-02-08 14:37:34.052 Transfer Protocol: SFTP (SCP)
. 2005-02-08 14:37:34.052 SSH protocol version: 2; Compression: No
. 2005-02-08 14:37:34.052 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2005-02-08 14:37:34.052 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2005-02-08 14:37:34.052 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2005-02-08 14:37:34.052 SSH Bugs: -,-,-,-,-,-,-,-
. 2005-02-08 14:37:34.052 SFTP Bugs: -,-
. 2005-02-08 14:37:34.052 Proxy: none
. 2005-02-08 14:37:34.072 Return code variable: Autodetect; Lookup user groups: No
. 2005-02-08 14:37:34.072 Shell: /bin/sh, EOL: 0
. 2005-02-08 14:37:34.072 Local directory: d:\temp, Remote directory: /, Update: No, Cache: Yes
. 2005-02-08 14:37:34.072 Cache directory changes: Yes, Permanent: Yes
. 2005-02-08 14:37:34.072 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2005-02-08 14:37:34.072 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2005-02-08 14:37:34.072 --------------------------------------------------------------------------
. 2005-02-08 14:37:34.072 Looking up host "brandmauer.praxis.vk"
. 2005-02-08 14:37:34.082 Connecting to 192.168.0.254 port 22
. 2005-02-08 14:37:34.102 Server version: SSH-2.0-dropbear_0.43
. 2005-02-08 14:37:34.102 We claim version: SSH-2.0-WinSCP_release_3.7.3
. 2005-02-08 14:37:34.102 Using SSH protocol version 2
. 2005-02-08 14:37:34.112 Using Diffie-Hellman with standard group "group1"
. 2005-02-08 14:37:34.112 Doing Diffie-Hellman key exchange
. 2005-02-08 14:37:35.324 Host key fingerprint is:
. 2005-02-08 14:37:35.324 ssh-rsa 1040 97:8f:7d:bf:15:e8:d4:b9:f2:8e:af:7d:39:b2:aa:02
. 2005-02-08 14:37:35.324 Initialised triple-DES client->server encryption
. 2005-02-08 14:37:35.324 Initialised HMAC-SHA1 client->server MAC algorithm
. 2005-02-08 14:37:35.324 Initialised triple-DES server->client encryption
. 2005-02-08 14:37:35.324 Initialised HMAC-SHA1 server->client MAC algorithm
! 2005-02-08 14:37:35.324 Using username "root".
! 2005-02-08 14:37:35.334 *******************************************************************************
! 2005-02-08 14:37:35.334 ++++++++++++++++++++++++++++++
! 2005-02-08 14:37:35.334 + animalhouse.homeunix.org +
! 2005-02-08 14:37:35.334 ++++++++++++++++++++++++++++++
! 2005-02-08 14:37:35.334 ******* WARNING *******
! 2005-02-08 14:37:35.334 This is a private computer system.
! 2005-02-08 14:37:35.334 You are not allowed to access this system.
! 2005-02-08 14:37:35.334 All connection attempts will be logged and may be traced.
! 2005-02-08 14:37:35.334 RvK
! 2005-02-08 14:37:35.334 *******************************************************************************
. 2005-02-08 14:37:35.334 Session password prompt (root@brandmauer.praxis.vk's password: )
. 2005-02-08 14:37:35.334 Asking user for password.
. 2005-02-08 14:37:38.409 Sent password
. 2005-02-08 14:37:38.449 Access granted
. 2005-02-08 14:37:38.449 Opened channel for session
. 2005-02-08 14:37:38.459 Primary command failed; attempting fallback
. 2005-02-08 14:37:38.459 Started a shell/command
. 2005-02-08 14:37:38.459 --------------------------------------------------------------------------
. 2005-02-08 14:37:38.459 Using SCP protocol.
. 2005-02-08 14:37:38.459 Doing startup conversation with host.
. 2005-02-08 14:37:38.459 Skipping host startup message (if any).
> 2005-02-08 14:37:38.459 echo "WinSCP: this is end-of-file:0"
< 2005-02-08 14:37:38.549 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.549 Detecting variable containing return code of last command.
. 2005-02-08 14:37:38.549 Trying "$status".
> 2005-02-08 14:37:38.549 echo "$status" ; echo "WinSCP: this is end-of-file:0"
< 2005-02-08 14:37:38.549 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.549 Trying "$?".
> 2005-02-08 14:37:38.549 echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 2005-02-08 14:37:38.559 0
< 2005-02-08 14:37:38.559 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.559 Return code variable "$?" selected.
. 2005-02-08 14:37:38.559 Clearing all aliases.
> 2005-02-08 14:37:38.559 unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.569 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.569 unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.569 unalias: echo not found
< 2005-02-08 14:37:38.569 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.569 unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.569 unalias: pwd not found
< 2005-02-08 14:37:38.579 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.579 unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.579 unalias: cd not found
< 2005-02-08 14:37:38.579 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.579 unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.579 unalias: ls not found
< 2005-02-08 14:37:38.589 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.589 unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.589 unalias: groups not found
< 2005-02-08 14:37:38.599 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.599 unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.599 unalias: scp not found
< 2005-02-08 14:37:38.599 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.599 unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.599 unalias: rm not found
< 2005-02-08 14:37:38.609 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.609 unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.609 unalias: mv not found
< 2005-02-08 14:37:38.609 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.609 unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.609 unalias: mkdir not found
< 2005-02-08 14:37:38.619 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.619 unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.619 unalias: chmod not found
< 2005-02-08 14:37:38.619 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.619 unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.619 unalias: chgrp not found
< 2005-02-08 14:37:38.629 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.629 unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.629 unalias: chown not found
< 2005-02-08 14:37:38.639 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.639 unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.639 unalias: unset not found
< 2005-02-08 14:37:38.639 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.639 unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.639 unalias: unalias not found
< 2005-02-08 14:37:38.649 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.649 unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.649 unalias: alias not found
< 2005-02-08 14:37:38.649 WinSCP: this is end-of-file:1
> 2005-02-08 14:37:38.649 unalias "cp" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.649 unalias: ln not found
< 2005-02-08 14:37:38.659 WinSCP: this is end-of-file:1
. 2005-02-08 14:37:38.659 Clearing national user variables.
> 2005-02-08 14:37:38.659 unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.659 unalias: cp not found
< 2005-02-08 14:37:38.669 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.669 unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.669 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.669 unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.679 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.679 unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.679 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.679 unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.689 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.689 unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.689 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.689 unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.699 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.699 unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.699 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.699 unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.709 WinSCP: this is end-of-file:0
> 2005-02-08 14:37:38.709 unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.709 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.709 Changing directory to "/".
> 2005-02-08 14:37:38.709 cd "/" ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.719 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.719 Getting current directory name.
> 2005-02-08 14:37:38.719 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.729 /
< 2005-02-08 14:37:38.729 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.729 Listing current directory.
> 2005-02-08 14:37:38.729 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:38.739 WinSCP: this is end-of-file:1
. 2005-02-08 14:37:38.739 Listing file "/..".
> 2005-02-08 14:37:38.739 ls -lad "/.." ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:38.739 ls: unrecognized option `--full-time'
! 2005-02-08 14:37:38.739 BusyBox v1.00 (2004.10.13-18:20+0000) multi-call binary
! 2005-02-08 14:37:38.739 Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...]
< 2005-02-08 14:37:38.749 drwxrwxrwt 16 root root 340 Feb 6 10:01 /..
< 2005-02-08 14:37:38.749 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:38.749 Directory listing with --full-time succeed, next time all errors during directory listing will be displayed immediatelly.
. 2005-02-08 14:37:38.749 Startup conversation with host finished.
. 2005-02-08 14:37:45.539 Getting current directory name.
> 2005-02-08 14:37:45.539 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:45.539 /
< 2005-02-08 14:37:45.539 WinSCP: this is end-of-file:0
. 2005-02-08 14:37:45.539 Listing current directory.
> 2005-02-08 14:37:45.539 ls -la --full-time ; echo "WinSCP: this is end-of-file:$?"
< 2005-02-08 14:37:45.559 WinSCP: this is end-of-file:1
. 2005-02-08 14:37:45.559 Listing file "/..".
> 2005-02-08 14:37:45.559 ls -lad --full-time "/.." ; echo "WinSCP: this is end-of-file:$?"
! 2005-02-08 14:37:45.559 ls: unrecognized option `--full-time'
! 2005-02-08 14:37:45.559 BusyBox v1.00 (2004.10.13-18:20+0000) multi-call binary
! 2005-02-08 14:37:45.559 Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...]
< 2005-02-08 14:37:45.569 WinSCP: this is end-of-file:1
* 2005-02-08 14:37:45.569 (ECommand) Can't get attributes of file '/..'.
* 2005-02-08 14:37:45.569 Command 'ls -lad --full-time "/.."'
* 2005-02-08 14:37:45.569 failed with return code 1 and error message
* 2005-02-08 14:37:45.569 ls: unrecognized option `--full-time'
* 2005-02-08 14:37:45.569 BusyBox v1.00 (2004.10.13-18:20+0000) multi-call binary
* 2005-02-08 14:37:45.569
* 2005-02-08 14:37:45.569 Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...].
! 2005-02-08 14:37:45.939 ls: unrecognized option `--full-time'
! 2005-02-08 14:37:45.939 BusyBox v1.00 (2004.10.13-18:20+0000) multi-call binary
! 2005-02-08 14:37:45.939 Usage: ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [filenames...]
* 2005-02-08 14:38:52.035 (ECommand) Error listing directory '/'.
* 2005-02-08 14:38:52.035 Server returned empty listing for directory '/'.
. 2005-02-08 14:39:05.264 Closing connection.
. 2005-02-08 14:39:08.989
-----------------------------
I can work with 3.7.0 but wanted to let you know.
Robert von Knobloch - "bob(-at-)rwilliams.de"
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Since 3.7.1 WinSCP tries to use --full-time parameter when listing directories to get precise timestamp. When it detects that the server does not support the parameter it stops using it. In your case the detection fails, because the error message comes too late (difficult to explain shortly). However you may manually disable the attempt to use --full-time.
_________________
Martin Prikryl
Robert von Knobloch

Guest


Thanks for the Information - it works fine now. Strange that it works under Win2000 but not XP with the same target.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Robert von Knobloch wrote:
Thanks for the Information - it works fine now. Strange that it works under Win2000 but not XP with the same target.

Are you sure that you are running the same version of WinSCP on both machines?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License