Changeset 221 for trunk/src


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

Fix MacOS X problems (ticket #148).

Location:
trunk/src
Files:
2 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
  • trunk/src/trustfile.c

    r220 r221  
    366366#else
    367367      strncat(rbuf, "/",   rsz-strlen(rbuf)-1);
     368      rbuf[rsz-1] = '\0';
    368369      strncat(rbuf, fname, rsz-strlen(rbuf)-1);
    369370      rbuf[rsz-1] = '\0';
Note: See TracChangeset for help on using the changeset viewer.