libthr: Don't use both __sys_open() and __sys_openat().
This commit is contained in:
parent
09e4ee9af3
commit
17981398bd
@ -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");
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user