Changeset d90b74e in rtems


Ignore:
Timestamp:
Feb 3, 2003, 10:00:30 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
43f69a2d
Parents:
13c28bc
Message:

2003-02-03 Till Straumann <strauman@…>

PR 339/filesystem

  • src/chroot.c: Fix violation of FS node object copy semantics.
Location:
cpukit/libcsupport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/ChangeLog

    r13c28bc rd90b74e  
     12003-02-03     Till Straumann  <strauman@slac.stanford.edu>
     2
     3        PR 339/filesystem
     4        * src/chroot.c: Fix violation of FS node object copy semantics.
     5
    162003-01-10      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • cpukit/libcsupport/src/chroot.c

    r13c28bc rd90b74e  
    3939  };
    4040
    41   loc = rtems_filesystem_root;     /* save the value */
    42 
    4341  result = chdir(pathname);
    4442  if (result) {
    45     rtems_filesystem_root = loc; /* restore the value */
    4643    rtems_set_errno_and_return_minus_one( errno );
    4744  };
    48   rtems_filesystem_root = rtems_filesystem_current;
     45  /* clone the new root location */
     46  if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) {
     47        /* our cwd has changed, though - but there is no easy way of return :-( */
     48    rtems_set_errno_and_return_minus_one( errno );
     49  }
     50  rtems_filesystem_freenode(&rtems_filesystem_root);
     51  rtems_filesystem_root = loc;
    4952
    5053  return 0;
Note: See TracChangeset for help on using the changeset viewer.