diff options
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sftp-server.c b/sftp-server.c index 62e76a505..79ef45b10 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -1598,6 +1598,9 @@ sftp_server_main(int argc, char **argv, struct passwd *user_pw) | |||
1598 | fatal("unable to make the process undumpable"); | 1598 | fatal("unable to make the process undumpable"); |
1599 | #endif /* defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) */ | 1599 | #endif /* defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) */ |
1600 | 1600 | ||
1601 | /* Drop any fine-grained privileges we don't need */ | ||
1602 | platform_pledge_sftp_server(); | ||
1603 | |||
1601 | if ((cp = getenv("SSH_CONNECTION")) != NULL) { | 1604 | if ((cp = getenv("SSH_CONNECTION")) != NULL) { |
1602 | client_addr = xstrdup(cp); | 1605 | client_addr = xstrdup(cp); |
1603 | if ((cp = strchr(client_addr, ' ')) == NULL) { | 1606 | if ((cp = strchr(client_addr, ' ')) == NULL) { |