Fossil SCM
Fixed a broken conditional for code which should only be compiled on Windows but was only being compiled for posix.
Commit
5bbf1ab3f5811a095a90d6b364423c3a92ac45b0
Parent
8f33e49dd443cfa…
1 file changed
+1
-1
+1
-1
| --- src/vfile.c | ||
| +++ src/vfile.c | ||
| @@ -205,11 +205,11 @@ | ||
| 205 | 205 | origSize = db_column_int64(&q, 6); |
| 206 | 206 | currentSize = file_wd_size(zName); |
| 207 | 207 | currentMtime = file_wd_mtime(0); |
| 208 | 208 | origPerm = db_column_int(&q, 8); |
| 209 | 209 | currentPerm = file_wd_perm(zName); |
| 210 | -#if !defined(_WIN32) | |
| 210 | +#if defined(_WIN32) | |
| 211 | 211 | /* |
| 212 | 212 | ** Windows doesn't have an execute bit, but it does support symlinks; |
| 213 | 213 | ** if the current permission is not a symlink, make it the original |
| 214 | 214 | ** permission (EXE or REG); if it is a symlink, leave it alone |
| 215 | 215 | */ |
| 216 | 216 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -205,11 +205,11 @@ | |
| 205 | origSize = db_column_int64(&q, 6); |
| 206 | currentSize = file_wd_size(zName); |
| 207 | currentMtime = file_wd_mtime(0); |
| 208 | origPerm = db_column_int(&q, 8); |
| 209 | currentPerm = file_wd_perm(zName); |
| 210 | #if !defined(_WIN32) |
| 211 | /* |
| 212 | ** Windows doesn't have an execute bit, but it does support symlinks; |
| 213 | ** if the current permission is not a symlink, make it the original |
| 214 | ** permission (EXE or REG); if it is a symlink, leave it alone |
| 215 | */ |
| 216 |
| --- src/vfile.c | |
| +++ src/vfile.c | |
| @@ -205,11 +205,11 @@ | |
| 205 | origSize = db_column_int64(&q, 6); |
| 206 | currentSize = file_wd_size(zName); |
| 207 | currentMtime = file_wd_mtime(0); |
| 208 | origPerm = db_column_int(&q, 8); |
| 209 | currentPerm = file_wd_perm(zName); |
| 210 | #if defined(_WIN32) |
| 211 | /* |
| 212 | ** Windows doesn't have an execute bit, but it does support symlinks; |
| 213 | ** if the current permission is not a symlink, make it the original |
| 214 | ** permission (EXE or REG); if it is a symlink, leave it alone |
| 215 | */ |
| 216 |