diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-08-01 01:28:38 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-08-01 01:28:38 +0000 |
commit | 5d860f02ca352cd8e51fe266cc2e1b5d58704964 (patch) | |
tree | 72fd795930f9ce2773dfd3f61c4d3d46c638c850 /auth-options.c | |
parent | 4b99be899cc47064c13d8beabc32fe5c3a8f94b5 (diff) |
- markus@cvs.openbsd.org 2002/07/30 17:03:55
[auth-options.c servconf.c servconf.h session.c sshd_config sshd_config.5]
add PermitUserEnvironment (off by default!); from dot@dotat.at;
ok provos, deraadt
Diffstat (limited to 'auth-options.c')
-rw-r--r-- | auth-options.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-options.c b/auth-options.c index 41a29f79c..8595fdc14 100644 --- a/auth-options.c +++ b/auth-options.c | |||
@@ -10,7 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "includes.h" | 12 | #include "includes.h" |
13 | RCSID("$OpenBSD: auth-options.c,v 1.25 2002/07/21 18:32:20 stevesk Exp $"); | 13 | RCSID("$OpenBSD: auth-options.c,v 1.26 2002/07/30 17:03:55 markus Exp $"); |
14 | 14 | ||
15 | #include "xmalloc.h" | 15 | #include "xmalloc.h" |
16 | #include "match.h" | 16 | #include "match.h" |
@@ -133,7 +133,8 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum) | |||
133 | goto next_option; | 133 | goto next_option; |
134 | } | 134 | } |
135 | cp = "environment=\""; | 135 | cp = "environment=\""; |
136 | if (strncasecmp(opts, cp, strlen(cp)) == 0) { | 136 | if (options.permit_user_env && |
137 | strncasecmp(opts, cp, strlen(cp)) == 0) { | ||
137 | char *s; | 138 | char *s; |
138 | struct envstring *new_envstring; | 139 | struct envstring *new_envstring; |
139 | 140 | ||