From eb02905cc1cc8a1096b2ee1e7297f904da299467 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 31 Oct 1995 09:16:46 +0000 Subject: Revert fsync ifdef behaviour and name, now default variant acts like original one. Suggested by: peter --- libexec/mail.local/Makefile | 4 +++- libexec/mail.local/mail.local.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'libexec/mail.local') diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile index ea539a6..10371e4 100644 --- a/libexec/mail.local/Makefile +++ b/libexec/mail.local/Makefile @@ -2,7 +2,9 @@ PROG= mail.local MAN8= mail.local.8 -# CFLAGS+= -DEXTRA_SAFETY +.if defined(DONT_FSYNC) +CFLAGS+= -DDONT_FSYNC +.endif BINOWN= root BINMODE=4555 INSTALLFLAGS=-fschg diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c index d7b43a6..0d80972 100644 --- a/libexec/mail.local/mail.local.c +++ b/libexec/mail.local/mail.local.c @@ -298,7 +298,7 @@ err1: (void)close(mbfd); return; } -#ifdef EXTRA_SAFETY +#ifndef DONT_FSYNC /* Flush to disk, don't wait for update. */ if (fsync(mbfd)) { e_to_sys(errno); -- cgit v1.1