Fossil SCM

Oops, missed one thing in the previous check-in.

mistachkin 2017-02-13 21:03 UTC symlinks
Commit b3fc0a133c50cf710b56a9556e00187d0058edd6
1 file changed +1 -1
+1 -1
--- src/file.c
+++ src/file.c
@@ -94,11 +94,11 @@
9494
int forceWd /* non-zero to force look at symlink itself. */
9595
){
9696
int rc;
9797
void *zMbcs = fossil_utf8_to_path(zFilename, 0);
9898
#if !defined(_WIN32)
99
- if( isWd && db_allow_symlinks(0) ){
99
+ if( isWd && (forceWd || db_allow_symlinks(0)) ){
100100
rc = lstat(zMbcs, buf);
101101
}else{
102102
rc = stat(zMbcs, buf);
103103
}
104104
#else
105105
--- src/file.c
+++ src/file.c
@@ -94,11 +94,11 @@
94 int forceWd /* non-zero to force look at symlink itself. */
95 ){
96 int rc;
97 void *zMbcs = fossil_utf8_to_path(zFilename, 0);
98 #if !defined(_WIN32)
99 if( isWd && db_allow_symlinks(0) ){
100 rc = lstat(zMbcs, buf);
101 }else{
102 rc = stat(zMbcs, buf);
103 }
104 #else
105
--- src/file.c
+++ src/file.c
@@ -94,11 +94,11 @@
94 int forceWd /* non-zero to force look at symlink itself. */
95 ){
96 int rc;
97 void *zMbcs = fossil_utf8_to_path(zFilename, 0);
98 #if !defined(_WIN32)
99 if( isWd && (forceWd || db_allow_symlinks(0)) ){
100 rc = lstat(zMbcs, buf);
101 }else{
102 rc = stat(zMbcs, buf);
103 }
104 #else
105

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button