GNU bug report logs - #53360
29.0.50; Tramp/AngeFTP/Dired: Error about wrong ls usage when connecting to FTP server

Previous Next

Package: emacs;

Reported by: Tassilo Horn <tsdh <at> gnu.org>

Date: Wed, 19 Jan 2022 11:52:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53360 in the body.
You can then email your comments to 53360 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#53360; Package emacs. (Wed, 19 Jan 2022 11:52:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tassilo Horn <tsdh <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 19 Jan 2022 11:52:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Tramp/AngeFTP/Dired: Error about wrong ls usage when
 connecting to FTP server
Date: Wed, 19 Jan 2022 12:40:03 +0100
I've tried to connect to some FTP server using

  C-x C-f /ftp:user <at> server.com: RET

and got this usage error in the *ftp* buffer:

--8<---------------cut here---------------start------------->8---
ftp> open ftp.iwofurn.com
Connected to comm.iwofurn.com.
220 Welcome to IWOfurn FTP Services
user "XXXXXXXXX" Turtle Power!
Remote system type is UNIX.
ftp> 331 Password required for XXXXXXXXX
230 Logged on
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> pwd
257 "/" is current directory.
ftp> cd /
250 CWD successful. "/" is current directory.
ftp> ls -alh --group-directories-first /tmp/ange-ftpbNvAjx
usage: ls remote-directory local-file
ftp> ls -alh --group-directories-first /tmp/ange-ftpbNvAjx
usage: ls remote-directory local-file
ftp>
--8<---------------cut here---------------end--------------->8---

I think those unrecognized arguments like --group-directories-first come
due to the fact that I've set

  (setq dired-listing-switches "-alh --group-directories-first")

which is fine for normal dired but not FTP.

I can reproduce the problem with emacs -Q and then setting
dired-listing-switches as shown above before trying to connect to the
FTP server.

I guess in the FTP case, there must be some dired-listing-switches
sanitization, i.e., remove those options which are not valid for FTP.
(I wouldn't care if it hard-coded the standard "-ah" for now.)


In GNU Emacs 29.0.50 (build 14, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4)
 of 2022-01-19 built on nbhta-and
Repository revision: 95084cec09190d7263ce61d30387c08e7d365ad3
Repository branch: master
System Description: Arch Linux

Configured using:
 'configure --with-modules --with-pgtk'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK
PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM
GTK3 ZLIB

Important settings:
  value of $LC_TIME: de_DE.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: ELisp/l

Minor modes in effect:
  debbugs-browse-mode: t
  display-fill-column-indicator-mode: t
  editorconfig-mode: t
  hl-todo-mode: t
  global-aggressive-indent-mode: t
  aggressive-indent-mode: t
  pdf-occur-global-minor-mode: t
  diredfl-global-mode: t
  which-key-mode: t
  highlight-parentheses-mode: t
  corfu-global-mode: t
  corfu-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  outline-minor-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  auto-revert-mode: t
  shell-dirtrack-mode: t
  bug-reference-prog-mode: t
  vertico-mode: t
  marginalia-mode: t
  minibuffer-depth-indicate-mode: t
  electric-pair-mode: t
  recentf-mode: t
  pixel-scroll-precision-mode: t
  pixel-scroll-mode: t
  override-global-mode: t
  save-place-mode: t
  savehist-mode: t
  puni-global-mode: t
  puni-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
~/Repos/el/mu/build/mu4e/mu4e-compose hides ~/Repos/el/mu/mu4e/mu4e-compose
~/Repos/el/mu/build/mu4e/mu4e hides ~/Repos/el/mu/mu4e/mu4e
~/Repos/el/mu/build/mu4e/mu4e-org hides ~/Repos/el/mu/mu4e/mu4e-org
~/Repos/el/mu/build/mu4e/mu4e-context hides ~/Repos/el/mu/mu4e/mu4e-context
~/Repos/el/mu/build/mu4e/mu4e-main hides ~/Repos/el/mu/mu4e/mu4e-main
~/Repos/el/mu/build/mu4e/mu4e-view hides ~/Repos/el/mu/mu4e/mu4e-view
~/Repos/el/mu/build/mu4e/mu4e-actions hides ~/Repos/el/mu/mu4e/mu4e-actions
~/Repos/el/mu/build/mu4e/mu4e-search hides ~/Repos/el/mu/mu4e/mu4e-search
~/Repos/el/mu/build/mu4e/mu4e-meta hides ~/Repos/el/mu/mu4e/mu4e-meta
~/Repos/el/mu/build/mu4e/mu4e-vars hides ~/Repos/el/mu/mu4e/mu4e-vars
~/Repos/el/mu/build/mu4e/mu4e-icalendar hides ~/Repos/el/mu/mu4e/mu4e-icalendar
~/Repos/el/mu/build/mu4e/mu4e-lists hides ~/Repos/el/mu/mu4e/mu4e-lists
~/Repos/el/mu/build/mu4e/mu4e-message hides ~/Repos/el/mu/mu4e/mu4e-message
~/Repos/el/mu/build/mu4e/mu4e-mark hides ~/Repos/el/mu/mu4e/mu4e-mark
~/Repos/el/mu/build/mu4e/mu4e-folders hides ~/Repos/el/mu/mu4e/mu4e-folders
~/Repos/el/mu/build/mu4e/mu4e-server hides ~/Repos/el/mu/mu4e/mu4e-server
~/Repos/el/mu/build/mu4e/mu4e-headers hides ~/Repos/el/mu/mu4e/mu4e-headers
~/Repos/el/mu/build/mu4e/mu4e-contrib hides ~/Repos/el/mu/mu4e/mu4e-contrib
~/Repos/el/mu/build/mu4e/mu4e-contacts hides ~/Repos/el/mu/mu4e/mu4e-contacts
~/Repos/el/mu/build/mu4e/mu4e-speedbar hides ~/Repos/el/mu/mu4e/mu4e-speedbar
~/Repos/el/mu/build/mu4e/mu4e-bookmarks hides ~/Repos/el/mu/mu4e/mu4e-bookmarks
~/Repos/el/mu/build/mu4e/mu4e-update hides ~/Repos/el/mu/mu4e/mu4e-update
~/Repos/el/mu/build/mu4e/mu4e-helpers hides ~/Repos/el/mu/mu4e/mu4e-helpers
~/Repos/el/mu/build/mu4e/mu4e-draft hides ~/Repos/el/mu/mu4e/mu4e-draft
/home/hta/.emacs.d/elpa/transient-20220117.1122/transient hides /home/hta/Repos/el/emacs/lisp/transient

Features:
(bs misearch multi-isearch shadow emacsbug tramp-cache ange-ftp
tramp-ftp dcl-mode tempo mm-archive git-rebase dabbrev cape magit-extras
rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse
rng-match rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode
facemenu nxml-util nxml-enc xmltok executable editorconfig-core
editorconfig-core-handle editorconfig-fnmatch project consult-vertico
consult-icomplete consult cursor-sensor sort gnus-cite mail-extr qp puni
pulse dired-aux vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs
debbugs-browse display-fill-column-indicator auto-package-update
finder-inf generic yaml-mode fish-mode cargo cargo-process rust-utils
rust-mode rust-rustfmt rust-playpen rust-compile rust-cargo web-mode
disp-table editorconfig elfeed-show elfeed-search elfeed-csv elfeed
elfeed-curl elfeed-log elfeed-db elfeed-lib avl-tree generator url-queue
xml-query socks elpher hl-todo aggressive-indent rainbow-mode pdf-occur
tablist tablist-filter semantic/wisent/comp semantic/wisent
semantic/wisent/wisent semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch
pdf-misc pdf-tools pdf-view magit-bookmark bookmark jka-compr pdf-cache
pdf-info tq pdf-util pdf-macs image-mode exif vc-git vc-dir ewoc
epa-file rdictcc diredfl dired-x mu4e-icalendar gnus-icalendar
org-capture org-refile icalendar diary-lib diary-loaddefs mu4e mu4e-org
mu4e-view org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-footnote org-src ob-comint org-pcomplete org-list org-faces
org-entities org-version ob-emacs-lisp ob-core ob-eval org-table
oc-basic bibtex ol org-keys oc org-compat org-macs org-loaddefs
find-func cal-menu calendar cal-loaddefs mu4e-main mu4e-headers
mu4e-lists mu4e-compose mu4e-draft mu4e-actions smtpmail sendmail
mu4e-search mu4e-bookmarks mu4e-mark mu4e-message flow-fill mule-util
hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-server mu4e-context
mu4e-vars mu4e-helpers ido mu4e-meta ecomplete auto-dictionary flyspell
ispell tramp-smb tramp tramp-loaddefs trampver tramp-integration files-x
tramp-compat ls-lisp which-key highlight-parentheses restclient
kind-icon svg-lib corfu yasnippet forge-list forge-commands forge-semi
forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab
forge-github ghub-graphql treepy gsexp ghub let-alist gnutls
forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml
forge-post markdown-mode color thingatpt noutline outline forge-repo
forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler
magit-submodule magit-obsolete magit-blame magit-stash magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs magit-status
magit magit-repos magit-apply magit-wip magit-log which-func imenu
magit-diff smerge-mode diff diff-mode git-commit log-edit pcvs-util
add-log magit-core magit-autorevert autorevert filenotify magit-margin
magit-transient magit-process with-editor shell pcomplete server
magit-mode magit-git magit-section magit-utils crm dash
visual-filename-abbrev rg vc vc-dispatcher rg-info-hack advice rg-menu
transient format-spec rg-ibuffer rg-result wgrep-rg wgrep rg-history
rg-header ibuf-ext ibuffer ibuffer-loaddefs grep compile comint
ansi-color cus-edit pp cus-load debbugs soap-client url-http url-auth
url-gw nsm warnings rng-xsd rng-dt rng-util xsd-regexp bug-reference
vertico edmacro kmacro marginalia icomplete mb-depth
use-package-diminish ace-window avy alert log4e notifications gntp
elec-pair rx recentf tree-widget pixel-scroll ring use-package-bind-key
bind-key saveplace savehist smiley gnus-art mm-uu mml2015 mm-view
mml-smime smime dig gnus-sum shr pixel-fill kinsoku svg dom gnus-group
gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail
mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int
gnus-range message yank-media rmc puny dired dired-loaddefs rfc822 mml
mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils
mailheader gnus-win gnus wid-edit nnheader gnus-util
text-property-search time-date mm-util mail-prsvr mail-utils range
doom-themes-ext-org doom-themes-ext-visual-bell face-remap
doom-Iosvkem-theme doom-themes doom-themes-base diminish cl-extra
help-mode use-package-ensure use-package-core easy-mmode info package
browse-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map url-vars seq gv subr-x byte-opt bytecomp
byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/pgtk-win pgtk-win term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit pgtk lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 724485 127851)
 (symbols 48 52123 15)
 (strings 32 227562 10921)
 (string-bytes 1 6724529)
 (vectors 16 103784)
 (vector-slots 8 1849100 200754)
 (floats 8 809 616)
 (intervals 56 13398 2146)
 (buffers 992 48))

-- 
Dr. Tassilo Horn
SHD Einzelhandelssoftware GmbH
Rennweg 60, 56626 Andernach, Deutschland
Telefon +49 2632 295-449
Telefax +49 2632 295-100
E-Mail: hta <at> shd.de, Homepage: www.shd.de
Rechtsform GmbH - Sitz Andernach
Registergericht: Amtsgericht Koblenz HRB 20741
Geschäftsführer: Stefan Hahne




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53360; Package emacs. (Sun, 06 Feb 2022 17:09:01 GMT) Full text and rfc822 format available.

Message #8 received at 53360 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 53360 <at> debbugs.gnu.org
Subject: Re: bug#53360: 29.0.50; Tramp/AngeFTP/Dired: Error about wrong ls
 usage when connecting to FTP server
Date: Sun, 06 Feb 2022 18:08:44 +0100
[Message part 1 (text/plain, inline)]
Tassilo Horn <tsdh <at> gnu.org> writes:

Hi Tassilo,

> I've tried to connect to some FTP server using
>
>   C-x C-f /ftp:user <at> server.com: RET
>
> and got this usage error in the *ftp* buffer:
>
> ftp> ls -alh --group-directories-first /tmp/ange-ftpbNvAjx
> usage: ls remote-directory local-file
> ftp>
>
> I think those unrecognized arguments like --group-directories-first come
> due to the fact that I've set
>
>   (setq dired-listing-switches "-alh --group-directories-first")
>
> which is fine for normal dired but not FTP.
>
> I guess in the FTP case, there must be some dired-listing-switches
> sanitization, i.e., remove those options which are not valid for FTP.
> (I wouldn't care if it hard-coded the standard "-ah" for now.)

Could you pls check whether the appended patch fixes this for you?

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53360; Package emacs. (Sun, 06 Feb 2022 20:08:01 GMT) Full text and rfc822 format available.

Message #11 received at 53360 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 53360 <at> debbugs.gnu.org
Subject: Re: bug#53360: 29.0.50; Tramp/AngeFTP/Dired: Error about wrong ls
 usage when connecting to FTP server
Date: Sun, 06 Feb 2022 21:05:46 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Michael,

>> I guess in the FTP case, there must be some dired-listing-switches
>> sanitization, i.e., remove those options which are not valid for FTP.
>> (I wouldn't care if it hard-coded the standard "-ah" for now.)
>
> Could you pls check whether the appended patch fixes this for you?

Yes, it works. :-)

Thanks,
  Tassilo




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Mon, 07 Feb 2022 09:10:02 GMT) Full text and rfc822 format available.

Notification sent to Tassilo Horn <tsdh <at> gnu.org>:
bug acknowledged by developer. (Mon, 07 Feb 2022 09:10:02 GMT) Full text and rfc822 format available.

Message #16 received at 53360-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 53360-done <at> debbugs.gnu.org
Subject: Re: bug#53360: 29.0.50; Tramp/AngeFTP/Dired: Error about wrong ls
 usage when connecting to FTP server
Date: Mon, 07 Feb 2022 10:09:36 +0100
Version: 29.1

Tassilo Horn <tsdh <at> gnu.org> writes:

> Hi Michael,

Hi Tassilo,

>> Could you pls check whether the appended patch fixes this for you?
>
> Yes, it works. :-)

Thanks for the feedback. I've pushed it to master, closing the bug.

> Thanks,
>   Tassilo

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 07 Mar 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 23 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.