summaryrefslogtreecommitdiff
path: root/sysutils/fcron/files/patch-fileconf.c
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2016-05-08 09:33:26 +0000
committerKurt Jaeger <pi@FreeBSD.org>2016-05-08 09:33:26 +0000
commit1eaca4435a9b6d940fa4f009d6452f3d0a44d908 (patch)
tree821c465a7112fc7fafa33b298c44fafe53b13014 /sysutils/fcron/files/patch-fileconf.c
parentNew port: mail/p5-Email-Outlook-Message (diff)
sysutils/fcron: 3.0.6 -> 3.2.0
Changes: http://fcron.free.fr/doc/en/changes.html - updated maintainer mail PR: 209139 Submitted by: bob@eager.cx (maintainer)
Notes
Notes: svn path=/head/; revision=414794
Diffstat (limited to 'sysutils/fcron/files/patch-fileconf.c')
-rw-r--r--sysutils/fcron/files/patch-fileconf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sysutils/fcron/files/patch-fileconf.c b/sysutils/fcron/files/patch-fileconf.c
index 9255b7909027..53bff7b53462 100644
--- a/sysutils/fcron/files/patch-fileconf.c
+++ b/sysutils/fcron/files/patch-fileconf.c
@@ -1,15 +1,15 @@
We don't need to fflush the file, since it is opened read-only.
---- fileconf.c.orig 2011-07-18 19:55:28.726082293 +0400
-+++ fileconf.c 2011-07-18 19:55:37.988079816 +0400
-@@ -264,10 +264,6 @@
+--- fileconf.c.orig 2014-05-10 17:03:59 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(default_line.cl_runas);
- free(default_line.cl_mailto);
- free(default_line.cl_tz);
+-
+ Free_safe(default_line.cl_runas);
+ Free_safe(default_line.cl_mailto);
+ Free_safe(default_line.cl_tz);