diff options
author | jca <jca@openbsd.org> | 2015-11-13 12:59:25 +0000 |
---|---|---|
committer | jca <jca@openbsd.org> | 2015-11-13 12:59:25 +0000 |
commit | 0f155b553874835f42f33b38401b70b872c9bb45 (patch) | |
tree | 94a544deffe7297f961db832aceb7503eda809b9 /usr.sbin/apmd | |
parent | Update the list of supported cryptographic algorithms; reminded by naddy@ (diff) | |
download | wireguard-openbsd-0f155b553874835f42f33b38401b70b872c9bb45.tar.xz wireguard-openbsd-0f155b553874835f42f33b38401b70b872c9bb45.zip |
apmd doesn't connect to the socket, it binds on it; tweak error message
Diffstat (limited to 'usr.sbin/apmd')
-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 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); |