]> wimlib.net Git - wimlib/blobdiff - src/mount.c
dentry_set_symlink_buf() fix
[wimlib] / src / mount.c
index 68909618596997c14b5c10cb0277b48e25c7d809..edd9cd1dfe4af1b0ca39c99459651cdfd2c4daf0 100644 (file)
@@ -1039,6 +1039,7 @@ static int wimfs_mkdir(const char *path, mode_t mode)
        newdir = new_dentry(basename);
        newdir->attributes |= FILE_ATTRIBUTE_DIRECTORY;
        newdir->resolved = true;
+       newdir->hard_link = next_link_group_id++;
        link_dentry(newdir, parent);
        return 0;
 }
@@ -1425,6 +1426,8 @@ static int wimfs_symlink(const char *to, const char *from)
        if (dentry_set_symlink(dentry, to, w->lookup_table, &lte) != 0)
                goto out_free_dentry;
 
+       wimlib_assert(lte);
+
        dentry->ads_entries[1].lte_group_list.type = STREAM_TYPE_ADS;
        list_add(&dentry->ads_entries[1].lte_group_list.list,
                 &lte->lte_group_list);