diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2003-02-08 19:25:21 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2003-02-08 19:25:21 +0000 |
commit | 42bfe7db1eb45e5420ab7e5479c3e989e4db9534 (patch) | |
tree | 6c14b798d561920e74e36fe2eae1272c78151a64 /contrib/sendmail/mail.local | |
parent | 0cb596bf6453ea8a2cf03b77b46ab52f93ce5d7e (diff) | |
download | FreeBSD-src-42bfe7db1eb45e5420ab7e5479c3e989e4db9534.zip FreeBSD-src-42bfe7db1eb45e5420ab7e5479c3e989e4db9534.tar.gz |
Even if biff is turned off, we still need to set curoff as the code
uses that if there is an error writing to the mailbox. Note this bug
is only in the FreeBSD code, not the vendor code (which doesn't offer
nobiff).
PR: misc/43392
MFC after: 3 days
Diffstat (limited to 'contrib/sendmail/mail.local')
-rw-r--r-- | contrib/sendmail/mail.local/mail.local.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/sendmail/mail.local/mail.local.c b/contrib/sendmail/mail.local/mail.local.c index eb075eb..e6d6984 100644 --- a/contrib/sendmail/mail.local/mail.local.c +++ b/contrib/sendmail/mail.local/mail.local.c @@ -1141,10 +1141,11 @@ tryagain: goto err1; } + /* Get the starting offset of the new message for biff. */ + curoff = lseek(mbfd, (off_t) 0, SEEK_END); + if (!nobiff) { - /* Get the starting offset of the new message for biff. */ - curoff = lseek(mbfd, (off_t) 0, SEEK_END); (void) sm_snprintf(biffmsg, sizeof(biffmsg), "%s@%lld\n", name, (LONGLONG_T) curoff); } |