Fossil

Check-in [95b6fad9]
Login

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

Overview
Comment:Remove unnecessary double NUL-termination from blob
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | enhanced-symlink
Files: files | file ages | folders
SHA3-256:95b6fad941774d1d20e0bc6733800227caf42e6f18cba61f2fd959d2289b237b
User & Date: andygoth 2017-10-14 22:49:02
Context
2017-10-14
22:49
Remove unnecessary double NUL-termination from blob Leaf check-in: 95b6fad9 user: andygoth tags: enhanced-symlink
22:22
Update change log to describe Windows behavior of "l" flag to "manifest" setting check-in: 810370cd user: andygoth tags: enhanced-symlink
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkout.c.

274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
   * or update, but for now, temporarily disable symlink status updating. */
  zFile = mprintf("%smanifest.symlinks", g.zLocalRoot);
  if( file_wd_size(zFile)<0 ){
    return 0;
  }

  /* Read "manifest.symlinks" into a blob to be analyzed.  Simplify processing
   * 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_begin_transaction();
  db_multi_exec("CREATE TEMP TABLE IF NOT EXISTS symlink_perm("
                "filename TEXT PRIMARY KEY %s)", filename_collation());







|

|







274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
   * or update, but for now, temporarily disable symlink status updating. */
  zFile = mprintf("%smanifest.symlinks", g.zLocalRoot);
  if( file_wd_size(zFile)<0 ){
    return 0;
  }

  /* Read "manifest.symlinks" into a blob to be analyzed.  Simplify processing
   * by forcing it to end with newline.  (Blobs are always NUL-terminated.) */
  blob_read_from_file(&content, zFile);
  blob_append(&content, "\n", 1);
  zLine = blob_buffer(&content);

  /* Insert each non-empty line of "manifest.symlinks" into the "symlink_perm"
   * temporary table. */
  db_begin_transaction();
  db_multi_exec("CREATE TEMP TABLE IF NOT EXISTS symlink_perm("
                "filename TEXT PRIMARY KEY %s)", filename_collation());