This patch fixes a problem with sftpc when chdir'ing into a directory which has spaces in its name. To use: cd sftpd-1.46 patch < sftpc.cd-spaces.patch make (then copy the 'sftpc' binary over the previous version) Index: sftpc.cpp =================================================================== RCS file: /home/scott/cvsroot/sftpd/sftpc.cpp,v retrieving revision 1.51 diff -c -r1.51 sftpc.cpp *** sftpc.cpp 22 Sep 2000 10:19:09 -0000 1.51 --- sftpc.cpp 21 Feb 2002 19:01:12 -0000 *************** *** 1950,1956 **** } CMD("cd") { if (tok >= 1) { ! checkedRequest(CMD_CWD, arg1); } else { checkedRequest(CMD_CWD); // cd to home directory --- 1950,1956 ---- } CMD("cd") { if (tok >= 1) { ! checkedRequest(CMD_CWD, command + tok.offset(1)); // issues with spaces.. } else { checkedRequest(CMD_CWD); // cd to home directory