diff --git a/repos/os/src/lib/vfs/ram_file_system.h b/repos/os/src/lib/vfs/ram_file_system.h index 864a445a6..a3c15981d 100644 --- a/repos/os/src/lib/vfs/ram_file_system.h +++ b/repos/os/src/lib/vfs/ram_file_system.h @@ -832,7 +832,13 @@ class Vfs::Ram_file_system : public Vfs::File_system if (dir->length() || (!dynamic_cast(from_node))) return RENAME_ERR_NO_PERM; + /* detach node to be replaced from directory */ to_dir->release(to_node); + + /* notify the node being replaced */ + to_node->notify(_env.watch_handler()); + + /* free the node that is replaced */ remove(to_node); }