mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:16:00 +08:00
libc: posix_openpty should use the absolute path("dev/ptmx")
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
5b678ab12e
commit
34baf47307
@@ -68,7 +68,7 @@
|
|||||||
int posix_openpt(int oflag)
|
int posix_openpt(int oflag)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_PSEUDOTERM_SUSV1
|
#ifdef CONFIG_PSEUDOTERM_SUSV1
|
||||||
return open("dev/ptmx", oflag);
|
return open("/dev/ptmx", oflag);
|
||||||
#else
|
#else
|
||||||
int minor;
|
int minor;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user