server/vfs: status completes or throw Invalid_handle
The 'status' RPC method of the File_system session must complete successfully or throw 'Invalid_handle' for any error. Ref #2512
This commit is contained in:
parent
8207fb8d98
commit
488396e78b
|
@ -515,7 +515,7 @@ class Vfs_server::Session_component : public File_system::Session_rpc_object,
|
||||||
Directory_service::Stat vfs_stat;
|
Directory_service::Stat vfs_stat;
|
||||||
|
|
||||||
if (_vfs.stat(node.path(), vfs_stat) != Directory_service::STAT_OK)
|
if (_vfs.stat(node.path(), vfs_stat) != Directory_service::STAT_OK)
|
||||||
return;
|
throw Invalid_handle();
|
||||||
|
|
||||||
fs_stat.inode = vfs_stat.inode;
|
fs_stat.inode = vfs_stat.inode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user