Fossil SCM
Fixed a bug where windows would strip exe or lnk status from files checked in with posix semantics.
Commit
1f45ade696db6cfed6a41fee1b57a1f0389d3926
Parent
0ee7e92222a5e3e…
1 file changed
+6
-1
+6
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -1112,12 +1112,17 @@ | ||
| 1112 | 1112 | */ |
| 1113 | 1113 | if( isSelected ){ |
| 1114 | 1114 | int mPerm; |
| 1115 | 1115 | |
| 1116 | 1116 | mPerm = file_wd_perm(blob_str(&filename)); |
| 1117 | +#if !defined(_WIN32) | |
| 1117 | 1118 | 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 ); | |
| 1119 | 1124 | } |
| 1120 | 1125 | |
| 1121 | 1126 | if( isExe ){ |
| 1122 | 1127 | zPerm = " x"; |
| 1123 | 1128 | }else if( isLink ){ |
| 1124 | 1129 |
| --- 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 |