Jeez! Delete hard-coded vt100 sequences. This could be done using termcap,
but why bother?
This commit is contained in:
parent
590fa669c8
commit
d5d6fac25a
@ -1,8 +1,8 @@
|
||||
/* $NetBSD: ftpio.c,v 1.43 2002/10/17 03:31:35 christos Exp $ */
|
||||
/* $NetBSD: ftpio.c,v 1.44 2002/10/17 03:34:20 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: ftpio.c,v 1.43 2002/10/17 03:31:35 christos Exp $");
|
||||
__RCSID("$NetBSD: ftpio.c,v 1.44 2002/10/17 03:34:20 christos Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -219,14 +219,11 @@ expect(int fd, const char *str, int *ftprc)
|
||||
int
|
||||
ftp_cmd(const char *cmd, const char *expectstr)
|
||||
{
|
||||
int rc=0, verbose_ftp=0;
|
||||
int rc=0;
|
||||
int len;
|
||||
|
||||
if (Verbose)
|
||||
verbose_ftp=1;
|
||||
|
||||
if (verbose_ftp)
|
||||
fprintf(stderr, "\n[1mftp> %s[0m", cmd);
|
||||
if (Verboase)
|
||||
fprintf(stderr, "\nftp> %s", cmd);
|
||||
|
||||
fflush(stdout);
|
||||
len = write(ftpio.command, cmd, strlen(cmd));
|
||||
@ -304,7 +301,7 @@ setupCoproc(const char *base)
|
||||
setbuf(stdout, NULL);
|
||||
|
||||
if (Verbose)
|
||||
fprintf(stderr, "[1mftp -detv %s[0m\n", base);
|
||||
fprintf(stderr, "ftp -detv %s\n", base);
|
||||
rc1 = execlp(FTP_CMD, argv0, "-detv", base, NULL);
|
||||
warn("setupCoproc: execlp() failed");
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user