diff options
-rw-r--r-- | c/src/exec/libcsupport/src/mount.c | 4 | ||||
-rw-r--r-- | c/src/lib/libc/mount.c | 4 | ||||
-rw-r--r-- | cpukit/libcsupport/src/mount.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/c/src/exec/libcsupport/src/mount.c b/c/src/exec/libcsupport/src/mount.c index 6a713e1125..e242e1a8ff 100644 --- a/c/src/exec/libcsupport/src/mount.c +++ b/c/src/exec/libcsupport/src/mount.c @@ -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; diff --git a/c/src/lib/libc/mount.c b/c/src/lib/libc/mount.c index 6a713e1125..e242e1a8ff 100644 --- a/c/src/lib/libc/mount.c +++ b/c/src/lib/libc/mount.c @@ -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; diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index 6a713e1125..e242e1a8ff 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -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; |