aboutsummaryrefslogtreecommitdiff
path: root/libexec/mail.local
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-10-31 09:16:46 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-10-31 09:16:46 +0000
commite2326c6ef60f68a45ef04a8dc1a1b31df472314c (patch)
tree61710111ee54b29e5f94c0ba67d58208ec9fa3c9 /libexec/mail.local
parent46e838403c98c448cc8866302d13d99b934f7d87 (diff)
downloadsrc-e2326c6ef60f68a45ef04a8dc1a1b31df472314c.tar.gz
src-e2326c6ef60f68a45ef04a8dc1a1b31df472314c.zip
Revert fsync ifdef behaviour and name, now default variant acts like
original one. Suggested by: peter
Notes
Notes: svn path=/head/; revision=11952
Diffstat (limited to 'libexec/mail.local')
-rw-r--r--libexec/mail.local/Makefile4
-rw-r--r--libexec/mail.local/mail.local.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile
index ea539a67d348..10371e436017 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 d7b43a607f34..0d80972814dc 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);