Index: src/putty/unix/uxsftp.c =================================================================== --- src/putty/unix/uxsftp.c (revision 3116) +++ src/putty/unix/uxsftp.c (working copy) @@ -205,6 +205,7 @@ ret = snew(WFile); ret->fd = fd; + ret->name = dupstr(name); if (size) { struct stat statbuf;