projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only catch filenames if the "/" is leading
[unix-history]
/
usr
/
src
/
usr.sbin
/
sendmail
/
src
/
recipient.c
diff --git
a/usr/src/usr.sbin/sendmail/src/recipient.c
b/usr/src/usr.sbin/sendmail/src/recipient.c
index
0cac122
..
737c875
100644
(file)
--- a/
usr/src/usr.sbin/sendmail/src/recipient.c
+++ b/
usr/src/usr.sbin/sendmail/src/recipient.c
@@
-2,7
+2,7
@@
# include "sendmail.h"
# include <sys/stat.h>
# include "sendmail.h"
# include <sys/stat.h>
-SCCSID(@(#)recipient.c 3.3
2
%G%);
+SCCSID(@(#)recipient.c 3.3
3
%G%);
/*
** SENDTO -- Designate a send list.
/*
** SENDTO -- Designate a send list.
@@
-327,8
+327,9
@@
recipient(a, sendq)
stripquotes(buf, TRUE);
/* see if this is to a file */
stripquotes(buf, TRUE);
/* see if this is to a file */
- if (
(p = rindex(buf, '/')) != NULL
)
+ if (
buf[0] == '/'
)
{
{
+ p = rindex(buf, '/');
/* check if writable or creatable */
if (a->q_alias == NULL && Debug == 0 && !QueueRun && !ForceMail)
{
/* check if writable or creatable */
if (a->q_alias == NULL && Debug == 0 && !QueueRun && !ForceMail)
{