diff options
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/chroot.c | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index d252c5a1af..6039a23d65 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2008-02-28 Joel Sherrill <joel.sherrill@oarcorp.com> + + * libcsupport/src/chroot.c: Formatting. + 2008-02-27 Joel Sherrill <joel.sherrill@oarcorp.com> * libmisc/shell/cat_file.c, libmisc/shell/main_alias.c, diff --git a/cpukit/libcsupport/src/chroot.c b/cpukit/libcsupport/src/chroot.c index 648b0b872d..d3e1198d0a 100644 --- a/cpukit/libcsupport/src/chroot.c +++ b/cpukit/libcsupport/src/chroot.c @@ -2,7 +2,7 @@ * chroot() - Change Root Directory * Author: fernando.ruiz@ctv.es * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -36,15 +36,16 @@ int chroot( rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); - }; + } result = chdir(pathname); if (result) { rtems_set_errno_and_return_minus_one( errno ); - }; + } + /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) { - /* our cwd has changed, though - but there is no easy way of return :-( */ + /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); } rtems_filesystem_freenode(&rtems_filesystem_root); |