Fossil SCM

Fixed a bug where windows would strip exe or lnk status from files checked in with posix semantics.

sdr 2014-09-21 06:13 bad-winsymlink
Commit 1f45ade696db6cfed6a41fee1b57a1f0389d3926
1 file changed +6 -1
+6 -1
--- src/checkin.c
+++ src/checkin.c
@@ -1112,12 +1112,17 @@
11121112
*/
11131113
if( isSelected ){
11141114
int mPerm;
11151115
11161116
mPerm = file_wd_perm(blob_str(&filename));
1117
+#if !defined(_WIN32)
11171118
isExe = ( mPerm==PERM_EXE );
1118
- isLink = ( mPerm==PERM_LNK );
1119
+#endif
1120
+#if defined(_WIN32)
1121
+ if (win32_symlinks_supported())
1122
+#endif
1123
+ isLink = ( mPerm==PERM_LNK );
11191124
}
11201125
11211126
if( isExe ){
11221127
zPerm = " x";
11231128
}else if( isLink ){
11241129
--- src/checkin.c
+++ src/checkin.c
@@ -1112,12 +1112,17 @@
1112 */
1113 if( isSelected ){
1114 int mPerm;
1115
1116 mPerm = file_wd_perm(blob_str(&filename));
 
1117 isExe = ( mPerm==PERM_EXE );
1118 isLink = ( mPerm==PERM_LNK );
 
 
 
 
1119 }
1120
1121 if( isExe ){
1122 zPerm = " x";
1123 }else if( isLink ){
1124
--- src/checkin.c
+++ src/checkin.c
@@ -1112,12 +1112,17 @@
1112 */
1113 if( isSelected ){
1114 int mPerm;
1115
1116 mPerm = file_wd_perm(blob_str(&filename));
1117 #if !defined(_WIN32)
1118 isExe = ( mPerm==PERM_EXE );
1119 #endif
1120 #if defined(_WIN32)
1121 if (win32_symlinks_supported())
1122 #endif
1123 isLink = ( mPerm==PERM_LNK );
1124 }
1125
1126 if( isExe ){
1127 zPerm = " x";
1128 }else if( isLink ){
1129

Keyboard Shortcuts

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