summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/logwtmp.c4
-rw-r--r--libexec/ftpd/monitor.c4
-rw-r--r--libexec/ld.so/ldconfig/ldconfig.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/libexec/ftpd/logwtmp.c b/libexec/ftpd/logwtmp.c
index 76268f7cb98..7217cdd3dc2 100644
--- a/libexec/ftpd/logwtmp.c
+++ b/libexec/ftpd/logwtmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logwtmp.c,v 1.13 2021/05/23 17:01:21 jan Exp $ */
+/* $OpenBSD: logwtmp.c,v 1.14 2021/10/24 21:24:20 deraadt Exp $ */
/* $NetBSD: logwtmp.c,v 1.4 1995/04/11 02:44:58 cgd Exp $ */
/*
@@ -60,7 +60,7 @@ ftpdlogwtmp(const char *line, const char *name, const char *host)
struct stat buf;
struct utmp ut;
- if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) == -1)
+ if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY|O_APPEND)) == -1)
return;
if (fstat(fd, &buf) == 0) {
(void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
diff --git a/libexec/ftpd/monitor.c b/libexec/ftpd/monitor.c
index 33be374b014..8d88c1ca634 100644
--- a/libexec/ftpd/monitor.c
+++ b/libexec/ftpd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.29 2021/05/31 16:18:01 jan Exp $ */
+/* $OpenBSD: monitor.c,v 1.30 2021/10/24 21:24:20 deraadt Exp $ */
/*
* Copyright (c) 2004 Moritz Jodeit <moritz@openbsd.org>
@@ -223,7 +223,7 @@ monitor_post_auth(void)
}
/* We have to keep stdout open, because reply() needs it. */
- if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1)
+ if ((nullfd = open(_PATH_DEVNULL, O_RDWR)) == -1)
fatalx("cannot open %s: %m", _PATH_DEVNULL);
dup2(nullfd, STDIN_FILENO);
dup2(nullfd, STDERR_FILENO);
diff --git a/libexec/ld.so/ldconfig/ldconfig.c b/libexec/ld.so/ldconfig/ldconfig.c
index 96c3ff723c6..fcd81284d28 100644
--- a/libexec/ld.so/ldconfig/ldconfig.c
+++ b/libexec/ld.so/ldconfig/ldconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldconfig.c,v 1.38 2018/06/08 19:24:46 cheloha Exp $ */
+/* $OpenBSD: ldconfig.c,v 1.39 2021/10/24 21:24:20 deraadt Exp $ */
/*
* Copyright (c) 1993,1995 Paul Kranenburg
@@ -432,7 +432,7 @@ readhints(void)
long msize;
int fd, i;
- if ((fd = open(_PATH_LD_HINTS, O_RDONLY, 0)) == -1) {
+ if ((fd = open(_PATH_LD_HINTS, O_RDONLY)) == -1) {
warn("%s", _PATH_LD_HINTS);
return -1;
}