success check of access() was backwards
authorewt <devnull@localhost>
Wed, 29 Jul 1998 14:37:11 +0000 (14:37 +0000)
committerewt <devnull@localhost>
Wed, 29 Jul 1998 14:37:11 +0000 (14:37 +0000)
CVS patchset: 2200
CVS date: 1998/07/29 14:37:11

popt/findme.c

index f2e764e..4e43d86 100644 (file)
@@ -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)