mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
Switched to using strcasecmp() since it is more portable.
D. V. Henkel-Wallace <gumby@zembu.com> spotted this one.
This commit is contained in:
@@ -270,9 +270,9 @@ rtems_filesystem_options_t get_file_system_options(
|
||||
char *fsoptions
|
||||
)
|
||||
{
|
||||
if ( strcmp( "RO", strupr( fsoptions ) ) == 0 )
|
||||
if ( strcasecmp( "RO", fsoptions ) == 0 )
|
||||
return RTEMS_FILESYSTEM_READ_ONLY;
|
||||
if ( strcmp( "RW", strupr( fsoptions ) ) == 0 )
|
||||
if ( strcasecmp( "RW", fsoptions ) == 0 )
|
||||
return RTEMS_FILESYSTEM_READ_WRITE_ONLY;
|
||||
else
|
||||
return RTEMS_FILESYSTEM_BAD_OPTIONS;
|
||||
|
||||
@@ -270,9 +270,9 @@ rtems_filesystem_options_t get_file_system_options(
|
||||
char *fsoptions
|
||||
)
|
||||
{
|
||||
if ( strcmp( "RO", strupr( fsoptions ) ) == 0 )
|
||||
if ( strcasecmp( "RO", fsoptions ) == 0 )
|
||||
return RTEMS_FILESYSTEM_READ_ONLY;
|
||||
if ( strcmp( "RW", strupr( fsoptions ) ) == 0 )
|
||||
if ( strcasecmp( "RW", fsoptions ) == 0 )
|
||||
return RTEMS_FILESYSTEM_READ_WRITE_ONLY;
|
||||
else
|
||||
return RTEMS_FILESYSTEM_BAD_OPTIONS;
|
||||
|
||||
@@ -270,9 +270,9 @@ rtems_filesystem_options_t get_file_system_options(
|
||||
char *fsoptions
|
||||
)
|
||||
{
|
||||
if ( strcmp( "RO", strupr( fsoptions ) ) == 0 )
|
||||
if ( strcasecmp( "RO", fsoptions ) == 0 )
|
||||
return RTEMS_FILESYSTEM_READ_ONLY;
|
||||
if ( strcmp( "RW", strupr( fsoptions ) ) == 0 )
|
||||
if ( strcasecmp( "RW", fsoptions ) == 0 )
|
||||
return RTEMS_FILESYSTEM_READ_WRITE_ONLY;
|
||||
else
|
||||
return RTEMS_FILESYSTEM_BAD_OPTIONS;
|
||||
|
||||
Reference in New Issue
Block a user