Skip to content

Commit b25266a

Browse files
committed
fixup! Fix dentry of open files after rename
Signed-off-by: g2flyer <[email protected]>
1 parent 6b6ceb9 commit b25266a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libos/src/sys/libos_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static int do_rename(struct libos_dentry* old_dent, struct libos_dentry* new_den
353353

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

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

0 commit comments

Comments
 (0)