FreeBSD Bugzilla – Attachment 12070 Details for
Bug 23526
Patch for bin/9529 (ftp completion cant handle spaces)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 876 bytes, created by
root
on 2000-12-13 17:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
root
Created:
2000-12-13 17:30:00 UTC
Size:
876 bytes
patch
obsolete
>Index: complete.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/ftp/complete.c,v >retrieving revision 1.5 >diff -b -u -r1.5 complete.c >--- complete.c 1999/08/28 01:01:30 1.5 >+++ complete.c 2000/12/13 17:21:11 >@@ -82,7 +82,7 @@ > int list; > StringList *words; > { >- char insertstr[MAXPATHLEN]; >+ char insertstr[2*MAXPATHLEN]; > char *lastmatch; > int i, j; > size_t matchlen, wordlen; >@@ -92,7 +92,12 @@ > return (CC_ERROR); /* no choices available */ > > if (words->sl_cur == 1) { /* only once choice available */ >- (void)strcpy(insertstr, words->sl_str[0]); >+ for (i=0,j=0;i<strlen(words->sl_str[0]);i++,j++){ >+ if (isspace(words->sl_str[0][i])) >+ insertstr[j++]='\\'; >+ insertstr[j]=words->sl_str[0][i]; >+ }; >+ insertstr[j]=0; > if (el_insertstr(el, insertstr + wordlen) == -1) > return (CC_ERROR); > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23526
: 12070