Cleanup and small fixes

This commit is contained in:
topjohnwu
2017-12-04 18:05:07 +08:00
parent 70a322263e
commit bb97cc594d
9 changed files with 7 additions and 15 deletions

View File

@ -168,6 +168,7 @@ void cpio_ln(struct vector *v, const char *target, const char *entry) {
cpio_entry *f = xcalloc(sizeof(*f), 1);
f->mode = S_IFLNK;
f->filename = strdup(entry);
f->filesize = strlen(target) + 1;
f->data = strdup(target);
cpio_vec_insert(v, f);
fprintf(stderr, "Create symlink [%s] -> [%s]\n", entry, target);