Skip to content

Commit bf45b56

Browse files
committed
Handle NULL root path in container notify handler
Signed-off-by: Qiyu Yan <[email protected]>
1 parent 8f86cad commit bf45b56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcrun/linux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5033,7 +5033,8 @@ libcrun_run_linux_container (libcrun_container_t *container, container_entrypoin
50335033
if (UNLIKELY (ret < 0))
50345034
return ret;
50355035

5036-
ret = libcrun_container_notify_handler (args, HANDLER_CONFIGURE_BEFORE_MOUNTS, container, container->container_def->root->path, err);
5036+
ret = libcrun_container_notify_handler (args, HANDLER_CONFIGURE_BEFORE_MOUNTS, container,
5037+
container->container_def->root ? container->container_def->root->path : NULL, err);
50375038
if (UNLIKELY (ret < 0))
50385039
return ret;
50395040

0 commit comments

Comments
 (0)