diff options
author | pst <pst@FreeBSD.org> | 1994-10-07 07:48:18 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1994-10-07 07:48:18 +0000 |
commit | c4c79c211eaabb6fb1e467c75c520919a77e599c (patch) | |
tree | c9c79bc7861e27f8baba2b84f7dfd4e363aa8bbe /usr.bin/ncftp/cmds.c | |
parent | ee674f1a0d1f2ae8f99f23fd76f0de22b4fc029c (diff) | |
download | FreeBSD-src-c4c79c211eaabb6fb1e467c75c520919a77e599c.zip FreeBSD-src-c4c79c211eaabb6fb1e467c75c520919a77e599c.tar.gz |
Back out the fluff, leave the meat
Diffstat (limited to 'usr.bin/ncftp/cmds.c')
-rw-r--r-- | usr.bin/ncftp/cmds.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/ncftp/cmds.c b/usr.bin/ncftp/cmds.c index 9a9b0fc..8b82152 100644 --- a/usr.bin/ncftp/cmds.c +++ b/usr.bin/ncftp/cmds.c @@ -36,12 +36,14 @@ #include "copyright.h" /* cmds.c globals */ +#ifdef PASSIVEMODE +int passivemode; /* no reverse FTP connections */ +#endif int curtype; /* file transfer type */ char *typeabbrs = "abiet"; str32 curtypename; /* name of file transfer type */ int verbose; /* verbosity level of output */ int mprompt; /* interactively prompt on m* cmds */ -int passivemode; /* use passive ftp connections */ int debug; /* debugging level */ int options; /* used during socket creation */ int macnum; /* number of defined macros */ @@ -2057,6 +2059,10 @@ int show_version(int argc, char **argv) #ifdef NET_ERRNO_H DStrs[nDStrs++] = "NET_ERRNO_H"; #endif +#ifdef PASSIVEMODE + DStrs[nDStrs++] = "PASSIVEMODE"; +#endif + /* DONE with #ifdefs for now! */ @@ -2209,11 +2215,14 @@ int unimpl(int argc, char **argv) return (NOERR); } /* unimpl */ +#ifdef PASSIVEMODE int setpassive(int argc, char **argv) { passivemode = !passivemode; printf( "Passive mode %s.\n", (passivemode ? "ON" : "OFF") ); return NOERR; } +#endif + /* eof cmds.c */ |