lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] session_file fix


From: Paul B. Mahol
Subject: Re: [Lynx-dev] session_file fix
Date: Mon, 18 Feb 2008 23:00:47 +0100

On 2/18/08, Gisle Vanem <address@hidden> 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
> address@hidden
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]