[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Default cookies filename: ~/.lynx_cookies or ~/cookies?
From: |
brian j. pardy |
Subject: |
Re: lynx-dev Default cookies filename: ~/.lynx_cookies or ~/cookies? |
Date: |
Sun, 27 Sep 1998 14:13:19 -0700 |
Wilson Cheung wrote:
> While we're still sorting out how to best deal with persistent cookies, did
> we ever officially decide whether "~/.lynx_cookies" or "~/cookies" would
> be the default cookie filename?
I think we were pretty much in agreement on using "~/.lynx_cookies".
> In lynx.cfg, there is the following section:
>
> # COOKIE_FILE is the default file to store persistent downloaded cookies
> # in, if Lynx was compiled with EXP_PERSISTENT_COOKIES. The cookie file
> # can also be specified in .lynxrc or on the commandline.
> #COOKIE_FILE:~/.lynx_cookies
>
> Traditionally, I've always treated such commented out configuration
> parameters like "#COOKIE_FILE:~/.lynx_cookies" in lynx.cfg as the built-in
> hardcoded compiled-in default (either actually specified in userdefs.h or
> in a *.h or *.c file in the lynx src directory).
I agree, this is how I look at things.
[...]
> Currently, it appears that if one leaves this COOKIE_FILE parameter
> in lynx.cfg commented out as shipped, lynx only wants to use the
> "~/cookies" file instead of the expected "~/.lynx_cookies" file.
>
> I think the bug is in LYMain.c within the EXP_PERSISTENT_COOKIES section
> of the code. It appears that if COOKIE_FILE is NULL, then lynx always
> goes and creates/uses "~/cookies".
I think I just missed that part when I set up the COOKIE_FILE option. My
preference is for Lynx to create "~/.lynx_cookies", so this small change
to LYMain.c should have Lynx perform the expected behavior.
diff -cr 2.8.1pre.3/src/LYMain.c 2.8.1pre.3.bri/src/LYMain.c
*** 2.8.1pre.3/src/LYMain.c Sat Sep 26 21:26:24 1998
--- 2.8.1pre.3.bri/src/LYMain.c Sun Sep 27 14:00:04 1998
***************
*** 1477,1483 ****
* cookies file, probably. - RP
*/
if(LYCookieFile == NULL) {
! LYAddPathToHome(LYCookieFile = malloc(LY_MAXPATH), LY_MAXPATH,
"cookies");
} else {
if ((cp = strchr(LYCookieFile, '~'))) {
temp = NULL;
--- 1477,1483 ----
* cookies file, probably. - RP
*/
if(LYCookieFile == NULL) {
! LYAddPathToHome(LYCookieFile = malloc(LY_MAXPATH), LY_MAXPATH,
".lynx_cookies");
} else {
if ((cp = strchr(LYCookieFile, '~'))) {
temp = NULL;
--
If at first you don't succeed, you're doing about average.
-- Leonard Levinson