Ticket #290: mount.c.patch

File mount.c.patch, 396 bytes (added by strauman, on Dec 3, 2006 at 1:31:12 PM)

mount.c.patch

Line 
1*** mount.c.orig        Thu Oct 17 10:59:22 2002
2--- mount.c     Thu Oct 17 11:00:39 2002
3***************
4*** 140,145 ****
5--- 140,151 ----
6       */
7 
8      loc_to_free = &loc;
9+
10+       if ( !loc.ops->node_type_h ) {
11+         errno = ENOTSUP;
12+       goto cleanup_and_bail;
13+       }
14+
15      if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
16        errno = ENOTDIR;
17        goto cleanup_and_bail;