From a10f0ede0db4e96834db5cb57e9c392e65d3762a Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 4 Jul 2011 00:27:36 +0000 Subject: 2011-07-04 Chris Johns 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. --- cpukit/ChangeLog | 6 ++++++ cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index c6640c70d2..1391b3ddc5 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2011-07-04 Chris Johns + + 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-06-10 Joel Sherrill PR 1812/filesystem diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c index 4d4ca5f143..ac9ae4abdd 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); } /* -- cgit v1.2.3