summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2018-07-18 11:34:04 +0000
committerDamien Miller <djm@mindrot.org>2018-07-19 21:41:42 +1000
commit258dc8bb07dfb35a46e52b0822a2c5b7027df60a (patch)
tree0076c7e0f10f5f525efbd9f7499e5707203b743f /readconf.c
parentac590760b251506b0a152551abbf8e8d6dc2f527 (diff)
upstream: Remove support for running ssh(1) setuid and fatal if
attempted. Do not link uidwap.c into ssh any more. Neuters UsePrivilegedPort, which will be marked as deprecated shortly. ok markus@ djm@ OpenBSD-Commit-ID: c4ba5bf9c096f57a6ed15b713a1d7e9e2e373c42
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/readconf.c b/readconf.c
index 2bc27075f..f40eb3803 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.292 2018/07/04 13:49:31 djm Exp $ */ 1/* $OpenBSD: readconf.c,v 1.293 2018/07/18 11:34:04 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
@@ -498,9 +498,6 @@ execute_in_shell(const char *cmd)
498 if ((pid = fork()) == 0) { 498 if ((pid = fork()) == 0) {
499 char *argv[4]; 499 char *argv[4];
500 500
501 /* Child. Permanently give up superuser privileges. */
502 permanently_drop_suid(original_real_uid);
503
504 /* Redirect child stdin and stdout. Leave stderr */ 501 /* Redirect child stdin and stdout. Leave stderr */
505 if (dup2(devnull, STDIN_FILENO) == -1) 502 if (dup2(devnull, STDIN_FILENO) == -1)
506 fatal("dup2: %s", strerror(errno)); 503 fatal("dup2: %s", strerror(errno));