Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Oops, missed one thing in the previous check-in. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | symlinks |
| Files: | files | file ages | folders |
| SHA1: |
b3fc0a133c50cf710b56a9556e00187d |
| User & Date: | mistachkin 2017-02-13 21:03:22.452 |
Context
|
2017-02-13
| ||
| 23:56 | Add the 'test-file-environment' test command. check-in: c891d86c6c user: mistachkin tags: symlinks | |
| 21:03 | Oops, missed one thing in the previous check-in. check-in: b3fc0a133c user: mistachkin tags: symlinks | |
| 21:01 | For the '--no-dir-symlinks' flag to be honored when the 'allow-symlinks' setting is disabled, the file_wd_isdir() function must force lstat() to be used. check-in: 6c90761bcd user: mistachkin tags: symlinks | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
92 93 94 95 96 97 98 |
struct fossilStat *buf, /* pointer to buffer where info should go. */
int isWd, /* non-zero to consider look at symlink itself. */
int forceWd /* non-zero to force look at symlink itself. */
){
int rc;
void *zMbcs = fossil_utf8_to_path(zFilename, 0);
#if !defined(_WIN32)
| | | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
struct fossilStat *buf, /* pointer to buffer where info should go. */
int isWd, /* non-zero to consider look at symlink itself. */
int forceWd /* non-zero to force look at symlink itself. */
){
int rc;
void *zMbcs = fossil_utf8_to_path(zFilename, 0);
#if !defined(_WIN32)
if( isWd && (forceWd || db_allow_symlinks(0)) ){
rc = lstat(zMbcs, buf);
}else{
rc = stat(zMbcs, buf);
}
#else
rc = win32_stat(zMbcs, buf, isWd);
#endif
|
| ︙ | ︙ |