mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
removed assert() for stat on non-devices. Now it returns -1. This
makes gnat pass about 55 more tests in the acvc.
This commit is contained in:
@@ -50,8 +50,7 @@ int __isatty(int _fd)
|
||||
int stat( const char *path, struct stat *buf )
|
||||
{
|
||||
if ( strncmp( "/dev/", path, 5 ) ) {
|
||||
puts( "stat -- non-devices not supported" );
|
||||
assert( 0 );
|
||||
return -1;
|
||||
}
|
||||
return __fstat( 0, buf );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user