summaryrefslogtreecommitdiff
path: root/libc/misc/utmp/wtent.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-23 21:05:09 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:42 +0200
commit425803868468b8ca52c7aa7fb8fb8b81d866dc7f (patch)
tree131b8df2eaede5b55803d4d1442a79f252f4134c /libc/misc/utmp/wtent.c
parent804ab2f72f974c15826df439fa0876756989b97c (diff)
use open_not_cancel_2 instead of open_not_cancel
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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 97254262f..9b3ad5084 100644
--- a/libc/misc/utmp/wtent.c
+++ b/libc/misc/utmp/wtent.c
@@ -40,7 +40,7 @@ static void __updwtmp(const char *wtmp_file, const struct utmp *lutmp)
{
int fd;
- fd = open_not_cancel(wtmp_file, O_APPEND | O_WRONLY, 0);
+ fd = open_not_cancel_2(wtmp_file, O_APPEND | O_WRONLY);
if (fd >= 0) {
if (lockf(fd, F_LOCK, 0) == 0) {
write_not_cancel(fd, lutmp, sizeof(struct utmp));