all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Rasmus <rasmus@gmx.us>
Cc: 19192@debbugs.gnu.org, michael.albinus@gmx.de
Subject: bug#19192: 25.0.50; TRAMP uses `dired-listing-switches' for ftp-connection
Date: Wed, 10 Dec 2014 15:15:53 +0100	[thread overview]
Message-ID: <mvmlhmftwti.fsf@hawking.suse.de> (raw)
In-Reply-To: <87k31zfxw6.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 10 Dec 2014 14:16:25 +0100")

Rasmus <rasmus@gmx.us> writes:

> diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
> index d7632ed..5e9bc27 100644
> --- a/lisp/net/ange-ftp.el
> +++ b/lisp/net/ange-ftp.el
> @@ -2831,16 +2831,20 @@ match subdirectories as well.")
>  		      files ange-ftp-files-hashtable)))
>  
>  (defun ange-ftp-switches-ok (switches)
> -  "Return SWITCHES (a string) if suitable for our use."
> +  "Return SWITCHES (a string) if suitable for use with ls over ftp."
>    (and (stringp switches)
>         ;; We allow the A switch, which lists all files except "." and
>         ;; "..".  This is OK because we manually insert these entries
>         ;; in the hash table.
>         (string-match
>  	"--\\(almost-\\)?all\\>\\|\\(\\`\\| \\)-[[:alpha:]]*[aA]" switches)
> +       ;; Allow flags starting with a single dash
>         (string-match "\\(\\`\\| \\)-[[:alpha:]]*l" switches)
> +       ;; Disallow recursive flag
>         (not (string-match
> -	     "--recursive\\>\\|\\(\\`\\| \\)-[[:alpha:]]*R" switches))
> +	     "\\(\\`\\| \\)-[[:alpha:]]*R" switches))
> +       ;; Disallow long flags.
> +       (not (string-match "--\\w\\{2,\\}"))

This contradicts the first string-match.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





  reply	other threads:[~2014-12-10 14:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-26 12:03 bug#19192: 25.0.50; TRAMP uses `dired-listing-switches' for ftp-connection Rasmus
2014-11-26 13:35 ` Michael Albinus
2014-11-26 23:45   ` Rasmus
2014-11-29 10:42     ` Michael Albinus
2014-11-29 11:16       ` Rasmus
2014-11-29 12:21         ` Rasmus
2014-11-29 12:47           ` Rasmus
2014-11-30 11:10         ` Michael Albinus
2014-11-30 12:43           ` Rasmus
2014-12-09 13:56             ` Michael Albinus
2014-12-10 13:16               ` Rasmus
2014-12-10 14:15                 ` Andreas Schwab [this message]
2014-12-10 15:28                   ` Rasmus
2014-12-10 16:49                     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmlhmftwti.fsf@hawking.suse.de \
    --to=schwab@suse.de \
    --cc=19192@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.