From d74e890f514e3da696c4f34e2cc41d0eeef4126b Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Mon, 31 Oct 2016 01:21:28 +0000 Subject: [PATCH] Correct path to access() When checking to see if the configuration file exists, use the correct argument, and not the built-up string. --- fvwm/fvwm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fvwm/fvwm.c b/fvwm/fvwm.c index 2ea9cee2b..85e4bdba7 100644 --- a/fvwm/fvwm.c +++ b/fvwm/fvwm.c @@ -1933,8 +1933,7 @@ int main(int argc, char **argv) * instead. */ - if (access(config_commands[num_config_commands], - F_OK) != 0) { + if (access(argv[i], F_OK) != 0) { free(config_commands[num_config_commands]); config_commands[num_config_commands] = safestrdup("Read " FVWM_DATADIR