From: Markus Armbruster Date: Sat, 26 Nov 2011 15:45:01 +0000 (+0100) Subject: Clean up read to open telegram file read-only X-Git-Tag: v4.3.29~4 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=421907fcb8368235daa6f54f5fc9435920742f64;ds=sidebyside Clean up read to open telegram file read-only Update mode hasn't been necessary since 4.0.11 dropped use of ftruncate(). --- diff --git a/src/lib/commands/rea.c b/src/lib/commands/rea.c index c4693db61..118e08696 100644 --- a/src/lib/commands/rea.c +++ b/src/lib/commands/rea.c @@ -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; }