FreeBSD Bugzilla – Attachment 8701 Details for
Bug 18103
[PATCH] FTP_PASSIVE_MODE and libftpio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 694 bytes, created by
efutch
on 2000-04-20 04:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
efutch
Created:
2000-04-20 04:20:00 UTC
Size:
694 bytes
patch
obsolete
>Index: src/lib/libftpio/ftpio.c >=================================================================== >RCS file: /home/ncvs/src/lib/libftpio/ftpio.c,v >retrieving revision 1.33 >diff -u -r1.33 ftpio.c >--- src/lib/libftpio/ftpio.c 1999/09/28 13:33:13 1.33 >+++ src/lib/libftpio/ftpio.c 2000/04/20 02:28:20 >@@ -498,8 +498,13 @@ > static void > check_passive(FILE *fp) > { >- if (getenv("FTP_PASSIVE_MODE")) >- ftpPassive(fp, TRUE); >+ char *cp; >+ cp = getenv("FTP_PASSIVE_MODE"); >+ printf("debug: cp(%s)",cp); >+ if (!cp || (cp && (strncmp(cp,"NO",2)==0))) >+ ftpPassive(fp, FALSE); >+ if (cp && (strncmp(cp,"YES",3)==0)) >+ ftpPassive(fp, TRUE); > } > > static void
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 18103
: 8701