From 040bf186f684546ba44d5da51ad5a6eee4ade082 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 26 Sep 2017 14:15:24 -0400 Subject: Remove use of EBADMSG Not defined on OpenBSD, doesn't matter much. --- bin/dtch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/dtch.c b/bin/dtch.c index c530c146..b92ac650 100644 --- a/bin/dtch.c +++ b/bin/dtch.c @@ -99,8 +99,10 @@ static int recvFd(int sock) { if (n < 0) return -1; struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); - if (!cmsg) { errno = ENOMSG; return -1; } - if (cmsg->cmsg_type != SCM_RIGHTS) { errno = EBADMSG; return -1; } + if (!cmsg || cmsg->cmsg_type != SCM_RIGHTS) { + errno = ENOMSG; + return -1; + } return *(int *)CMSG_DATA(cmsg); } -- cgit 1.4.1
summary refs log tree commit diff
path: root/OpenBSD/catsitd.in (unfollow)
Commit message (Expand)Author
2021-02-01Remove use of "%n"June McEnroe
2021-02-01Check signals first in the loopJune McEnroe
2020-12-15Log a message when stopping a service waiting to restart 1.1June McEnroe
2020-11-10Refactor unveil calls so errors can be reported properlyJune McEnroe
2020-10-27Do not increment signalsJune McEnroe
2020-10-23Only look up group if one is namedJune McEnroe
2020-10-23Remove default defines of RUNDIR, ETCDIRJune McEnroe
2020-10-23Set shell scripts executable in buildJune McEnroe
2020-10-20Humanize milliseconds if interval is less than 1sJune McEnroe
2020-10-20Humanize restart intervalJune McEnroe
2020-08-17Document default catsit.conf location on OpenBSD 1.0June McEnroe
2020-08-17Template catsit script with RUNDIRJune McEnroe
2020-08-17Clean up includesJune McEnroe
2020-08-17Log service uptime in statusJune McEnroe92b6c85e98&follow=1'>Filter networks with only private contexts from recents as wellJune McEnroe
2020-07-18Specify litterbox version in readmeJune McEnroe
2020-07-18Reverse order of X macro parameters for pages and keysJune McEnroe
2020-07-18Remove kcgi 0.11 compatibilityJune McEnroe
2020-07-17Filter networks with only private contextsJune McEnroe
2020-07-17Add export optionJune McEnroe
Adding the export query parameter to any page downloads a .html with the default stylesheet embedded, and all navigation, forms and internal links removed, for being able to share some part of a private instance of litterbox.
2020-07-17Add margin to inputsJune McEnroe
Seems that only Safari provides any margins on form elements by default.
2020-07-16Don't write null terminator in stylesheet responseJune McEnroe
2020-07-16Remove sudo from make installJune McEnroe