Fix bug, root refcount must be initialized to 1.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent 36894d6a23
commit 5b93cb4cdc

@ -578,6 +578,7 @@ int iso_node_new_root(IsoDir **root)
if (dir == NULL) {
return ISO_MEM_ERROR;
}
dir->node.refcount = 1;
dir->node.type = LIBISO_DIR;
dir->node.atime = dir->node.ctime = dir->node.mtime = time(NULL);
dir->node.mode = S_IFDIR | 0555;

Loading…
Cancel
Save