mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
vfs/tar: return inode numbers of null records
The tar vfs plugin returns an inode value of zero and a type directory for null records, which wrongly triggers the file-system loop detection of the find utility. This patch returns the node pointer as inode value instead, which is a unique value. Fixes #3695
This commit is contained in:
parent
e67f389da1
commit
7f5186d489
@ -610,8 +610,14 @@ class Vfs::Tar_file_system : public File_system
|
||||
return STAT_ERR_NO_ENTRY;
|
||||
|
||||
if (!node_ptr->record) {
|
||||
out.type = Node_type::DIRECTORY;
|
||||
out.rwx = Node_rwx::rx();
|
||||
out = {
|
||||
.size = 0,
|
||||
.type = Node_type::DIRECTORY,
|
||||
.rwx = Node_rwx::rx(),
|
||||
.inode = (Genode::addr_t)node_ptr,
|
||||
.device = (Genode::addr_t)this,
|
||||
.modification_time = { }
|
||||
};
|
||||
return STAT_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user