summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/mail.local
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2003-03-03 17:09:13 +0000
committergshapiro <gshapiro@FreeBSD.org>2003-03-03 17:09:13 +0000
commit8b739caa56202c57ac3a53e04d5b561d17b20b6c (patch)
treec4b8d0d0ebe91f329b287df46f58ccc920e3b626 /contrib/sendmail/mail.local
parent5f679456e6cc5d369320dfb497d26e22f47f34f0 (diff)
downloadFreeBSD-src-8b739caa56202c57ac3a53e04d5b561d17b20b6c.zip
FreeBSD-src-8b739caa56202c57ac3a53e04d5b561d17b20b6c.tar.gz
Import sendmail 8.12.8
Diffstat (limited to 'contrib/sendmail/mail.local')
-rw-r--r--contrib/sendmail/mail.local/mail.local.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/sendmail/mail.local/mail.local.c b/contrib/sendmail/mail.local/mail.local.c
index 027829f..68160b5 100644
--- a/contrib/sendmail/mail.local/mail.local.c
+++ b/contrib/sendmail/mail.local/mail.local.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers.
+ * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers.
* All rights reserved.
* Copyright (c) 1990, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -18,7 +18,7 @@ SM_IDSTR(copyright,
Copyright (c) 1990, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n")
-SM_IDSTR(id, "@(#)$Id: mail.local.c,v 8.239.2.2 2002/09/24 02:09:09 ca Exp $")
+SM_IDSTR(id, "@(#)$Id: mail.local.c,v 8.239.2.4 2003/01/15 19:17:15 ca Exp $")
#include <stdlib.h>
#include <sm/errstring.h>
@@ -1038,7 +1038,12 @@ tryagain:
mbfd = -1;
}
}
- else if (sb.st_nlink != 1 || !S_ISREG(sb.st_mode))
+ else if (sb.st_nlink != 1)
+ {
+ mailerr("550 5.2.0", "%s: too many links", path);
+ goto err0;
+ }
+ else if (!S_ISREG(sb.st_mode))
{
mailerr("550 5.2.0", "%s: irregular file", path);
goto err0;
OpenPOWER on IntegriCloud