mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* io/openat.c (__openat_2): Also pass fd to __openat.
* io/openat64.c (__openat64_2): Also pass fd to __openat64. Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
This commit is contained in:
@ -79,7 +79,7 @@ __openat_2 (fd, file, oflag)
|
||||
if (oflag & O_CREAT)
|
||||
__fortify_fail ("invalid openat call: O_CREAT without mode");
|
||||
|
||||
return __openat (file, oflag);
|
||||
return __openat (fd, file, oflag);
|
||||
}
|
||||
stub_warning (__openat_2)
|
||||
|
||||
|
Reference in New Issue
Block a user