diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-15 04:57:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-09-15 04:57:55 +0000 |
commit | 888e160939afae5514e1c6d0a7f2dc2d295c0fc5 (patch) | |
tree | c15be327a8284ae58d38a4a3351257ed63b149b8 /usr.bin | |
parent | c31301fd4d734da2881f9ecd649fe79a3755c6f3 (diff) |
Don't error out if the remote server doesn't support the "MDTM"
command. Based on a patch from Martin Fredriksson <martin@netman.se>.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/util.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c index 3f6ba60fdec..6d63b5ff6f6 100644 --- a/usr.bin/ftp/util.c +++ b/usr.bin/ftp/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.14 1997/09/11 01:55:16 millert Exp $ */ +/* $OpenBSD: util.c,v 1.15 1997/09/15 04:57:54 millert Exp $ */ /* $NetBSD: util.c,v 1.12 1997/08/18 10:20:27 lukem Exp $ */ /* @@ -35,7 +35,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: util.c,v 1.14 1997/09/11 01:55:16 millert Exp $"; +static char rcsid[] = "$OpenBSD: util.c,v 1.15 1997/09/15 04:57:54 millert Exp $"; #endif /* not lint */ /* @@ -547,8 +547,10 @@ remotemodtime(file, noisy) { int overbose; time_t rtime; + int ocode; overbose = verbose; + ocode = code; rtime = -1; if (debug == 0) verbose = -1; @@ -575,6 +577,8 @@ remotemodtime(file, noisy) fputc('\n', ttyout); } verbose = overbose; + if (rtime == -1) + code = ocode; return (rtime); } |