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
This commit is contained in:
Gregory Neil Shapiro 2003-02-08 19:25:21 +00:00
parent 5f2e780d36
commit 518536da5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110553

View File

@ -1141,10 +1141,11 @@ deliver(fd, name)
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);
}