mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
PSCP: fix filename in 'compound pathname' error.
In commit 2675f9578d
, when I added 'stripctrl' sanitisation to
many uses of filenames throughout the file transfer tools, I made a
copy-and-paste error in the message 'remote host sent a compound
pathname X / renaming local file to Y' in which both X and Y were the
same pathname. Oops. Fixed the other one.
This commit is contained in:
parent
7ab9a3f36d
commit
a759e303b0
2
pscp.c
2
pscp.c
@ -1813,7 +1813,7 @@ static void sink(const char *targ, const char *src)
|
||||
striptarget = stripslashes(act.name, true);
|
||||
if (striptarget != act.name) {
|
||||
with_stripctrl(sanname, act.name) {
|
||||
with_stripctrl(santarg, act.name) {
|
||||
with_stripctrl(santarg, striptarget) {
|
||||
tell_user(stderr, "warning: remote host sent a"
|
||||
" compound pathname '%s'", sanname);
|
||||
tell_user(stderr, " renaming local"
|
||||
|
Loading…
Reference in New Issue
Block a user