summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-13 12:59:26 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-13 12:59:26 +0000
commitb10b96869e8b215b538ef1951006d65301a1300a (patch)
tree30521ff3052def0b4f3524cea9d62d03a3284c6a
parenteb093b86ec0af54a9666e8bc2e56b981a0b7217a (diff)
apmd doesn't connect to the socket, it binds on it; tweak error message
-rw-r--r--usr.sbin/apmd/apmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index 420450ef538..1d278a255a2 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmd.c,v 1.77 2015/10/11 20:23:49 guenther Exp $ */
+/* $OpenBSD: apmd.c,v 1.78 2015/11/13 12:59:25 jca Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
@@ -219,7 +219,7 @@ bind_socket(const char *sockname)
old_umask = umask(077);
if (bind(sock, (struct sockaddr *)&s_un, sizeof(s_un)) == -1)
- error("cannot connect to APM socket", NULL);
+ error("cannot bind on APM socket", NULL);
umask(old_umask);
if (chmod(sockname, 0660) == -1 || chown(sockname, 0, 0) == -1)
error("cannot set socket mode/owner/group to 660/0/0", NULL);