summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/symlink.c')
-rw-r--r--cpukit/libcsupport/src/symlink.c5
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;