libthr: Don't use both __sys_open() and __sys_openat().

This commit is contained in:
Jilles Tjoelker 2015-12-20 16:33:56 +00:00
parent 09e4ee9af3
commit 17981398bd
2 changed files with 1 additions and 2 deletions

View File

@ -332,7 +332,7 @@ _libpthread_init(struct pthread *curthread)
PANIC("Can't set session ID");
if (revoke(_PATH_CONSOLE) != 0)
PANIC("Can't revoke console");
if ((fd = __sys_open(_PATH_CONSOLE, O_RDWR)) < 0)
if ((fd = __sys_openat(AT_FDCWD, _PATH_CONSOLE, O_RDWR)) < 0)
PANIC("Can't open console");
if (setlogin("root") == -1)
PANIC("Can't set login to root");

View File

@ -803,7 +803,6 @@ void _pthread_cancel_leave(int maycancel);
/* #include <fcntl.h> */
#ifdef _SYS_FCNTL_H_
int __sys_fcntl(int, int, ...);
int __sys_open(const char *, int, ...);
int __sys_openat(int, const char *, int, ...);
#endif