[git commit nptl] open_not_cancel macro requires all three args

Austin Foxley austinf at cetoncorp.com
Fri Sep 18 14:07:31 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=276d3e4e98371c6988f39b3167fe651d6ff3068c
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 libc/misc/utmp/wtent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libc/misc/utmp/wtent.c b/libc/misc/utmp/wtent.c
index 4afce70..9b27637 100644
--- a/libc/misc/utmp/wtent.c
+++ b/libc/misc/utmp/wtent.c
@@ -41,7 +41,7 @@ void updwtmp(const char *wtmp_file, const struct utmp *lutmp)
     int fd;
 
 #ifdef __UCLIBC_HAS_THREADS_NATIVE__
-    fd = open_not_cancel(wtmp_file, O_APPEND | O_WRONLY);
+    fd = open_not_cancel(wtmp_file, O_APPEND | O_WRONLY, 0);
     if (fd >= 0) {
 	if (lockf(fd, F_LOCK, 0) == 0) {
 	    write_not_cancel(fd, lutmp, sizeof(struct utmp));
-- 
1.6.3.3



More information about the uClibc-cvs mailing list