Bugzilla – Attachment 44 Details for
Bug 146
OpenSSH 3.1p1 will not build on BSD/OS 4.2/4.1/4.01
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sftp-int.c: cmds[] to sftp_cmds[]
sftp-int.patch (text/plain), 879 bytes, created by
Melvyn Sopacua
on 2002-03-15 05:17:11 AEDT
(
hide
)
Description:
sftp-int.c: cmds[] to sftp_cmds[]
Filename:
MIME Type:
Creator:
Melvyn Sopacua
Created:
2002-03-15 05:17:11 AEDT
Size:
879 bytes
patch
obsolete
>--- sftp-int.c.dist Wed Feb 13 04:10:33 2002 >+++ sftp-int.c Thu Mar 14 18:12:08 2002 >@@ -80,7 +80,7 @@ > const int n; > }; > >-const struct CMD cmds[] = { >+const struct CMD sftp_cmds[] = { > { "bye", I_QUIT }, > { "cd", I_CHDIR }, > { "chdir", I_CHDIR }, >@@ -520,19 +520,19 @@ > return(-1); > > /* Figure out which command we have */ >- for (i = 0; cmds[i].c; i++) { >- int cmdlen = strlen(cmds[i].c); >+ for (i = 0; sftp_cmds[i].c; i++) { >+ int cmdlen = strlen(sftp_cmds[i].c); > > /* Check for command followed by whitespace */ >- if (!strncasecmp(cp, cmds[i].c, cmdlen) && >+ if (!strncasecmp(cp, sftp_cmds[i].c, cmdlen) && > strchr(WHITESPACE, cp[cmdlen])) { > cp += cmdlen; > cp = cp + strspn(cp, WHITESPACE); > break; > } > } >- cmdnum = cmds[i].n; >- cmd = cmds[i].c; >+ cmdnum = sftp_cmds[i].n; >+ cmd = sftp_cmds[i].c; > > /* Special case */ > if (*cp == '!') {
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 146
: 44 |
47