diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2016-03-06 18:22:24 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2016-03-06 18:22:24 +0000 |
commit | 8526db178678c940e9594ff82ef9746ae465950d (patch) | |
tree | 5219127c39d2af2e4e08c66ed070c68ec8952376 /usr.bin | |
parent | c7e729e17dd576bdb128a6846969f5d29e5de93e (diff) | |
download | FreeBSD-src-8526db178678c940e9594ff82ef9746ae465950d.zip FreeBSD-src-8526db178678c940e9594ff82ef9746ae465950d.tar.gz |
Merge 296424 from stable/10 - contains the following changes to -current:
r295924: Make sure that hash-based db files fsync befor closing/syncing.
r295925: We no longer need O_SYNC pwd_mkd
r295465: We no longer need O_SYNC on services_mkdb
r295800: We no longer need O_SYNC on cap_mkdb
Approved by: re (marius)
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cap_mkdb/cap_mkdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/cap_mkdb/cap_mkdb.c b/usr.bin/cap_mkdb/cap_mkdb.c index bbcedd5..2f8bd96 100644 --- a/usr.bin/cap_mkdb/cap_mkdb.c +++ b/usr.bin/cap_mkdb/cap_mkdb.c @@ -119,7 +119,7 @@ main(int argc, char *argv[]) (void)snprintf(buf, sizeof(buf), "%s.db", capname ? capname : *argv); if ((capname = strdup(buf)) == NULL) errx(1, "strdup failed"); - if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR | O_SYNC, + if ((capdbp = dbopen(capname, O_CREAT | O_TRUNC | O_RDWR, DEFFILEMODE, DB_HASH, &openinfo)) == NULL) err(1, "%s", buf); |