From 8354937a270536f258df7d31b6238d663c982ccf Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Sat, 12 Dec 2015 10:01:00 +0000 Subject: use smtpd specific define for table name sizes --- usr.sbin/smtpd/smtpd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index 45c9b6eb81c..0ffa436d367 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.501 2015/12/12 09:58:33 gilles Exp $ */ +/* $OpenBSD: smtpd.h,v 1.502 2015/12/12 10:00:59 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -116,7 +116,7 @@ struct relayhost { uint16_t port; char pki_name[HOST_NAME_MAX+1]; char ca_name[HOST_NAME_MAX+1]; - char authtable[PATH_MAX]; + char authtable[SMTPD_TABLENAME_SIZE]; char authlabel[PATH_MAX]; char sourcetable[PATH_MAX]; char heloname[HOST_NAME_MAX+1]; @@ -408,7 +408,7 @@ struct rule { struct delivery_mda { enum action_type method; - char usertable[PATH_MAX]; + char usertable[SMTPD_TABLENAME_SIZE]; char username[SMTPD_VUSERNAME_SIZE]; char buffer[EXPAND_BUFFER]; char delivery_user[SMTPD_VUSERNAME_SIZE]; -- cgit v1.2.3