summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/chown.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-15 10:06:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-15 10:06:18 +0200
commita7d1992c8313eeb5e67bd0f7eebe35e61a103b8a (patch)
tree594b8171a2aba1a6908c2cc7a42d2a4497b4652e /cpukit/libcsupport/src/chown.c
parentMerge branch 'upstream' (diff)
parentFilesystem: Move operations to mount table entry (diff)
downloadrtems-a7d1992c8313eeb5e67bd0f7eebe35e61a103b8a.tar.bz2
Merge branch 'upstream'
Diffstat (limited to 'cpukit/libcsupport/src/chown.c')
-rw-r--r--cpukit/libcsupport/src/chown.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/chown.c b/cpukit/libcsupport/src/chown.c
index fa677cbe9c..7cc03a2a07 100644
--- a/cpukit/libcsupport/src/chown.c
+++ b/cpukit/libcsupport/src/chown.c
@@ -32,12 +32,9 @@ int rtems_filesystem_chown(
int eval_flags = eval_follow_link;
const rtems_filesystem_location_info_t *currentloc =
rtems_filesystem_eval_path_start( &ctx, path, eval_flags );
+ const rtems_filesystem_operations_table *ops = currentloc->mt_entry->ops;
- rv = (*currentloc->ops->chown_h)(
- currentloc,
- owner,
- group
- );
+ rv = (*ops->chown_h)( currentloc, owner, group );
rtems_filesystem_eval_path_cleanup( &ctx );