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:
Xiang Xiao 2022-06-02 13:59:20 +08:00 committed by Petro Karashchenko
parent 3357b0b15f
commit 49834c9151
1 changed files with 1 additions and 1 deletions

View File

@ -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 */