aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ncftp
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-04 06:11:39 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-04 06:11:39 +0000
commit7a9dedf90d9dcaa5b05257142a9cbba0b17c4393 (patch)
treee9ba6abc4442a17e4b7e1bcf1ef95c8878b344d3 /usr.bin/ncftp
parent413c931760b054d807783254d796784267ad4c60 (diff)
Notes
Diffstat (limited to 'usr.bin/ncftp')
-rw-r--r--usr.bin/ncftp/cmds.c3
-rw-r--r--usr.bin/ncftp/ftp.c2
-rw-r--r--usr.bin/ncftp/main.c2
-rw-r--r--usr.bin/ncftp/sys.h7
4 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/ncftp/cmds.c b/usr.bin/ncftp/cmds.c
index 8b82152d5927..d968467e7039 100644
--- a/usr.bin/ncftp/cmds.c
+++ b/usr.bin/ncftp/cmds.c
@@ -1812,7 +1812,8 @@ to be the full name of your hostname.\n");
* the domain to the machine to get a full hostname.
*/
if (domain[0]) {
- (void) _Strncat(host, ".", size);
+ if (domain[0] != '.')
+ (void) _Strncat(host, ".", size);
(void) _Strncat(host, domain, size);
} else {
fprintf(stderr,
diff --git a/usr.bin/ncftp/ftp.c b/usr.bin/ncftp/ftp.c
index 71f7abe2b5c2..fe35d1a6272f 100644
--- a/usr.bin/ncftp/ftp.c
+++ b/usr.bin/ncftp/ftp.c
@@ -189,7 +189,7 @@ int hookup(char *host, unsigned int port)
continue;
}
}
- PERROR("hookup", "connect");
+ PERROR("hookup", host);
switch (errno) {
case ENETDOWN:
case ENETUNREACH:
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index 12832a0d1650..c2ab9332d2a1 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -7,7 +7,7 @@
#define _main_c_
-#define FTP_VERSION "1.8.5 (September 20, 1994)"
+#define FTP_VERSION "1.8.6 (October 30, 1994)"
/* #define BETA 1 */ /* If defined, it prints a little warning message. */
diff --git a/usr.bin/ncftp/sys.h b/usr.bin/ncftp/sys.h
index dde7c43e8b4d..2e7b5d2b03c4 100644
--- a/usr.bin/ncftp/sys.h
+++ b/usr.bin/ncftp/sys.h
@@ -22,10 +22,10 @@
^^^ "You need to use an ANSI C compiler. Try using gcc or acc." ^^^
# endif
# ifdef Solaris /* not predefined. */
-# define SYSV 1
+# ifndef SYSV
+# define SYSV 1
+# endif
# define System "Solaris"
-# undef __STDC__
-# define __STDC__ 0
# else
# define System "SunOS"
# ifndef RINDEX
@@ -308,7 +308,6 @@ extern int errno;
# ifndef BSD
# define BSD 43
# endif
-# define SIG_PARAMS (int sig, ...)
# define NO_UTIMEH 1
# define System "Apollo"
#endif