diff options
author | 2019-07-24 19:40:04 +0000 | |
---|---|---|
committer | 2019-07-24 19:40:04 +0000 | |
commit | 600f892ee3de1bffcf35d2a30bbd29e1a6a23fe8 (patch) | |
tree | 6522d37337ce210985cd41c217f4e5b4019a2860 | |
parent | Ever since I introduced pledge(2) on spamd(8) the chroot'ed process, if running (diff) | |
download | wireguard-openbsd-600f892ee3de1bffcf35d2a30bbd29e1a6a23fe8.tar.xz wireguard-openbsd-600f892ee3de1bffcf35d2a30bbd29e1a6a23fe8.zip |
Fix format specifier in execl(3) error message
Typo from r1.84 introducing the logmsg() wrapper.
OK deraadt
-rw-r--r-- | usr.sbin/apmd/apmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index b2911f43f3b..f352e98032c 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.86 2019/07/22 08:06:52 kn Exp $ */ +/* $OpenBSD: apmd.c,v 1.87 2019/07/24 19:40:04 kn Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -683,7 +683,7 @@ do_etc_file(const char *file) case 0: /* We are the child. */ execl(file, prog, (char *)NULL); - logmsg(LOG_ERR, "failed to exec %s: %m", file, strerror(errno)); + logmsg(LOG_ERR, "failed to exec %s: %s", file, strerror(errno)); _exit(1); /* NOTREACHED */ default: |