From bfbafd9aaba5bae73a0b70e2042a5e14d89c1535 Mon Sep 17 00:00:00 2001 From: "Carlos J. Torres" Date: Tue, 12 Feb 2013 22:28:16 -0500 Subject: [PATCH] fix DOWNLOAD macro to use cookiefile variable --- config.def.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index d503bfb..da5a08f 100644 --- a/config.def.h +++ b/config.def.h @@ -29,10 +29,9 @@ static Bool hidebackground = FALSE; #define DOWNLOAD(d, r) { \ .v = (char *[]){ "/bin/sh", "-c", \ "st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \ - " --referer '$2'" \ - " -b ~/.surf/cookies.txt -c ~/.surf/cookies.txt '$0';" \ + " --referer '$2' -b $3 -c $3 '$0';" \ " sleep 5;\"", \ - d, useragent, r, NULL \ + d, useragent, r, cookiefile, NULL \ } \ } -- 1.7.12.1