Fix bug, root refcount must be initialized to 1.
This commit is contained in:
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…
Reference in New Issue
Block a user