GNU bug report logs - #19192
25.0.50; TRAMP uses `dired-listing-switches' for ftp-connection

Previous Next

Package: emacs;

Reported by: Rasmus <rasmus <at> gmx.us>

Date: Wed, 26 Nov 2014 12:05:02 UTC

Severity: normal

Found in version 25.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Andreas Schwab <schwab <at> suse.de>
To: Rasmus <rasmus <at> gmx.us>
Cc: 19192 <at> debbugs.gnu.org, michael.albinus <at> gmx.de
Subject: Re: bug#19192: 25.0.50;
 TRAMP uses `dired-listing-switches' for ftp-connection
Date: Wed, 10 Dec 2014 15:15:53 +0100
Rasmus <rasmus <at> 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 <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 10 years and 169 days ago.

Previous Next


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