We get a reference to the node from create_special_node(), so we have to
release it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24817 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8175,8 +8175,14 @@ _user_create_fifo(const char *userPath, mode_t perms)
|
|||||||
// create the entry -- the FIFO sub node is set up automatically
|
// create the entry -- the FIFO sub node is set up automatically
|
||||||
fs_vnode superVnode;
|
fs_vnode superVnode;
|
||||||
ino_t nodeID;
|
ino_t nodeID;
|
||||||
return FS_CALL(dir, create_special_node, filename, NULL,
|
status = FS_CALL(dir, create_special_node, filename, NULL,
|
||||||
S_IFIFO | (perms & S_IUMSK), 0, &superVnode, &nodeID);
|
S_IFIFO | (perms & S_IUMSK), 0, &superVnode, &nodeID);
|
||||||
|
|
||||||
|
// create_special_node() acquired a reference for us that we don't need.
|
||||||
|
if (status == B_OK)
|
||||||
|
put_vnode(dir->mount->volume, nodeID);
|
||||||
|
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user