This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH]: (2/2) Fix generic openat() & openat64()
- From: Kristian Van Der Vliet <vanders at liqwyd dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 03 Dec 2007 20:01:56 +0000
- Subject: [PATCH]: (2/2) Fix generic openat() & openat64()
2007-12-03 Kristian Van Der Vliet <vanders@liqwyd.com>
* io/openat.c (__openat_2): Pass the correct number of arguments
to __openat
* io/openat64.c (__openat64_2): Likewise
--
Vanders
http://www.syllable.org
http://www.liqwyd.com
? openat.patch
Index: openat.c
===================================================================
RCS file: /cvs/glibc/libc/io/openat.c,v
retrieving revision 1.3
diff -u -r1.3 openat.c
--- openat.c 24 May 2007 23:53:52 -0000 1.3
+++ openat.c 3 Dec 2007 19:34:24 -0000
@@ -79,7 +79,7 @@
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)
Index: openat64.c
===================================================================
RCS file: /cvs/glibc/libc/io/openat64.c,v
retrieving revision 1.3
diff -u -r1.3 openat64.c
--- openat64.c 24 May 2007 23:53:52 -0000 1.3
+++ openat64.c 3 Dec 2007 19:34:24 -0000
@@ -79,7 +79,7 @@
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)