summaryrefslogtreecommitdiff
path: root/usr.sbin/rebound
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-05-31 04:52:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-05-31 04:52:12 +0000
commitedd674650b09981eb60b0aea1b58e8cf45a3e65e (patch)
treeaadbc7b36eb077ef8fb2f8c3657f223e805c7397 /usr.sbin/rebound
parent44852fcda280f02bfa9964d3e039f83ea8a68384 (diff)
use strerror; from Edgar Pettijohn
Diffstat (limited to 'usr.sbin/rebound')
-rw-r--r--usr.sbin/rebound/rebound.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c
index 2f3bc9b6bb9..16d40381a2b 100644
--- a/usr.sbin/rebound/rebound.c
+++ b/usr.sbin/rebound/rebound.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rebound.c,v 1.83 2017/04/27 16:09:32 tedu Exp $ */
+/* $OpenBSD: rebound.c,v 1.84 2017/05/31 04:52:11 deraadt Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -591,9 +591,9 @@ workerinit(void)
logerr("getpwnam failed");
if (chroot(pwd->pw_dir) == -1)
- logerr("chroot failed (%d)", errno);
+ logerr("chroot: %s", strerror(errno));
if (chdir("/") == -1)
- logerr("chdir failed (%d)", errno);
+ logerr("chdir: %s", strerror(errno));
setproctitle("worker");
if (setgroups(1, &pwd->pw_gid) ||