diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.517 2018/10/23 05:56:35 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.518 2018/11/16 03:26:01 djm 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 |
@@ -1624,7 +1624,7 @@ main(int ac, char **av) | |||
1624 | } | 1624 | } |
1625 | if (rexeced_flag || inetd_flag) | 1625 | if (rexeced_flag || inetd_flag) |
1626 | rexec_flag = 0; | 1626 | rexec_flag = 0; |
1627 | if (!test_flag && (rexec_flag && (av[0] == NULL || *av[0] != '/'))) | 1627 | if (!test_flag && rexec_flag && !path_absolute(av[0])) |
1628 | fatal("sshd re-exec requires execution with an absolute path"); | 1628 | fatal("sshd re-exec requires execution with an absolute path"); |
1629 | if (rexeced_flag) | 1629 | if (rexeced_flag) |
1630 | closefrom(REEXEC_MIN_FREE_FD); | 1630 | closefrom(REEXEC_MIN_FREE_FD); |