91#ifdef SPAM_PROBLEM_HAS_BEEN_SOLVED_FOREVER
129 if (cip->
user[0] ==
'\0')
136 if (cip->
pass[0] ==
'\0') {
149 for (firstTime = 1, fwloggedin = 0; ; ) {
158 if (firstTime != 0) {
315 if ((anonLogin == 0) && (cip->
leavePass == 0))
327 if ((anonLogin == 0) && (cip->
leavePass == 0))
340 char buf[256], *feat;
346 while (feat !=
NULL) {
349 if (
ISTREQ(feat,
"type")) {
351 }
else if (
ISTREQ(feat,
"size")) {
353 }
else if (
ISTREQ(feat,
"modify")) {
355 }
else if (
ISTREQ(feat,
"UNIX.mode")) {
357 }
else if (
ISTREQ(feat,
"UNIX.owner")) {
359 }
else if (
ISTREQ(feat,
"UNIX.group")) {
361 }
else if (
ISTREQ(feat,
"perm")) {
363 }
else if (
ISTREQ(feat,
"UNIX.uid")) {
365 }
else if (
ISTREQ(feat,
"UNIX.gid")) {
367 }
else if (
ISTREQ(feat,
"UNIX.gid")) {
475 }
else if (
ISTRNCMP(
cp,
"Compliance Level: ", 18) == 0) {
606 dlim =
dst + dsize - 1;
607 slim =
src + howmuch;
614 if (
src < slim + 2) {
619 if ((
sscanf(
h,
"%x", &hc) >= 0) && (hc != 0xeeff)) {
621 *(
unsigned char *)
dst = (
unsigned char) hc;
664 if (wantnlst !=
NULL)
670#ifdef HAVE_STRCASECMP
699 for (hstart =
cp; ;
cp++) {
705 }
else if ((*
cp ==
'\0') || (*
cp ==
'/')) {
749 if ((*hend ==
'\0') || ((*hend ==
'/') && (hend[1] ==
'\0'))) {
754 lastslash =
strrchr(hend,
'/');
755 if (lastslash ==
NULL) {
761 if ((semi =
strchr(lastslash + 1,
';')) !=
NULL) {
763#ifdef HAVE_STRCASECMP
774 if (wantnlst !=
NULL) {
784 if (
strcmp(semi,
"type=i") == 0) {
787 }
else if (
strcmp(semi,
"type=a") == 0) {
790 }
else if (
strcmp(semi,
"type=b") == 0) {
793 }
else if (
strcmp(semi,
"type=d") == 0) {
794 if (wantnlst !=
NULL) {
806 for (parsestr = hend; (tok =
strtok(parsestr,
"/")) !=
NULL; parsestr =
NULL) {
830 if (cip->
host[0] ==
'\0') {
847 PrintF(cip,
"Retry Number: %d\n", dials);
884 PrintF(cip,
"Cannot recover from miscellaneous open error %d.\n",
result);
892 elapsed = (
int) (t1 - t0);
893 if (elapsed < cip->redialDelay) {
894 PrintF(cip,
"Sleeping %u seconds.\n",
922 if (cip->
host[0] ==
'\0') {
940 PrintF(cip,
"Retry Number: %d\n", dials);
958 PrintF(cip,
"Cannot recover from miscellaneous open error %d.\n",
result);
966 elapsed = (
int) (t1 - t0);
967 if (elapsed < cip->redialDelay) {
968 PrintF(cip,
"Sleeping %u seconds.\n",
1131 SOCKSinit(
"libncftp");
int strcmp(const char *String1, const char *String2)
char * strstr(char *String1, char *String2)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strtok(char *String, const char *Delimiters)
char * strchr(const char *String, int ch)
#define STRNCPY(dst, src, n)
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLfloat GLfloat GLfloat GLfloat h
_Check_return_ _CRTIMP FILE *__cdecl _fdopen(_In_ int _FileHandle, _In_z_ const char *_Mode)
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
void InitLineList(LineListPtr list)
void DisposeLineListContents(LineListPtr list)
LinePtr AddLine(LineListPtr list, const char *buf1)
int FTPGetCWD(const FTPCIPtr cip, char *const newCwd, const size_t newCwdSize)
void CloseDataConnection(const FTPCIPtr cip)
int SetLinger(const FTPCIPtr cip, int sockfd, int onoff)
int GetOurHostName(char *host, size_t siz)
void CloseControlConnection(const FTPCIPtr cip)
int OpenControlConnection(const FTPCIPtr cip, char *host, unsigned int port)
static void FTPDeallocateHost(const FTPCIPtr cip)
int FTPOpenHostNoLogin(const FTPCIPtr cip)
void FTPShutdownHost(const FTPCIPtr cip)
int FTPInitConnectionInfo(const FTPLIPtr lip, const FTPCIPtr cip, size_t bufSize)
int FTPQueryFeatures(const FTPCIPtr cip)
static void FTPExamineMlstFeatures(const FTPCIPtr cip, const char *features)
void FTPInitializeOurHostName(const FTPLIPtr lip)
int FTPCloseHost(const FTPCIPtr cip)
int FTPOpenHost(const FTPCIPtr cip)
static int FTPAllocateHost(const FTPCIPtr cip)
void FTPInitializeAnonPassword(const FTPLIPtr lip)
int FTPRebuildConnectionInfo(const FTPLIPtr lip, const FTPCIPtr cip)
int FTPLoginHost(const FTPCIPtr cip)
int FTPDecodeURL(const FTPCIPtr cip, char *const url, LineListPtr cdlist, char *const fn, const size_t fnsize, int *const xtype, int *const wantnlst)
int FTPInitLibrary(const FTPLIPtr lip)
void URLCopyToken(char *dst, size_t dsize, const char *src, size_t howmuch)
void PrintF(const FTPCIPtr cip, const char *const fmt,...)
#define kClosedFileDescriptor
void DisposeSReadlineInfo(SReadlineInfo *)
int InitSReadlineInfo(SReadlineInfo *, int, char *, size_t, int, int)
#define kDefaultCtrlTimeout
#define kFirewallUserAtSite
#define kFirewallLoginThenUserAtSite
int RCmd(const FTPCIPtr, ResponsePtr, const char *,...)
#define kFirewallSiteSite
#define kFirewallNotInUse
#define kServerTypeNcFTPd
#define kDefaultRedialDelay
#define kCommandAvailable
#define kFirewallUserAtUserPassAtPass
#define kServerTypeWuFTPd
void DoneWithResponse(const FTPCIPtr, ResponsePtr)
#define kRedialStatusDialing
void FTPAbortDataTransfer(const FTPCIPtr cip)
void GetUsrName(char *, size_t)
#define kDefaultConnTimeout
#define kRedialStatusSleeping
#define kDefaultXferTimeout
#define kServerTypeNetWareFTP
void ReInitResponse(const FTPCIPtr, ResponsePtr)
#define kCommandAvailabilityUnknown
#define kFirewallFwuAtSiteFwpUserPass
#define kFirewallUserAtSiteFwuPassFwp
#define kCommandNotAvailable
#define kFirewallOpenSite
#define kFirewallLastType
ResponsePtr InitResponse(void)
#define NoGetPassphraseProc
#define kDefaultAbortTimeout
#define kErrConnectRetryableErr
#define kErrConnectMiscErr
#define kErrBadRemoteUser
#define kErrRemoteHostClosedConnection
#define kErrHostDisconnectedDuringLogin
#define kErrConnectRefused
#define kErrBadRemoteUserOrPassword
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
unsigned int firewallPort
FTPPrintResponseProc printResponseProc
int doNotGetStartingWorkingDirectory
char * startingWorkingDirectory
LineList lastFTPCmdResultLL
FTPProgressMeterProc progress
unsigned int abortTimeout
const char * asciiFilenameExtensions
FTPGetPassphraseProc passphraseProc
FTPConnectMessageProc onConnectMsgProc
FTPRedialStatusProc redialStatusProc
FTPLoginMessageProc onLoginMsgProc
char defaultAnonPassword[80]
static GLenum _GLUfuncptr fn