summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-07-14 12:19:36 +1000
committerDamien Miller <djm@mindrot.org>2001-07-14 12:19:36 +1000
commitefb1edfc7fb393b8de2f50efa77c006f3bfe5394 (patch)
tree022862ca6ba02c141299c8aff994f19512ec48e1 /sftp-int.c
parentf4614450d10eaef8c256a561e9b7887c31333e09 (diff)
downloadopenssh-git-efb1edfc7fb393b8de2f50efa77c006f3bfe5394.tar.gz
- deraadt@cvs.openbsd.org 2001/07/09 07:04:53
[session.c sftp-int.c] correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-int.c b/sftp-int.c
index aa3a8a02..573fea1d 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -26,7 +26,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.37 2001/06/23 15:12:20 itojun Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.38 2001/07/09 07:04:53 deraadt Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -163,10 +163,10 @@ local_do_shell(const char *args)
/* XXX: child has pipe fds to ssh subproc open - issue? */
if (args) {
debug3("Executing %s -c \"%s\"", shell, args);
- execl(shell, shell, "-c", args, NULL);
+ execl(shell, shell, "-c", args, (char *)NULL);
} else {
debug3("Executing %s", shell);
- execl(shell, shell, NULL);
+ execl(shell, shell, (char *)NULL);
}
fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
strerror(errno));