HTTrack Website Copier
Free software offline browser - FORUM
Subject: httrack -W broken under musl based distributions
Author: Lorenzo
Date: 09/13/2023 14:44
"httrack -W" should ask a question, flush stdout, read the answer; it does so
for the project name, forgets to do so for the base path, the proxy and
possibly more (I stopped checking), which happens to work on glibc but breaks
musl-based distributions such as void, alpine, ...

IMHO it's a lot easier to just unbuffer stdout, ie

diff --git a/src/htshelp.c b/src/htshelp.c
index e51e498..8095c12 100644
--- a/src/htshelp.c
+++ b/src/htshelp.c
@@ -200,6 +200,7 @@ void help_wizard(httrackp * opt) {
   printf("To see the option list, enter a blank line or try httrack
   // Project name
+  setbuf(stdout, NULL);
   while(strnotempty(projname) == 0) {
     printf("Enter project name :");

All articles

Subject Author Date
httrack -W broken under musl based distributions

09/13/2023 14:44


Created with FORUM 2.0.11