head	1.2;
access;
symbols
	old_RELEASE_5_0_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2003.03.03.00.52.42;	author sf;	state dead;
branches;
next	1.1;

1.1
date	2002.12.11.15.58.37;	author sf;	state Exp;
branches;
next	;


desc
@@


1.2
log
@o import Debian patches.
 - fix .netrc parsing bug
 - fix 2GB limitation
 - re-add IPv6 capability
 - fix SEGV with special url line
 check debian/changelog for more detail.

o replace /usr/local with ${PREFIX} in wgetrc and info.

PR:		38824 reported 2GB limitation
Obtained from:	Debian GNU/Linux
@
text
@$OpenBSD: patch-src_fnmatch_c,v 1.1 2002/12/10 18:37:24 brad Exp $
--- src/fnmatch.c.orig	Tue Dec 10 13:06:09 2002
+++ src/fnmatch.c	Tue Dec 10 13:07:23 2002
@@@@ -188,6 +188,17 @@@@ fnmatch (const char *pattern, const char
   return (FNM_NOMATCH);
 }
 
+/* Return non-zero if S has a leading '/'  or contains '../' */
+int
+has_invalid_name (const char *s)
+{
+	if (*s == '/')
+		return 1;
+	if (strstr(s, "../") != 0)
+		return 1;
+	return 0;
+}
+
 /* Return non-zero if S contains globbing wildcards (`*', `?', `[' or
    `]').  */
 int
@


1.1
log
@Fix directory traversal bug in FTP.

References:
http://marc.theaimsgroup.com/?l=bugtraq&m=87602746719482&w=2
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1344

Patches obtained from: Red Hat Linux
Approved by:	portmgr(will)
@
text
@@

