libc: posix_openpty should use the absolute path("dev/ptmx")

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-02-13 05:06:43 +08:00
committed by Masayuki Ishikawa
parent 5b678ab12e
commit 34baf47307
+1 -1
View File
@@ -68,7 +68,7 @@
int posix_openpt(int oflag)
{
#ifdef CONFIG_PSEUDOTERM_SUSV1
return open("dev/ptmx", oflag);
return open("/dev/ptmx", oflag);
#else
int minor;