diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2018-07-27 05:34:42 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-07-31 12:20:13 +1000 |
commit | e655ee04a3cb7999dbf9641b25192353e2b69418 (patch) | |
tree | ec31b0a5b5011db7848a40f8ae9de8d5aa1a5334 /readconf.c | |
parent | 73ddb25bae4c33a0db361ac13f2e3a60d7c6c4a5 (diff) |
upstream: Now that ssh can't be setuid, remove the
original_real_uid and original_effective_uid globals and replace with calls
to plain getuid(). ok djm@
OpenBSD-Commit-ID: 92561c0cd418d34e6841e20ba09160583e27b68c
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/readconf.c b/readconf.c index d9b6e4cf9..4ab312fff 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.295 2018/07/27 05:13:02 dtucker Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.296 2018/07/27 05:34:42 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -320,7 +320,6 @@ void | |||
320 | add_local_forward(Options *options, const struct Forward *newfwd) | 320 | add_local_forward(Options *options, const struct Forward *newfwd) |
321 | { | 321 | { |
322 | struct Forward *fwd; | 322 | struct Forward *fwd; |
323 | extern uid_t original_real_uid; | ||
324 | int i; | 323 | int i; |
325 | 324 | ||
326 | /* Don't add duplicates */ | 325 | /* Don't add duplicates */ |
@@ -480,7 +479,6 @@ execute_in_shell(const char *cmd) | |||
480 | char *shell; | 479 | char *shell; |
481 | pid_t pid; | 480 | pid_t pid; |
482 | int devnull, status; | 481 | int devnull, status; |
483 | extern uid_t original_real_uid; | ||
484 | 482 | ||
485 | if ((shell = getenv("SHELL")) == NULL) | 483 | if ((shell = getenv("SHELL")) == NULL) |
486 | shell = _PATH_BSHELL; | 484 | shell = _PATH_BSHELL; |