Skip to content

Commit

Permalink
fixup! Fix dentry of open files after rename
Browse files Browse the repository at this point in the history
Signed-off-by: g2flyer <[email protected]>
  • Loading branch information
g2flyer committed May 8, 2024
1 parent 6b6ceb9 commit b25266a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libos/src/sys/libos_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ static int do_rename(struct libos_dentry* old_dent, struct libos_dentry* new_den

/* also update dentry of any potentially open fd pointing to old_dent */
struct libos_handle_map* handle_map = get_thread_handle_map(NULL);
assert(handle_libos_call != NULL);
assert(handle_map != NULL);
rwlock_read_lock(&handle_map->lock);

for (uint32_t i = 0; handle_map->fd_top != FD_NULL && i <= handle_map->fd_top; i++) {
Expand Down

0 comments on commit b25266a

Please sign in to comment.