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:
Ingo Weinhold
2008-04-06 00:26:15 +00:00
parent 7ffafac8d7
commit 717705d816
+7 -1
View File
@@ -8175,8 +8175,14 @@ _user_create_fifo(const char *userPath, mode_t perms)
// create the entry -- the FIFO sub node is set up automatically
fs_vnode superVnode;
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);
// 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;
}