Only plumb images, download other binary files. - sacc - sacc(omys), simple console gopher client
HTML git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR LICENSE
---
DIR commit d5c8126b99443c415ded9ef8e3f4618102565054
DIR parent 4f271e2e9864f65f96a356eb607963cc1326bf95
HTML Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 25 Jul 2017 18:49:37 +0200
Only plumb images, download other binary files.
Diffstat:
M sacc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
DIR diff --git a/sacc.c b/sacc.c
@@ -463,7 +463,7 @@ plumb(char *url)
}
static int
-displayimg(Item *item)
+plumbitem(Item *item)
{
int tmpfd;
@@ -513,9 +513,12 @@ dig(Item *entry, Item *item)
case '5':
case '6':
case '9':
+ if (!downloaditem(item))
+ return 0;
+ break;
case 'g':
case 'I':
- if (!displayimg(item))
+ if (!plumbitem(item))
return 0;
break;
default: