Wrap long lines.

This commit is contained in:
peter 2006-03-18 00:35:02 +00:00
parent dfd65180e1
commit c8593a1a3c

View File

@ -1,4 +1,4 @@
/* $NetBSD: policy.c,v 1.20 2006/03/18 00:12:02 peter Exp $ */
/* $NetBSD: policy.c,v 1.21 2006/03/18 00:35:02 peter Exp $ */
/* $OpenBSD: policy.c,v 1.15 2002/08/07 00:34:17 vincent Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
@ -30,7 +30,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: policy.c,v 1.20 2006/03/18 00:12:02 peter Exp $");
__RCSID("$NetBSD: policy.c,v 1.21 2006/03/18 00:35:02 peter Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -119,12 +119,15 @@ systrace_setupdir(char *path)
if (home == NULL)
errx(1, "No HOME environment set");
if (strlcpy(policydir, home, sizeof(policydir)) >= sizeof(policydir))
if (strlcpy(policydir, home, sizeof(policydir)) >=
sizeof(policydir))
errx(1, "HOME too long");
if (strlcat(policydir, "/.systrace", sizeof(policydir)) >= sizeof(policydir))
if (strlcat(policydir, "/.systrace", sizeof(policydir)) >=
sizeof(policydir))
errx(1, "HOME too long");
} else if (strlcpy(policydir, path, sizeof(policydir)) >= sizeof(policydir))
} else if (strlcpy(policydir, path, sizeof(policydir)) >=
sizeof(policydir))
errx(1, "policy directory too long");