-/* $OpenBSD: lockspool.c,v 1.16 2009/10/27 23:59:31 deraadt Exp $ */
+/* $OpenBSD: lockspool.c,v 1.17 2015/10/13 15:14:26 deraadt Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt <deraadt@theos.com>
#include <stdio.h>
#include <stdlib.h>
#include <poll.h>
+#include <err.h>
+
#include "mail.local.h"
void unhold(int);
char *from, c;
int holdfd;
+ if (pledge("stdio rpath wpath cpath fattr", NULL) == -1)
+ err(1, "pledge");
+
openlog(__progname, LOG_PERROR, LOG_MAIL);
if (argc != 1 && argc != 2)