Fossil SCM

Fixed a broken conditional for code which should only be compiled on Windows but was only being compiled for posix.

sdr 2015-09-04 15:44 winsymlink
Commit 5bbf1ab3f5811a095a90d6b364423c3a92ac45b0
1 file changed +1 -1
+1 -1
--- src/vfile.c
+++ src/vfile.c
@@ -205,11 +205,11 @@
205205
origSize = db_column_int64(&q, 6);
206206
currentSize = file_wd_size(zName);
207207
currentMtime = file_wd_mtime(0);
208208
origPerm = db_column_int(&q, 8);
209209
currentPerm = file_wd_perm(zName);
210
-#if !defined(_WIN32)
210
+#if defined(_WIN32)
211211
/*
212212
** Windows doesn't have an execute bit, but it does support symlinks;
213213
** if the current permission is not a symlink, make it the original
214214
** permission (EXE or REG); if it is a symlink, leave it alone
215215
*/
216216
--- 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

Keyboard Shortcuts

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