-/* $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 $ */
/*
#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 */
* on remote machine.
*/
int
-cd(argc, argv)
+mcd(argc, argv)
int argc;
char *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) {
return(0);
}
+void
+cd(argc, argv)
+ int argc;
+ char *argv[];
+{
+ mcd(argc, argv);
+}
+
/*
* Set current working directory
* on local machine.
-/* $OpenBSD: extern.h,v 1.4 1996/12/17 02:11:46 michaels Exp $ */
+/* $OpenBSD: extern.h,v 1.5 1997/01/25 21:42:30 deraadt Exp $ */
/* $NetBSD: extern.h,v 1.4 1995/09/08 01:06:19 tls Exp $ */
/*-
void account __P((int, char **));
int another __P((int *, char ***, char *));
void blkfree __P((char **));
-int cd __P((int, char **));
+void cd __P((int, char **));
+int mcd __P((int, char **));
void cdup __P((int, char **));
void changetype __P((int, int));
void cmdabort __P(());
-/* $OpenBSD: main.c,v 1.14 1997/01/15 23:42:31 millert Exp $ */
+/* $OpenBSD: main.c,v 1.15 1997/01/25 21:42:33 deraadt Exp $ */
/*
* Copyright (c) 1985, 1989, 1993, 1994
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.14 1997/01/15 23:42:31 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.15 1997/01/25 21:42:33 deraadt Exp $";
#endif
#endif /* not lint */
xargc = 2;
tmp = verbose;
verbose = -1;
- if (cd(xargc, xargv) == 0) {
+ if (mcd(xargc, xargv) == 0) {
verbose = tmp;
goto CLINE_CD;
}