diff options
author | Damien Miller <djm@mindrot.org> | 2001-07-14 12:19:36 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-07-14 12:19:36 +1000 |
commit | efb1edfc7fb393b8de2f50efa77c006f3bfe5394 (patch) | |
tree | 022862ca6ba02c141299c8aff994f19512ec48e1 /sftp-int.c | |
parent | f4614450d10eaef8c256a561e9b7887c31333e09 (diff) | |
download | openssh-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); |