Changeset 221 for trunk/src/sh_unix.c


Ignore:
Timestamp:
Feb 25, 2009, 8:38:28 PM (13 years ago)
Author:
katerina
Message:

Fix MacOS X problems (ticket #148).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r217 r221  
    42724272  SL_ENTER(_("sh_unix_file_exists"));
    42734273
    4274   if (-1 == retry_stat(FIL__, __LINE__, path, &buf))
    4275     SL_RETURN( S_FALSE, _("sh_unix_file_exists"));
     4274  if (0 == retry_lstat(FIL__, __LINE__, path, &buf))
     4275    SL_RETURN( S_TRUE,  _("sh_unix_file_exists"));
    42764276  else
    4277     SL_RETURN( S_TRUE,  _("sh_unix_file_exists"));
     4277    SL_RETURN( S_FALSE,  _("sh_unix_file_exists"));
    42784278}
    42794279
Note: See TracChangeset for help on using the changeset viewer.