]> git.pond.sub.org Git - empserver/commitdiff
Clean up read to open telegram file read-only
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 26 Nov 2011 15:45:01 +0000 (16:45 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:07 +0000 (11:47 +0100)
Update mode hasn't been necessary since 4.0.11 dropped use of
ftruncate().

src/lib/commands/rea.c

index c4693db61ea5bb94ee7fdd0e1d14c3480c2acbaa..118e08696ea7e174dc43526d5193510ed43da53c 100644 (file)
@@ -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;
     }