Skip to content
Snippets Groups Projects
Commit dd6a7113 authored by Jakub Jelen's avatar Jakub Jelen
Browse files

Use windows-compatible access() function to unbreak windows build


Fixes up 3372c2ad which did not properly check
the included header file.

Signed-off-by: default avatarJakub Jelen <jjelen@redhat.com>
Reviewed-by: default avatarAndreas Schneider <asn@cryptomilk.org>
parent c1a7de78
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef _WIN32
#include <pwd.h>
#else
......@@ -2724,7 +2723,7 @@ int ssh_bind_options_parse_config(ssh_bind sshbind, const char *filename)
/* If the global default configuration hasn't been processed yet, process it
* before the provided configuration. */
if (!(sshbind->config_processed)) {
if (access(GLOBAL_BIND_CONFIG, F_OK) == 0) {
if (ssh_file_readaccess_ok(GLOBAL_BIND_CONFIG)) {
rc = ssh_bind_config_parse_file(sshbind, GLOBAL_BIND_CONFIG);
#ifdef USR_GLOBAL_BIND_CONFIG
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment