Fossil

Check-in [de50c496]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct vfile_check_signature() handling of manifest.symlinks not existing or manifest setting not containing the l flag
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | enhanced-symlink
Files: files | file ages | folders
SHA3-256:de50c496d275a6522bdb419f2a8c29ee9cca1bb4c44314afab82d9f1c2347c1f
User & Date: andygoth 2017-10-14 21:44:09
Context
2017-10-14
21:48
Tweak comment style for consistency within functions check-in: 364d0431 user: andygoth tags: enhanced-symlink
21:44
Correct vfile_check_signature() handling of manifest.symlinks not existing or manifest setting not containing the l flag check-in: de50c496 user: andygoth tags: enhanced-symlink
21:43
Update Windows version of vfile_check_signature() to get symlink status from manifest.symlinks check-in: 23e67f67 user: andygoth tags: enhanced-symlink
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vfile.c.

215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
    /* For Windows, if the "manifest" setting contains the "l" flag and the
     * "manifest.symlinks" file exists, use its contents to determine which
     * files do and do not have the symlink permission. */
    if( manifestSymlinks
     && db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName) ){
      currentPerm = PERM_LNK;
    }else{
      currentPerm = 0;
    }
#else
    currentPerm = file_wd_perm(zName);
#endif
    if( chnged==0 && (isDeleted || rid==0) ){
      /* "fossil rm" or "fossil add" always change the file */
      chnged = 1;







|







215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
    /* For Windows, if the "manifest" setting contains the "l" flag and the
     * "manifest.symlinks" file exists, use its contents to determine which
     * files do and do not have the symlink permission. */
    if( manifestSymlinks
     && db_exists("SELECT 1 FROM symlink_perm WHERE filename=%Q", zName) ){
      currentPerm = PERM_LNK;
    }else{
      currentPerm = origPerm;
    }
#else
    currentPerm = file_wd_perm(zName);
#endif
    if( chnged==0 && (isDeleted || rid==0) ){
      /* "fossil rm" or "fossil add" always change the file */
      chnged = 1;