aboutsummaryrefslogtreecommitdiff
path: root/ftp/ncftp1
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-08-07 00:27:47 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-08-07 00:27:47 +0000
commit43b921423509a8cf41d38cd29d597b5edbd14bc3 (patch)
tree923179546cc51ec92fbb322c95dad4693184216b /ftp/ncftp1
parent2bff30e0da366ea7a85e311e7f868c26ea228c92 (diff)
downloadports-43b921423509a8cf41d38cd29d597b5edbd14bc3.tar.gz
ports-43b921423509a8cf41d38cd29d597b5edbd14bc3.zip
Notes
Diffstat (limited to 'ftp/ncftp1')
-rw-r--r--ftp/ncftp1/files/patch-cmds.c24
-rw-r--r--ftp/ncftp1/files/patch-ftp.c34
-rw-r--r--ftp/ncftp1/files/patch-main.c22
-rw-r--r--ftp/ncftp1/files/patch-set.c29
4 files changed, 107 insertions, 2 deletions
diff --git a/ftp/ncftp1/files/patch-cmds.c b/ftp/ncftp1/files/patch-cmds.c
new file mode 100644
index 000000000000..1a9cca078f50
--- /dev/null
+++ b/ftp/ncftp1/files/patch-cmds.c
@@ -0,0 +1,24 @@
+--- cmds.c.orig 2014-08-06 20:08:22.000000000 -0400
++++ cmds.c 2014-08-06 20:09:04.000000000 -0400
+@@ -90,7 +90,7 @@
+ extern struct servent serv;
+ extern struct cmd cmdtab[];
+ extern struct userinfo uinfo;
+-extern FILE *cin, *cout, *logf;
++extern FILE *cin, *cout, *logfile;
+ extern int Optind;
+ extern char *Optarg;
+ extern int Optind;
+@@ -1352,9 +1352,9 @@
+ if (connected)
+ (void) disconnect(0, NULL);
+ rcode = WriteRecentSitesFile();
+- if (logf != NULL) {
+- (void) fclose(logf);
+- logf = NULL;
++ if (logfile != NULL) {
++ (void) fclose(logfile);
++ logfile = NULL;
+ }
+ return rcode;
+ } /* close_up_shop */
diff --git a/ftp/ncftp1/files/patch-ftp.c b/ftp/ncftp1/files/patch-ftp.c
new file mode 100644
index 000000000000..2f1b3559decb
--- /dev/null
+++ b/ftp/ncftp1/files/patch-ftp.c
@@ -0,0 +1,34 @@
+--- ftp.c.orig 2014-08-06 20:08:32.000000000 -0400
++++ ftp.c 2014-08-06 20:09:24.000000000 -0400
+@@ -89,7 +89,7 @@
+ */
+
+ /* ftp.c externs */
+-extern FILE *logf;
++extern FILE *logfile;
+ extern string anon_password;
+ extern longstring cwd, lcwd;
+ extern Hostname hostname;
+@@ -365,9 +365,9 @@
+ #endif
+
+ /* Save which sites we opened to the user's logfile. */
+- if (logf != NULL) {
++ if (logfile != NULL) {
+ (void) time(&now);
+- (void) fprintf(logf, "%s opened at %s",
++ (void) fprintf(logfile, "%s opened at %s",
+ hostname,
+ ctime(&now));
+ }
+@@ -887,8 +887,8 @@
+ } else
+ (void) Strncpy(fullRemote, remote);
+
+- if (logf != NULL) {
+- (void) fprintf(logf, "\t-> \"%s\" %s, %s\n",
++ if (logfile != NULL) {
++ (void) fprintf(logfile, "\t-> \"%s\" %s, %s\n",
+ fullRemote, direction, bsstr);
+ }
+ #ifdef SYSLOG
diff --git a/ftp/ncftp1/files/patch-main.c b/ftp/ncftp1/files/patch-main.c
index 05f6711e416e..f69b6b125c81 100644
--- a/ftp/ncftp1/files/patch-main.c
+++ b/ftp/ncftp1/files/patch-main.c
@@ -1,5 +1,14 @@
---- main.c.orig Sun Oct 29 19:17:55 1995
-+++ main.c Tue Feb 18 19:11:56 1997
+--- main.c.orig 1995-10-29 22:17:55.000000000 -0500
++++ main.c 2014-08-06 20:07:56.000000000 -0400
+@@ -69,7 +69,7 @@
+ string pager; /* program to browse text files */
+ string version = FTP_VERSION;
+ long eventnumber; /* number of commands we've done */
+-FILE *logf = NULL; /* log user activity */
++FILE *logfile = NULL; /* log user activity */
+ longstring logfname; /* name of the logfile */
+ long logsize = 4096L; /* max log size. 0 == no limit */
+ int percent_flags; /* "%" in prompt string? */
@@ -200,7 +200,7 @@
ansi_escapes = 0;
if ((cp = getenv("TERM")) != NULL) {
@@ -9,3 +18,12 @@
ansi_escapes = 1;
}
#endif
+@@ -334,7 +334,7 @@
+ cpend = 0; /* no pending replies */
+
+ if (*logfname)
+- logf = fopen (logfname, "a");
++ logfile = fopen (logfname, "a");
+
+
+ /* The user specified a host, maybe in 'colon-mode', on the command
diff --git a/ftp/ncftp1/files/patch-set.c b/ftp/ncftp1/files/patch-set.c
new file mode 100644
index 000000000000..be0a0b1295ee
--- /dev/null
+++ b/ftp/ncftp1/files/patch-set.c
@@ -0,0 +1,29 @@
+--- set.c.orig 2014-08-06 20:08:41.000000000 -0400
++++ set.c 2014-08-06 20:09:47.000000000 -0400
+@@ -43,7 +43,7 @@
+ extern string pager, anon_password, prompt;
+ extern str32 curtypename;
+ extern long logsize;
+-extern FILE *logf;
++extern FILE *logfile;
+ extern longstring rcname, logfname, lcwd;
+ extern int auto_binary, ansi_escapes, debug;
+ extern int mprompt, remote_is_unix, verbose;
+@@ -131,13 +131,13 @@
+
+ void set_log(char *fname, int unset)
+ {
+- if (logf) {
+- (void) fclose(logf);
+- logf = NULL;
++ if (logfile) {
++ (void) fclose(logfile);
++ logfile = NULL;
+ }
+ if (!unset && fname) {
+ (void) Strncpy(logfname, fname);
+- logf = fopen (LocalDotPath(logfname), "a");
++ logfile = fopen (LocalDotPath(logfname), "a");
+ }
+ } /* set_log */
+