From 0a7e354f646169bd53ee85ab72f17ccf5ad81570 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Thu, 15 Feb 2001 03:50:49 +0000 Subject: - replaced PATH_MAX in sftp-int.c w/ MAXPATHLEN. --- ChangeLog | 33 +++++++++++++++++---------------- sftp-int.c | 2 +- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7da95d3c4..2a0b9cb30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,23 +20,24 @@ ssh-keygen.c sshd.8] PermitRootLogin={yes,without-password,forced-commands-only,no} (before this change, root could login even if PermitRootLogin==no) - - deraadt@cvs.openbsd.org 2001/02/12 22:56:09 + - deraadt@cvs.openbsd.org 2001/02/12 22:56:09 [clientloop.c packet.c ssh-keyscan.c] deal with EAGAIN/EINTR selects which were skipped - - markus@cvs.openssh.org 2001/02/13 22:49:40 - [auth1.c auth2.c] - setproctitle(user) only if getpwnam succeeds - - markus@cvs.openbsd.org 2001/02/12 23:26:20 - [sshd.c] - missing memset; from solar@openwall.com - - stevesk@cvs.openbsd.org 2001/02/12 20:53:33 - [sftp-int.c] - lumask now works with 1 numeric arg; ok markus@, djm@ - - djm@cvs.openbsd.org 2001/02/14 9:46:03 - [sftp-client.c sftp-int.c sftp.1] - Fix and document 'preserve modes & times' option ('-p' flag in sftp); - ok markus@ - + - markus@cvs.openssh.org 2001/02/13 22:49:40 + [auth1.c auth2.c] + setproctitle(user) only if getpwnam succeeds + - markus@cvs.openbsd.org 2001/02/12 23:26:20 + [sshd.c] + missing memset; from solar@openwall.com + - stevesk@cvs.openbsd.org 2001/02/12 20:53:33 + [sftp-int.c] + lumask now works with 1 numeric arg; ok markus@, djm@ + - djm@cvs.openbsd.org 2001/02/14 9:46:03 + [sftp-client.c sftp-int.c sftp.1] + Fix and document 'preserve modes & times' option ('-p' flag in sftp); + ok markus@ + - replaced PATH_MAX in sftp-int.c w/ MAXPATHLEN. + 20010214 - (djm) Don't try to close PAM session or delete credentials if the session has not been open or credentials not set. Based on patch from @@ -3964,4 +3965,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.769 2001/02/15 03:22:45 mouring Exp $ +$Id: ChangeLog,v 1.770 2001/02/15 03:50:49 mouring Exp $ diff --git a/sftp-int.c b/sftp-int.c index fd649822a..d0914dde8 100644 --- a/sftp-int.c +++ b/sftp-int.c @@ -443,7 +443,7 @@ parse_dispatch_command(int in, int out, const char *cmd, char **pwd) int pflag, cmdnum; unsigned long n_arg; Attrib a, *aa; - char path_buf[PATH_MAX]; + char path_buf[MAXPATHLEN]; path1 = path2 = NULL; cmdnum = parse_args(&cmd, &pflag, &n_arg, &path1, &path2); -- cgit v1.2.3