[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lynx-dev] session_file fix
From: |
Gisle Vanem |
Subject: |
[Lynx-dev] session_file fix |
Date: |
Mon, 18 Feb 2008 20:06:25 +0100 |
The session_file isn't created when not existing. An easy fix is to
create is using "w+":
--- orig/src/LYSession.c Sun Feb 17 21:00:58 2008
+++ src/LYSession.c Mon Feb 18 20:01:02 2008
@@ -188,7 +188,7 @@
CTRACE((tfp, "SaveSession %s\n", my_filename));
SetDefaultMode(O_TEXT);
- if ((fp = fopen(my_filename, TXT_W)) != NULL) {
+ if ((fp = fopen(my_filename, TXT_W"+")) != NULL) {
fprintf(fp, "# lynx session\n"); /* @@@ simple for now */
--gv
- [Lynx-dev] session_file fix,
Gisle Vanem <=