diff options
author | ache <ache@FreeBSD.org> | 1995-10-31 09:16:46 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-10-31 09:16:46 +0000 |
commit | eb02905cc1cc8a1096b2ee1e7297f904da299467 (patch) | |
tree | 61710111ee54b29e5f94c0ba67d58208ec9fa3c9 /libexec/mail.local | |
parent | ace51e8ffc14e6da488378e44831da9e155f90d4 (diff) | |
download | FreeBSD-src-eb02905cc1cc8a1096b2ee1e7297f904da299467.zip FreeBSD-src-eb02905cc1cc8a1096b2ee1e7297f904da299467.tar.gz |
Revert fsync ifdef behaviour and name, now default variant acts like
original one.
Suggested by: peter
Diffstat (limited to 'libexec/mail.local')
-rw-r--r-- | libexec/mail.local/Makefile | 4 | ||||
-rw-r--r-- | libexec/mail.local/mail.local.c | 2 |
2 files changed, 4 insertions, 2 deletions
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); |