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:
parent
5f2e780d36
commit
518536da5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110553
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user