]> andersk Git - openssh.git/commitdiff
- deraadt@cvs.openbsd.org 2001/07/09 07:04:53
authordjm <djm>
Sat, 14 Jul 2001 02:19:36 +0000 (02:19 +0000)
committerdjm <djm>
Sat, 14 Jul 2001 02:19:36 +0000 (02:19 +0000)
     [session.c sftp-int.c]
     correct type on last arg to execl(); nordin@cse.ogi.edu

ChangeLog
session.c
sftp-int.c

index 4bc2aef704caf26aa6f39c8b5d8c0641780ecd06..d3f0bd2dd2ae32016f650e99e7ccb436904e1638 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,9 @@
    - fgsch@cvs.openbsd.org 2001/07/09 05:58:47
      [ssh.c]
      Use getopt(3); markus@ ok.
+   - 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
 
 20010711
  - (djm) dirname(3) may modify its argument on glibc and other systems. 
index 8d7ef52ba2e9d6ca086aa577b2ecf77c9f81cd13..e0168042311e39c335f2cb877aa3b6eac99cb638 100644 (file)
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.98 2001/07/02 13:59:15 markus Exp $");
+RCSID("$OpenBSD: session.c,v 1.99 2001/07/09 07:04:53 deraadt Exp $");
 
 #include "ssh.h"
 #include "ssh1.h"
@@ -1499,7 +1499,7 @@ do_child(Session *s, const char *command)
 #ifdef LOGIN_NEEDS_TERM
                             s->term? s->term : "unknown",
 #endif
-                            "-p", "-f", "--", pw->pw_name, NULL);
+                            "-p", "-f", "--", pw->pw_name, (char *)NULL);
 
                        /* Login couldn't be executed, die. */
 
index aa3a8a02fdb9027cd0d26f8e486056fa8dc921e9..573fea1dff2ef76cc73667cfb82fa0bf852cef8c 100644 (file)
@@ -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));
This page took 0.048375 seconds and 5 git commands to generate.