diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/chroot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libc/chroot.c b/c/src/lib/libc/chroot.c index b48082bda7..e05e51029e 100644 --- a/c/src/lib/libc/chroot.c +++ b/c/src/lib/libc/chroot.c @@ -33,10 +33,10 @@ int chroot( if (rtems_current_user_env == &rtems_global_user_env) set_errno_and_return_minus_one( ENOTSUP ); - loc = rtems_filesystem_root;i /* save the value */ + loc = rtems_filesystem_root; /* save the value */ /* if has been already changed */ - rtems_filesystem_root = rtems_global_user_env.filesystem_root; + rtems_filesystem_root = rtems_global_user_env.root_directory; result = chdir(pathname); if (result) { |