summaryrefslogtreecommitdiff
path: root/libc/io
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2008-05-12 15:38:35 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2008-05-12 15:38:35 +0000
commitf5944766d686fa6f8bbd7dd74606956de25a8aa4 (patch)
tree8e277c68519a6b7e94f55b87194b5305b62151e5 /libc/io
parent4645ce7777608cbdb69b3a2ece528eef92df9a1f (diff)
Merge changes between r6123 and r6154 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@6155 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/io')
-rw-r--r--libc/io/openat.c2
-rw-r--r--libc/io/openat64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/io/openat.c b/libc/io/openat.c
index 98fa1a1d6..a6bd62094 100644
--- a/libc/io/openat.c
+++ b/libc/io/openat.c
@@ -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)
diff --git a/libc/io/openat64.c b/libc/io/openat64.c
index 2d63490c6..1532afeea 100644
--- a/libc/io/openat64.c
+++ b/libc/io/openat64.c
@@ -79,7 +79,7 @@ __openat64_2 (fd, file, oflag)
if (oflag & O_CREAT)
__fortify_fail ("invalid openat64 call: O_CREAT without mode");
- return __openat64 (file, oflag);
+ return __openat64 (fd, file, oflag);
}
stub_warning (__openat_2)