summaryrefslogtreecommitdiffstats
path: root/libc/misc/utmp/wtent.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-09-18 11:34:29 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-18 11:34:29 -0700
commit276d3e4e98371c6988f39b3167fe651d6ff3068c (patch)
treecccdf19a0e11d03f9ed342e2e69ca1fbfc6c2bc2 /libc/misc/utmp/wtent.c
parentb089e4c6f04697032796286ffb0c3e16138a5da4 (diff)
downloaduClibc-alpine-276d3e4e98371c6988f39b3167fe651d6ff3068c.tar.bz2
uClibc-alpine-276d3e4e98371c6988f39b3167fe651d6ff3068c.tar.xz
open_not_cancel macro requires all three args
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/misc/utmp/wtent.c')
-rw-r--r--libc/misc/utmp/wtent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/utmp/wtent.c b/libc/misc/utmp/wtent.c
index 4afce703f..9b2763701 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));