FreeBSD Bugzilla – Attachment 8990 Details for
Bug 18619
ftp cmds.c thinks gateport is a short, it's a char *.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.27 KB, created by
dwmalone
on 2000-05-17 10:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dwmalone
Created:
2000-05-17 10:20:00 UTC
Size:
1.27 KB
patch
obsolete
>Index: cmds.c >=================================================================== >RCS file: /cvs/FreeBSD-CVS/src/usr.bin/ftp/cmds.c,v >retrieving revision 1.16 >diff -u -r1.16 cmds.c >--- cmds.c 1999/08/28 01:01:28 1.16 >+++ cmds.c 2000/05/17 09:11:15 >@@ -657,8 +657,8 @@ > } > pswitch(0); > } >- printf("Gate ftp: %s, server %s, port %d.\n", onoff(gatemode), >- *gateserver ? gateserver : "(none)", ntohs(gateport)); >+ printf("Gate ftp: %s, server %s, port %s.\n", onoff(gatemode), >+ *gateserver ? gateserver : "(none)", gateport); > printf("Passive mode: %s.\n", onoff(passivemode)); > printf("Mode: %s; Type: %s; Form: %s; Structure: %s.\n", > modename, typename, formname, structname); >@@ -889,7 +889,7 @@ > code = -1; > return; > } >- gateport = htons(port); >+ asprintf(&gateport, "%d", port); > } > strncpy(gsbuf, argv[1], sizeof(gsbuf) - 1); > gsbuf[sizeof(gsbuf) - 1] = '\0'; >@@ -902,8 +902,8 @@ > "Disabling gate-ftp mode - no gate-ftp server defined.\n"); > gatemode = 0; > } else { >- printf("Gate ftp: %s, server %s, port %d.\n", onoff(gatemode), >- *gateserver ? gateserver : "(none)", ntohs(gateport)); >+ printf("Gate ftp: %s, server %s, port %s.\n", onoff(gatemode), >+ *gateserver ? gateserver : "(none)", gateport); > } > code = gatemode; > }
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 18619
: 8990