Fossil

Check-in [03ba3d9c]
Login

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

Overview
Comment:Protect against symlink_perm table already existing, should get_checkout_symlink_table() have already been called
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | enhanced-symlink
Files: files | file ages | folders
SHA3-256:03ba3d9cb29f8dbc1c66f79608df6b476169ecde506fb0bf370e162ae0eb1d63
User & Date: andygoth 2017-10-14 21:37:23
Context
2017-10-14
21:43
Update Windows version of vfile_check_signature() to get symlink status from manifest.symlinks check-in: 23e67f67 user: andygoth tags: enhanced-symlink
21:37
Protect against symlink_perm table already existing, should get_checkout_symlink_table() have already been called check-in: 03ba3d9c user: andygoth tags: enhanced-symlink
21:32
Move manifest.symlinks read functionality into the new get_checkout_symlink_table() function in checkout.c check-in: 7a4bd5cf user: andygoth tags: enhanced-symlink
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkout.c.

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
   * by forcing it to end with newline-NUL. */
  blob_read_from_file(&content, zFile);
  blob_append(&content, "\n", 2);
  zLine = blob_buffer(&content);

  /* Insert each non-empty line of "manifest.symlinks" into the "symlink_perm"
   * temporary table. */
  db_multi_exec("CREATE TEMP TABLE symlink_perm(filename TEXT PRIMARY KEY %s)",
                filename_collation());
  while( *zLine ){
    /* Find end of line and replace with NUL. */
    for( zEnd = zLine; *zEnd!='\r' && *zEnd!='\n'; ++zEnd );
    *zEnd = 0;

    /* If not a blank line, insert filename into symlink table. */
    if( *zLine ){







|
|







281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
   * by forcing it to end with newline-NUL. */
  blob_read_from_file(&content, zFile);
  blob_append(&content, "\n", 2);
  zLine = blob_buffer(&content);

  /* Insert each non-empty line of "manifest.symlinks" into the "symlink_perm"
   * temporary table. */
  db_multi_exec("CREATE TEMP TABLE IF NOT EXISTS symlink_perm("
                "filename TEXT PRIMARY KEY %s)", filename_collation());
  while( *zLine ){
    /* Find end of line and replace with NUL. */
    for( zEnd = zLine; *zEnd!='\r' && *zEnd!='\n'; ++zEnd );
    *zEnd = 0;

    /* If not a blank line, insert filename into symlink table. */
    if( *zLine ){