[Bug 1028280] [NEW] sftp remoteserver "ls -l" error

Byka netbyka at gmail.com
Tue Jul 24 06:58:43 UTC 2012


Public bug reported:

When connected via sftp to remote server, the "ls -l *" returns wrong
information, other then "ls -l filename".

Example:
-----------------------------------------------
$ uname -a
Linux laptop 2.6.38-15-generic #59-Ubuntu SMP Fri Apr 27 16:04:29 UTC 2012 i686 i686 i386 GNU/Linux
$ ssh -v
OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
....
$ sftp remoteserver
sftp> ls -l *tgz
-rw-r--r--    0 1001     0          334258 Jun 10 21:59 ifly.root.tgz
-rw-r--r--    0 1001     0          467990 Jul 24 09:50 ifly_root.tgz
sftp> ls -l ifly.root.tgz
-rw-r--r--    0 1001     0          467990 Jul 24 09:50 ifly.root.tgz
sftp> ls -l ifly_root.tgz
-rw-r--r--    0 1001     0          334258 Jun 10 21:59 ifly_root.tgz
sftp> 
-----------------------------------------------

The file ifly.root.tgz is really 467990 bytes and Jul 24 09:50, and ifly_root.tgz is 334258 bytes and Jun 10 21:59.
It`s correct.
But when used "ls -l *tgz" sizes and dates not corresponds to filenames, and when  "ls -l *" filenames and file attributes may be mixed in random order: directory "/tmp" marked as file "-rw-r--r-", file "index.html" marked as directory, etc.
With other remote servers too.

When connecting to this and other remote servers from FreeBSD (openssh
5.4) all works fine.

** Affects: openssh (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1028280

Title:
  sftp remoteserver "ls -l" error

Status in “openssh” package in Ubuntu:
  New

Bug description:
  When connected via sftp to remote server, the "ls -l *" returns wrong
  information, other then "ls -l filename".

  Example:
  -----------------------------------------------
  $ uname -a
  Linux laptop 2.6.38-15-generic #59-Ubuntu SMP Fri Apr 27 16:04:29 UTC 2012 i686 i686 i386 GNU/Linux
  $ ssh -v
  OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
  ....
  $ sftp remoteserver
  sftp> ls -l *tgz
  -rw-r--r--    0 1001     0          334258 Jun 10 21:59 ifly.root.tgz
  -rw-r--r--    0 1001     0          467990 Jul 24 09:50 ifly_root.tgz
  sftp> ls -l ifly.root.tgz
  -rw-r--r--    0 1001     0          467990 Jul 24 09:50 ifly.root.tgz
  sftp> ls -l ifly_root.tgz
  -rw-r--r--    0 1001     0          334258 Jun 10 21:59 ifly_root.tgz
  sftp> 
  -----------------------------------------------

  The file ifly.root.tgz is really 467990 bytes and Jul 24 09:50, and ifly_root.tgz is 334258 bytes and Jun 10 21:59.
  It`s correct.
  But when used "ls -l *tgz" sizes and dates not corresponds to filenames, and when  "ls -l *" filenames and file attributes may be mixed in random order: directory "/tmp" marked as file "-rw-r--r-", file "index.html" marked as directory, etc.
  With other remote servers too.

  When connecting to this and other remote servers from FreeBSD (openssh
  5.4) all works fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1028280/+subscriptions




More information about the foundations-bugs mailing list