diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.276 2015/01/14 20:05:27 djm Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.277 2015/01/16 06:40:12 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -60,6 +60,7 @@ | |||
60 | #include <stdlib.h> | 60 | #include <stdlib.h> |
61 | #include <string.h> | 61 | #include <string.h> |
62 | #include <unistd.h> | 62 | #include <unistd.h> |
63 | #include <limits.h> | ||
63 | 64 | ||
64 | #include "openbsd-compat/sys-queue.h" | 65 | #include "openbsd-compat/sys-queue.h" |
65 | #include "xmalloc.h" | 66 | #include "xmalloc.h" |
@@ -1437,7 +1438,7 @@ static void | |||
1437 | safely_chroot(const char *path, uid_t uid) | 1438 | safely_chroot(const char *path, uid_t uid) |
1438 | { | 1439 | { |
1439 | const char *cp; | 1440 | const char *cp; |
1440 | char component[MAXPATHLEN]; | 1441 | char component[PATH_MAX]; |
1441 | struct stat st; | 1442 | struct stat st; |
1442 | 1443 | ||
1443 | if (*path != '/') | 1444 | if (*path != '/') |