1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

o fix coredump in rate limitation.

o remove stray debugging message.

Obtained from:	wget CVS
This commit is contained in:
FUJISHIMA Satsuki 2001-12-17 20:44:12 +00:00
parent 0474c4d38a
commit f19760c0b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51699
6 changed files with 76 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= wget
PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= ftp www
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \

View File

@ -0,0 +1,20 @@
Index: src/main.c
===================================================================
RCS file: /pack/anoncvs/wget/src/main.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- src/main.c 2001/12/06 07:14:35 1.66
+++ src/main.c 2001/12/09 19:44:20 1.67
@@ -738,10 +738,7 @@
{
char *rewritten = rewrite_shorthand_url (argv[optind]);
if (rewritten)
- {
- printf ("Converted %s to %s\n", argv[optind], rewritten);
- url[i] = rewritten;
- }
+ url[i] = rewritten;
else
url[i] = xstrdup (argv[optind]);
}

View File

@ -0,0 +1,17 @@
Index: src/progress.c
===================================================================
RCS file: /pack/anoncvs/wget/src/progress.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- src/progress.c 2001/12/09 01:24:40 1.21 WGET_1_8
+++ src/progress.c 2001/12/09 04:51:40 1.22
@@ -647,7 +647,7 @@
/* Hours not printed: pad with three spaces (two digits and
colon). */
APPEND_LITERAL (" ");
- else if (eta_hrs >= 10)
+ else if (eta_hrs < 10)
/* Hours printed with one digit: pad with one space. */
*p++ = ' ';
else

View File

@ -7,6 +7,7 @@
PORTNAME= wget
PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= ftp www
MASTER_SITES= ${MASTER_SITE_GNU} \
ftp://ftp.dl.ac.uk/ccp14/ftp-mirror/wget/pub/unix/util/wget/ \

View File

@ -0,0 +1,20 @@
Index: src/main.c
===================================================================
RCS file: /pack/anoncvs/wget/src/main.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- src/main.c 2001/12/06 07:14:35 1.66
+++ src/main.c 2001/12/09 19:44:20 1.67
@@ -738,10 +738,7 @@
{
char *rewritten = rewrite_shorthand_url (argv[optind]);
if (rewritten)
- {
- printf ("Converted %s to %s\n", argv[optind], rewritten);
- url[i] = rewritten;
- }
+ url[i] = rewritten;
else
url[i] = xstrdup (argv[optind]);
}

View File

@ -0,0 +1,17 @@
Index: src/progress.c
===================================================================
RCS file: /pack/anoncvs/wget/src/progress.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- src/progress.c 2001/12/09 01:24:40 1.21 WGET_1_8
+++ src/progress.c 2001/12/09 04:51:40 1.22
@@ -647,7 +647,7 @@
/* Hours not printed: pad with three spaces (two digits and
colon). */
APPEND_LITERAL (" ");
- else if (eta_hrs >= 10)
+ else if (eta_hrs < 10)
/* Hours printed with one digit: pad with one space. */
*p++ = ' ';
else