mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-14 04:18:54 +03:00
Use windows-compatible access() function to unbreak windows build
Fixes up 3372c2ad78 which did not properly check
the included header file.
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user