#! /bin/sh /usr/share/dpatch/dpatch-run ## google_cookie.dpatch by Joey Schulze ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Accept Google's cookie on / even if path=/search @DPATCH@ diff -urNad lynx-cur-2.8.7dev9~/src/LYCookie.c lynx-cur-2.8.7dev9/src/LYCookie.c --- lynx-cur-2.8.7dev9~/src/LYCookie.c 2008-02-17 23:00:58.000000000 +0100 +++ lynx-cur-2.8.7dev9/src/LYCookie.c 2008-07-11 15:20:49.000000000 +0200 @@ -73,6 +73,8 @@ #include +#include + /* default for new domains, one of the invcheck_behaviour_t values: */ #define DEFAULT_INVCHECK_BV INVCHECK_QUERY @@ -386,6 +388,8 @@ break; /* continue as if nothing were wrong */ case INVCHECK_QUERY: + if (!(strstr(hostname, ".google.") && strstr(co->domain, ".google.") && + !strcmp(co->path, "/search") && !strcmp(path, "/"))) invprompt_reasons |= FAILS_COND1; break; /* will prompt later if we get that far */