diff options
author | Chris Johns <chrisj@rtems.org> | 2011-07-04 00:31:25 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2011-07-04 00:31:25 +0000 |
commit | acb92e332ba7a5c978fe5f73e357c8235cc7d37c (patch) | |
tree | 6ff4a1adf889c0d96b8660496178b35d0b403883 /cpukit | |
parent | 2011-07-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-acb92e332ba7a5c978fe5f73e357c8235cc7d37c.tar.bz2 |
2011-07-04 Chris Johns <chrisj@rtems.org>
PR 1827/filesystem
* libfs/src/rfs/rtems-rfs-rtems.c: Skip the parent (..) path value
when eval make moving up out of the RFS file system.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index f57d4d97fb..cfdd07820a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2011-07-04 Chris Johns <chrisj@rtems.org> + + PR 1827/filesystem + * libfs/src/rfs/rtems-rfs-rtems.c: Skip the parent (..) path value + when eval make moving up out of the RFS file system. + 2011-07-01 Joel Sherrill <joel.sherrill@oarcorp.com> * libcsupport/src/malloc_initialize.c: After discussion with Till diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c index bf688f0f67..26708610a9 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c @@ -367,7 +367,7 @@ rtems_rfs_rtems_eval_for_make (const char* path, rtems_rfs_inode_close (fs, &inode); rtems_rfs_rtems_unlock (fs); *pathloc = pathloc->mt_entry->mt_point_node; - return (*pathloc->ops->evalformake_h)(path - node_len, pathloc, name); + return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name); } /* |