On 2/18/08, Gisle Vanem <[EMAIL PROTECTED]> wrote:
> 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 mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lynx-dev
>
Thanks for patch. Which OS is about (implementation of libc)?
It looks like on FreeBSD there is no need for "+". I will explore this
in future.
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev