From: Roy Marples Date: Fri, 16 Nov 2007 13:08:00 +0000 (+0000) Subject: Fix file_in_path X-Git-Tag: v3.2.3~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2519911e2e3c73c3a7f6b9baf5c2156e2d6c73d8;p=thirdparty%2Fdhcpcd.git Fix file_in_path --- diff --git a/configure.c b/configure.c index 57c5d01e..121e2dff 100644 --- a/configure.c +++ b/configure.c @@ -78,7 +78,7 @@ static int file_in_path (const char *file) p = path; while ((token = strsep (&p, ":"))) { snprintf (mypath, PATH_MAX, "%s/%s", token, file); - if (stat (mypath, &s)) { + if (stat (mypath, &s) == 0) { retval = 0; break; }