version 1.18, 2019/03/18 15:33:21 |
version 1.19, 2019/03/23 16:04:28 |
|
|
if (strcmp(f->link, b)) { |
if (strcmp(f->link, b)) { |
free(b); |
free(b); |
b = NULL; |
b = NULL; |
LOG3(sess, "%s: updating " |
LOG3(sess, "%s: updating symlink: %s", f->path, f->link); |
"symlink: %s", f->path, f->link); |
|
updatelink = 1; |
updatelink = 1; |
} |
} |
free(b); |
free(b); |
|
|
*/ |
*/ |
|
|
if (rc == -1 || updatelink) { |
if (rc == -1 || updatelink) { |
LOG3(sess, "%s: creating " |
LOG3(sess, "%s: creating symlink: %s", f->path, f->link); |
"symlink: %s", f->path, f->link); |
|
if (mktemplate(sess, &temp, |
if (mktemplate(sess, &temp, |
f->path, sess->opts->recursive) == -1) { |
f->path, sess->opts->recursive) == -1) { |
ERRX1(sess, "mktemplate"); |
ERRX1(sess, "mktemplate"); |
|
|
close(*fileinfd); |
close(*fileinfd); |
*fileinfd = -1; |
*fileinfd = -1; |
LOG3(sess, "%s: mapped %jd B with %zu blocks", |
LOG3(sess, "%s: mapped %jd B with %zu blocks", |
u->fl[u->idx].path, (intmax_t)blk.size, |
u->fl[u->idx].path, (intmax_t)blk.size, |
blk.blksz); |
blk.blksz); |
} else { |
} else { |
if (*fileinfd != -1) { |
if (*fileinfd != -1) { |
close(*fileinfd); |
close(*fileinfd); |