| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/fcron/files/ |
Upload File : |
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;
}