=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/sftp-int.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/ssh/Attic/sftp-int.c 2001/02/04 15:17:00 1.2 +++ src/usr.bin/ssh/Attic/sftp-int.c 2001/02/04 15:32:25 1.3 @@ -27,7 +27,7 @@ /* XXX: recursive operations */ #include "includes.h" -RCSID("$OpenBSD: sftp-int.c,v 1.2 2001/02/04 15:17:00 markus Exp $"); +RCSID("$OpenBSD: sftp-int.c,v 1.3 2001/02/04 15:32:25 stevesk Exp $"); #include "buffer.h" #include "xmalloc.h" @@ -130,10 +130,10 @@ int ret, status; char *shell; pid_t pid; - + if (!*args) args = NULL; - + if ((shell = getenv("SHELL")) == NULL) shell = _PATH_BSHELL; @@ -149,7 +149,7 @@ debug3("Executing %s", shell); ret = execl(shell, shell, NULL); } - fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell, + fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell, strerror(errno)); _exit(1); } @@ -161,7 +161,7 @@ error("Shell exited with status %d", WEXITSTATUS(status)); } -void +void local_do_ls(const char *args) { if (!args || !*args) @@ -367,7 +367,7 @@ if (get_pathname(&cp, path1)) return(-1); if (*path1 == NULL) { - error("You must specify a path after a %s command.", + error("You must specify a path after a %s command.", cmd); return(-1); } @@ -403,7 +403,7 @@ if (get_pathname(&cp, path1)) return(-1); if (*path1 == NULL) { - error("You must specify a path after a %s command.", + error("You must specify a path after a %s command.", cmd); return(-1); }