fix DOWNLOAD macro to use cookiefile variable

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Carlos J. Torres 2013-02-12 22:28:16 -05:00 committed by Christoph Lohmann
parent 24f0f83197
commit ba634ea8e3

View File

@ -29,10 +29,9 @@ static Bool hidebackground = FALSE;
#define DOWNLOAD(d, r) { \ #define DOWNLOAD(d, r) { \
.v = (char *[]){ "/bin/sh", "-c", \ .v = (char *[]){ "/bin/sh", "-c", \
"st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \ "st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \
" --referer '$2'" \ " --referer '$2' -b $3 -c $3 '$0';" \
" -b ~/.surf/cookies.txt -c ~/.surf/cookies.txt '$0';" \
" sleep 5;\"", \ " sleep 5;\"", \
d, useragent, r, NULL \ d, useragent, r, cookiefile, NULL \
} \ } \
} }