mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -04:00
- @-lines can now be run up to every second (previously every 10s at most) PR: 211451 Submitted by: bob@eager.cx (maintainer)
15 lines
627 B
C
15 lines
627 B
C
Replace fdatasync() with fsync() because FreeBSD doesn't have fdatasync().
|
|
|
|
--- save.c.orig 2016-06-26 15:02:48 UTC
|
|
+++ save.c
|
|
@@ -315,8 +315,8 @@ write_file_to_disk(int fd, struct cf_t *
|
|
* This is to avoid cases where the file name (meta-data) would be updated,
|
|
* and there is a crash before the data is fully written: not sure if that
|
|
* is possible, but better safe than sorry! */
|
|
- if (fdatasync(fd) < 0) {
|
|
- error_e("could not fdatasync() %s's fcrontab", file->cf_user);
|
|
+ if (fsync(fd) < 0) {
|
|
+ error_e("could not fsync() %s's fcrontab", file->cf_user);
|
|
return ERR;
|
|
}
|
|
|