summaryrefslogtreecommitdiff
path: root/editors/led
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-04-29 23:25:30 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-04-29 23:25:30 +0000
commit4595219ad6133680ea149e1d418d3bbbf27d3de1 (patch)
tree9f54ba9256ab3653d6c2953b376ad48b963523f8 /editors/led
parent- Use USE_LIBTOOL; (diff)
Issue fflush()->fsync() after saving file to the disk, so that the user will
not get zero-sized file after reboot if the system crashed shortly after the save, as it usually the case when you are hacking some potential panic(9) implementation (e.g. kernel module). Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=58342
Diffstat (limited to 'editors/led')
-rw-r--r--editors/led/Makefile1
-rw-r--r--editors/led/files/patch-src::file.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/editors/led/Makefile b/editors/led/Makefile
index e4a29d221434..8bdc898234e9 100644
--- a/editors/led/Makefile
+++ b/editors/led/Makefile
@@ -7,6 +7,7 @@
PORTNAME= led
PORTVERSION= 0.9.2
+PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}-editor
diff --git a/editors/led/files/patch-src::file.c b/editors/led/files/patch-src::file.c
new file mode 100644
index 000000000000..e0df894f46ba
--- /dev/null
+++ b/editors/led/files/patch-src::file.c
@@ -0,0 +1,12 @@
+
+$FreeBSD$
+
+--- src/file.c.orig Sun Jun 10 06:44:19 2001
++++ src/file.c Tue Apr 30 02:15:40 2002
+@@ -148,4 +148,6 @@
+
+ curr = curr->next;
+ }
++ fflush(fp);
++ fsync(fileno(fp));
+ }