[hackers] [surf] fix DOWNLOAD macro to use cookiefile variable || Carlos J. Torres
commit ba634ea8e3b884c4610c89d4491e70729d53bc43
Author: Carlos J. Torres <vlaadbrain_AT_gmail.com>
Date: Tue Feb 12 22:28:16 2013 -0500
fix DOWNLOAD macro to use cookiefile variable
Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>
diff --git a/config.def.h b/config.def.h
index d503bfb..da5a08f 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -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 \
} \
}
Received on Wed Feb 13 2013 - 06:51:57 CET
This archive was generated by hypermail 2.3.0
: Thu Feb 21 2013 - 19:26:34 CET