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:
Markus Armbruster 2011-11-26 16:45:01 +01:00
parent cda63a40d8
commit 421907fcb8

View file

@ -94,7 +94,7 @@ rea(void)
mbox = mailbox(mbox_buf, num); mbox = mailbox(mbox_buf, num);
} }
if (!(telfp = fopen(mbox, "rb+"))) { if (!(telfp = fopen(mbox, "rb"))) {
logerror("telegram file %s", mbox); logerror("telegram file %s", mbox);
return RET_FAIL; return RET_FAIL;
} }