summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/chroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/chroot.c')
-rw-r--r--cpukit/libcsupport/src/chroot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/chroot.c b/cpukit/libcsupport/src/chroot.c
index b7c2891f6a..9ec4ad470f 100644
--- a/cpukit/libcsupport/src/chroot.c
+++ b/cpukit/libcsupport/src/chroot.c
@@ -44,6 +44,7 @@ int chroot( const char *path )
rtems_filesystem_eval_path_start_with_root_and_current(
&ctx,
path,
+ strlen( path ),
eval_flags,
&rtems_global_user_env.root_directory,
&rtems_global_user_env.current_directory