summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2011-07-04 00:27:36 +0000
committerChris Johns <chrisj@rtems.org>2011-07-04 00:27:36 +0000
commita10f0ede0db4e96834db5cb57e9c392e65d3762a (patch)
tree01eb1ba89057d5d7a8cef87ff919cca6cce7b99a /cpukit
parent2011-04-10 Kate Feng <feng@bnl.gov> (diff)
downloadrtems-a10f0ede0db4e96834db5cb57e9c392e65d3762a.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/ChangeLog6
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-rtems.c2
2 files changed, 7 insertions, 1 deletions
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 <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-06-10 Joel Sherrill <joel.sherrilL@OARcorp.com>
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);
}
/*