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 |
| Timelines: | family | ancestors | descendants | both | andygoth-enhanced-symlink |
| Files: | files | file ages | folders |
| SHA3-256: |
03ba3d9cb29f8dbc1c66f79608df6b47 |
| User & Date: | andygoth 2017-10-14 21:37:23.306 |
Context
|
2017-10-14
| ||
| 21:43 | Update Windows version of vfile_check_signature() to get symlink status from manifest.symlinks ... (check-in: 23e67f67d0 user: andygoth tags: andygoth-enhanced-symlink) | |
| 21:37 | Protect against symlink_perm table already existing, should get_checkout_symlink_table() have already been called ... (check-in: 03ba3d9cb2 user: andygoth tags: andygoth-enhanced-symlink) | |
| 21:32 | Move manifest.symlinks read functionality into the new get_checkout_symlink_table() function in checkout.c ... (check-in: 7a4bd5cf83 user: andygoth tags: andygoth-enhanced-symlink) | |
Changes
Changes to src/checkout.c.
| ︙ | ︙ | |||
281 282 283 284 285 286 287 | * 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. */ | | | | 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 ){
|
| ︙ | ︙ |