Differences From Artifact [2c3945270b]:
- File src/file.c — part of check-in [8a0c546990] at 2011-09-08 11:59:42 on branch symlinks — Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support. Fix renaming of symlinks when merging (via new function symlink_copy()). Rename create_symlink() to symlink_create(). (user: dmitry size: 25768)
To Artifact [2bc870a9f5]:
- File src/file.c — part of check-in [4e586a2d8e] at 2011-09-08 12:59:10 on branch symlinks — Fix Windows build. (user: dmitry size: 25781) [more...]
| ︙ | ︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
return stat(zFilename, buf);
}
#else
int rc = 0;
char *zMbcs = fossil_utf8_to_mbcs(zFilename);
rc = stat(zMbcs, buf);
fossil_mbcs_free(zMbcs);
#endif
}
/*
** Fill in the fileStat variable for the file named zFilename.
** If zFilename==0, then use the previous value of fileStat if
** there is a previous value.
| > | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
return stat(zFilename, buf);
}
#else
int rc = 0;
char *zMbcs = fossil_utf8_to_mbcs(zFilename);
rc = stat(zMbcs, buf);
fossil_mbcs_free(zMbcs);
return rc;
#endif
}
/*
** Fill in the fileStat variable for the file named zFilename.
** If zFilename==0, then use the previous value of fileStat if
** there is a previous value.
|
| ︙ | ︙ |