libc/stdio: Check 'x' instead 'X' in lib_mode2oflags
follow BSD and Linux convention: https://man.openbsd.org/fopen https://www.man7.org/linux/man-pages/man3/fopen.3.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
3357b0b15f
commit
49834c9151
|
@ -263,7 +263,7 @@ int lib_mode2oflags(FAR const char *mode)
|
|||
|
||||
/* Open for exclusive access ("{r|w|a|b|+}x") */
|
||||
|
||||
case 'X' :
|
||||
case 'x' :
|
||||
if ((state & MODE_MASK) != MODE_NONE)
|
||||
{
|
||||
/* The file is opened in exclusive mode */
|
||||
|
|
Loading…
Reference in New Issue