diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-30 17:05:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-03-30 17:05:23 +0000 |
commit | 9eab99a82c13b77686a662759b772e2144a3dc1c (patch) | |
tree | cfd90abaf4322c7ed7f55988ad99debc82c20b3e /cpukit/libcsupport/src/symlink.c | |
parent | 2009-03-30 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-9eab99a82c13b77686a662759b772e2144a3dc1c.tar.bz2 |
2009-03-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/symlink.c: Check if path evaluation handler exists.
* libnetworking/lib/ftpfs.c: Cleanup.
Diffstat (limited to 'cpukit/libcsupport/src/symlink.c')
-rw-r--r-- | cpukit/libcsupport/src/symlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/symlink.c b/cpukit/libcsupport/src/symlink.c index 59c15787bd..6904fff920 100644 --- a/cpukit/libcsupport/src/symlink.c +++ b/cpukit/libcsupport/src/symlink.c @@ -29,6 +29,11 @@ int symlink( int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); + + if ( !loc.ops->evalformake_h ) { + rtems_set_errno_and_return_minus_one( ENOTSUP ); + } + result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; |