Bugzilla – Attachment 265 Details for
Bug 517
bad "put" arg parsing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for bux - minor fixes
sftp-int.c.patch (text/plain), 841 bytes, created by
Jason McCormick
on 2003-03-31 11:36:32 AEST
(
hide
)
Description:
Patch for bux - minor fixes
Filename:
MIME Type:
Creator:
Jason McCormick
Created:
2003-03-31 11:36:32 AEST
Size:
841 bytes
patch
obsolete
>--- sftp-int.c.org 2003-03-29 12:07:54.000000000 -0500 >+++ sftp-int.c 2003-03-30 13:26:25.000000000 -0500 >@@ -325,7 +325,7 @@ > { > const char *cp = *cpp, *end; > char quot; >- int i; >+ int i, j; > > cp += strspn(cp, WHITESPACE); > if (!*cp) { >@@ -338,7 +338,27 @@ > if (*cp == '\"' || *cp == '\'') { > quot = *cp++; > >- end = strchr(cp, quot); >+ /* This block finds the 'bare' quote that >+ denotes the end of the filename and checks >+ to make sure that it's not an escaped quote >+ that should be part of the filename */ >+ end = cp; >+ j=0; >+ while(j <= strlen(end)){ >+ if(*(end + j) == quot){ >+ end += j; >+ break; >+ } >+ if(*(end + j) == '\\'){ >+ j += 2; >+ } else { >+ j++; >+ } >+ } >+ >+ if(j - 1 == strlen(cp)) >+ end = NULL; >+ > if (end == NULL) { > error("Unterminated quote"); > goto fail;
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 517
:
257
|
258
|
259
|
260
|
261
|
264
|
265
|
299
|
302