1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/sysutils/fcron/files/patch-fileconf.c
Kurt Jaeger ed81849c9f sysutils/fcron: 3.2.0 -> 3.2.1
- @-lines can now be run up to every second (previously every 10s at most)

PR:		211451
Submitted by:	bob@eager.cx (maintainer)
2016-07-30 14:22:03 +00:00

16 lines
511 B
C

We don't need to fflush the file, since it is opened read-only.
--- fileconf.c.orig 2016-06-26 17:42:39 UTC
+++ fileconf.c
@@ -278,10 +278,6 @@ read_file(char *filename, int fd)
cf->cf_next = file_base;
file_base = cf;
- /* don't close as underlying fd may still be used by calling function */
- if (fflush(file) != 0)
- error_e("could not fflush() file_name");
-
Free_safe(default_line.cl_runas);
Free_safe(default_line.cl_mailfrom);
Free_safe(default_line.cl_mailto);