diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-01-25 21:42:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-01-25 21:42:34 +0000 |
commit | 771a2e77cb336c692df4e1bdb9b9bef0d04a6cbe (patch) | |
tree | de48ad80b5bff0168cb6bc551b728c8106e78631 /usr.bin/ftp/cmds.c | |
parent | 7069823eddd2868011e847cc10ce82214a4bf533 (diff) |
split cd() into two pieces, whoever was here last did a bad job
Diffstat (limited to 'usr.bin/ftp/cmds.c')
-rw-r--r-- | usr.bin/ftp/cmds.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c index 4719ed4e612..1f14aff0b29 100644 --- a/usr.bin/ftp/cmds.c +++ b/usr.bin/ftp/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.9 1996/12/24 21:22:10 deraadt Exp $ */ +/* $OpenBSD: cmds.c,v 1.10 1997/01/25 21:42:27 deraadt Exp $ */ /* $NetBSD: cmds.c,v 1.8 1995/09/08 01:06:05 tls Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: cmds.c,v 1.9 1996/12/24 21:22:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cmds.c,v 1.10 1997/01/25 21:42:27 deraadt Exp $"; #endif #endif /* not lint */ @@ -1075,7 +1075,7 @@ setdebug(argc, argv) * on remote machine. */ int -cd(argc, argv) +mcd(argc, argv) int argc; char *argv[]; { @@ -1083,7 +1083,7 @@ cd(argc, argv) if (argc < 2 && !another(&argc, &argv, "remote-directory")) { printf("usage: %s remote-directory\n", argv[0]); code = -1; - return; + return (-1); } if (command("CWD %s", argv[1]) == ERROR) { if (code == 500) { @@ -1098,6 +1098,14 @@ cd(argc, argv) return(0); } +void +cd(argc, argv) + int argc; + char *argv[]; +{ + mcd(argc, argv); +} + /* * Set current working directory * on local machine. |