summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-12-10 04:00:27 (UTC)
committerChris Johns <chrisj@rtems.org>2013-12-10 04:00:27 (UTC)
commitc59f668c425ed17eaa2e484984d948c16e5155c9 (patch)
tree83158b69767c78f7d4a8824ccbf1592376f88335
parent6e4255d9a5b32fcf4e665eb908a2091f327ab1d3 (diff)
downloadrtems-c59f668c425ed17eaa2e484984d948c16e5155c9.tar.bz2
PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.
Patch from Nick for this. Thanks.
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-rtems.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
index 5f30cf7..e199ffe 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
@@ -888,7 +888,7 @@ rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
if (rc)
{
free (rtems);
- return rtems_rfs_rtems_error ("initialise: open", rc);
+ return rtems_rfs_rtems_error ("initialise: open", errno);
}
mt_entry->fs_info = fs;