From 3323b84c30b9d7fa16a6065225cb7135e7a6bcd7 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Wed, 14 May 2008 22:26:15 -0700 Subject: [PATCH] Quoting tweaks. --- src/ChangeLog | 5 +++++ src/ftp.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 8bdd95cf..c2db9da9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-05-14 Micah Cowan + + * ftp.c (ftp_retrieve_list): Symlinks and other filenames + should be fully quoted. + 2008-04-16 Steven Schubiger * ftp.c: Use Gnulib's quote function for printing filenames and diff --git a/src/ftp.c b/src/ftp.c index 06e44931..59ba1c16 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1492,15 +1492,15 @@ The sizes do not match (local %s) -- retrieving.\n\n"), { logprintf (LOG_VERBOSE, _("\ Already have correct symlink %s -> %s\n\n"), - con->target, - quotearg_style (escape_quoting_style, f->linkto)); + quote (con->target), + quote (f->linkto)); dlthis = false; break; } } } logprintf (LOG_VERBOSE, _("Creating symlink %s -> %s\n"), - con->target, quotearg_style (escape_quoting_style, f->linkto)); + quote (con->target), quote (f->linkto)); /* Unlink before creating symlink! */ unlink (con->target); if (symlink (f->linkto, con->target) == -1) @@ -1531,7 +1531,7 @@ Already have correct symlink %s -> %s\n\n"), break; case FT_UNKNOWN: logprintf (LOG_NOTQUIET, _("%s: unknown/unsupported file type.\n"), - quotearg_style (escape_quoting_style, f->name)); + quote (f->name)); break; } /* switch */ -- 2.39.2