Merge "FORTIFY_SOURCE: fix up previous commit"
This commit is contained in:
commit
5dfdb70129
@ -53,9 +53,7 @@ int open(const char *pathname, int flags, ...)
|
|||||||
|
|
||||||
int __open_2(const char *pathname, int flags) {
|
int __open_2(const char *pathname, int flags) {
|
||||||
if (flags & O_CREAT) {
|
if (flags & O_CREAT) {
|
||||||
__libc_android_log_print(ANDROID_LOG_FATAL, "libc",
|
__fortify_chk_fail("open(O_CREAT) called without specifying a mode", 0);
|
||||||
"*** open(O_CREAT) called without specifying a mode ***\n");
|
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
flags |= O_LARGEFILE;
|
flags |= O_LARGEFILE;
|
||||||
|
@ -54,9 +54,7 @@ int openat(int fd, const char *pathname, int flags, ...)
|
|||||||
int __openat_2(int fd, const char *pathname, int flags)
|
int __openat_2(int fd, const char *pathname, int flags)
|
||||||
{
|
{
|
||||||
if (flags & O_CREAT) {
|
if (flags & O_CREAT) {
|
||||||
__libc_android_log_print(ANDROID_LOG_FATAL, "libc",
|
__fortify_chk_fail("openat(O_CREAT) called without specifying a mode", 0);
|
||||||
"*** openat(O_CREAT) called without specifying a mode ***\n");
|
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
flags |= O_LARGEFILE;
|
flags |= O_LARGEFILE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user