From a9363dbdd1fedd4c7491884a25e5f0ae4b9fc5ad Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 29 Jul 1998 14:37:11 +0000 Subject: [PATCH] success check of access() was backwards CVS patchset: 2200 CVS date: 1998/07/29 14:37:11 --- popt/findme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popt/findme.c b/popt/findme.c index f2e764e..4e43d86 100644 --- a/popt/findme.c +++ b/popt/findme.c @@ -32,7 +32,7 @@ char * findProgramPath(char * argv0) { *chptr = '\0'; sprintf(buf, "%s/%s", start, argv0); - if (access(buf, X_OK)) + if (!access(buf, X_OK)) return buf; if (chptr) -- 2.7.4