summaryrefslogtreecommitdiff
path: root/libexec/spamd/spamd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-12-23 04:04:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-12-23 04:04:25 +0000
commit29b88a9674bfc30b4c7a4401f9169584b56e571a (patch)
treec1ff4d752fba4a738a504165b647ed2e1f789cd8 /libexec/spamd/spamd.c
parent45c22a4d038361f472ee093364c5c36ff0f518ae (diff)
oops
Diffstat (limited to 'libexec/spamd/spamd.c')
-rw-r--r--libexec/spamd/spamd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c
index 99869e6c3e7..1b6bfb09c00 100644
--- a/libexec/spamd/spamd.c
+++ b/libexec/spamd/spamd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd.c,v 1.3 2002/12/23 01:09:22 deraadt Exp $ */
+/* $OpenBSD: spamd.c,v 1.4 2002/12/23 04:04:24 deraadt Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt. All rights reserved.
@@ -341,7 +341,7 @@ main(int argc, char *argv[])
setuid(pw->pw_uid);
}
- if (gethostname(hostname, sizeof hostname) == 1)
+ if (gethostname(hostname, sizeof hostname) == -1)
err(1, "gethostname");
for (i = 0; i < MAXCON; i++)