diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2015-01-20 23:14:00 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-26 23:58:53 +1100 |
commit | 087266ec33c76fc8d54ac5a19efacf2f4a4ca076 (patch) | |
tree | 71f57bb41b61561ebaa13026d8dc5d04d9829b00 /sftp-server.c | |
parent | 57e783c8ba2c0797f93977e83b2a8644a03065d8 (diff) |
upstream commit
Reduce use of <sys/param.h> and transition to <limits.h>
throughout. ok djm markus
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sftp-server.c b/sftp-server.c index 7d09504d9..4f735cd93 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp-server.c,v 1.104 2015/01/14 13:54:13 djm Exp $ */ | 1 | /* $OpenBSD: sftp-server.c,v 1.105 2015/01/20 23:14:00 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000-2004 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -17,8 +17,8 @@ | |||
17 | 17 | ||
18 | #include "includes.h" | 18 | #include "includes.h" |
19 | 19 | ||
20 | #include <sys/param.h> /* MIN */ | ||
20 | #include <sys/types.h> | 21 | #include <sys/types.h> |
21 | #include <sys/param.h> | ||
22 | #include <sys/stat.h> | 22 | #include <sys/stat.h> |
23 | #ifdef HAVE_SYS_TIME_H | 23 | #ifdef HAVE_SYS_TIME_H |
24 | # include <sys/time.h> | 24 | # include <sys/time.h> |
@@ -1055,7 +1055,7 @@ process_readdir(u_int32_t id) | |||
1055 | send_status(id, SSH2_FX_FAILURE); | 1055 | send_status(id, SSH2_FX_FAILURE); |
1056 | } else { | 1056 | } else { |
1057 | struct stat st; | 1057 | struct stat st; |
1058 | char pathname[MAXPATHLEN]; | 1058 | char pathname[PATH_MAX]; |
1059 | Stat *stats; | 1059 | Stat *stats; |
1060 | int nstats = 10, count = 0, i; | 1060 | int nstats = 10, count = 0, i; |
1061 | 1061 | ||
@@ -1150,7 +1150,7 @@ process_rmdir(u_int32_t id) | |||
1150 | static void | 1150 | static void |
1151 | process_realpath(u_int32_t id) | 1151 | process_realpath(u_int32_t id) |
1152 | { | 1152 | { |
1153 | char resolvedname[MAXPATHLEN]; | 1153 | char resolvedname[PATH_MAX]; |
1154 | char *path; | 1154 | char *path; |
1155 | int r; | 1155 | int r; |
1156 | 1156 | ||
@@ -1238,7 +1238,7 @@ static void | |||
1238 | process_readlink(u_int32_t id) | 1238 | process_readlink(u_int32_t id) |
1239 | { | 1239 | { |
1240 | int r, len; | 1240 | int r, len; |
1241 | char buf[MAXPATHLEN]; | 1241 | char buf[PATH_MAX]; |
1242 | char *path; | 1242 | char *path; |
1243 | 1243 | ||
1244 | if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) | 1244 | if ((r = sshbuf_get_cstring(iqueue, &path, NULL)) != 0) |