* Forgot to set the BaseDevice inode ID; devfs_unpublish_device() now works
as intended. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -707,6 +707,7 @@ publish_device(struct devfs* fs, const char* path, BaseDevice* device)
|
||||
// all went fine, let's initialize the node
|
||||
node->stream.type = S_IFCHR | 0644;
|
||||
node->stream.u.dev.device = device;
|
||||
device->SetID(node->id);
|
||||
|
||||
// the node is now fully valid and we may insert it into the dir
|
||||
publish_node(fs, dirNode, node);
|
||||
|
||||
Reference in New Issue
Block a user