src/platform_posix.c
changeset 1290 a47c773cc5ee
parent 1266 135cb99a06a0
child 1322 5476917b8ddf
equal deleted inserted replaced
1289:5e267ff5efea 1290:a47c773cc5ee
   347 {
   347 {
   348     struct stat statbuf;
   348     struct stat statbuf;
   349 
   349 
   350     if (lstat(filename, &statbuf) == -1)
   350     if (lstat(filename, &statbuf) == -1)
   351     {
   351     {
   352         *exists = (errno == ENOENT);
   352         *exists = (errno != ENOENT);
   353         BAIL_MACRO(errcodeFromErrno(), 0);
   353         BAIL_MACRO(errcodeFromErrno(), 0);
   354     } /* if */
   354     } /* if */
   355 
   355 
   356     *exists = 1;
   356     *exists = 1;
   357 
   357