Clean up read to open telegram file read-only
Update mode hasn't been necessary since 4.0.11 dropped use of ftruncate().
This commit is contained in:
parent
cda63a40d8
commit
421907fcb8
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ rea(void)
|
|||
mbox = mailbox(mbox_buf, num);
|
||||
}
|
||||
|
||||
if (!(telfp = fopen(mbox, "rb+"))) {
|
||||
if (!(telfp = fopen(mbox, "rb"))) {
|
||||
logerror("telegram file %s", mbox);
|
||||
return RET_FAIL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue