summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos J. Torres <vlaadbrain@gmail.com>2013-02-12 22:28:16 -0500
committerChristoph Lohmann <20h@r-36.net>2013-02-13 06:49:17 +0100
commitba634ea8e3b884c4610c89d4491e70729d53bc43 (patch)
tree0ed36135ec11daf90de61def6f002f108a773e09
parent24f0f831972ec19ac0663a1fbe00a280e736d4f5 (diff)
downloadsurf-ba634ea8e3b884c4610c89d4491e70729d53bc43.tar.gz
surf-ba634ea8e3b884c4610c89d4491e70729d53bc43.tar.bz2
surf-ba634ea8e3b884c4610c89d4491e70729d53bc43.zip
fix DOWNLOAD macro to use cookiefile variable
Signed-off-by: Christoph Lohmann <20h@r-36.net>
-rw-r--r--config.def.h5
1 files 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 \
} \
}