mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Fix mirroring the root directory of an FTP server [1].
The original author's email address bounces, so this is fixed here. - Move patch from patch-aa to patch-fmirror.c Submitted by: Fred Cox <sailorfred@yahoo.com> Approved by: Xavier Beaudouin <kiwi@oav.net> (maintainer) PR: ports/81787
This commit is contained in:
parent
4b16656696
commit
491be68d30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136973
3 changed files with 21 additions and 12 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= fmirror
|
PORTNAME= fmirror
|
||||||
PORTVERSION= 0.8.4
|
PORTVERSION= 0.8.4
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= ftp
|
CATEGORIES= ftp
|
||||||
MASTER_SITES= ftp://ftp.guardian.no/pub/free/ftp/fmirror/ \
|
MASTER_SITES= ftp://ftp.guardian.no/pub/free/ftp/fmirror/ \
|
||||||
ftp://ftp.oav.net/pkg_freebsd/distfiles/
|
ftp://ftp.oav.net/pkg_freebsd/distfiles/
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- fmirror.c.old Fri Apr 11 21:37:09 2003
|
|
||||||
+++ fmirror.c Fri Apr 11 21:39:33 2003
|
|
||||||
@@ -642,7 +642,7 @@
|
|
||||||
va_list args;
|
|
||||||
va_start(args, format);
|
|
||||||
vsprintf(buffer, format, args);
|
|
||||||
- l = fprintf(out_file, "%s\n", buffer);
|
|
||||||
+ l = fprintf(out_file, "%s\r\n", buffer);
|
|
||||||
fflush(out_file);
|
|
||||||
buffer[l - 1] = 0;
|
|
||||||
LOG(6, cmd, ("---> %s", buffer));
|
|
20
ftp/fmirror/files/patch-fmirror.c
Normal file
20
ftp/fmirror/files/patch-fmirror.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- fmirror.c.orig Tue Jun 7 10:39:35 2005
|
||||||
|
+++ fmirror.c Tue Jun 7 10:39:44 2005
|
||||||
|
@@ -642,7 +642,7 @@
|
||||||
|
va_list args;
|
||||||
|
va_start(args, format);
|
||||||
|
vsprintf(buffer, format, args);
|
||||||
|
- l = fprintf(out_file, "%s\n", buffer);
|
||||||
|
+ l = fprintf(out_file, "%s\r\n", buffer);
|
||||||
|
fflush(out_file);
|
||||||
|
buffer[l - 1] = 0;
|
||||||
|
LOG(6, cmd, ("---> %s", buffer));
|
||||||
|
@@ -934,7 +934,7 @@
|
||||||
|
|
||||||
|
if (gotodir) {
|
||||||
|
cmd("CWD %s", gotodir);
|
||||||
|
- if (!success()) {
|
||||||
|
+ if (!success() && strcmp(gotodir, "/") != 0) {
|
||||||
|
LOG(4, findtz, ("Cannot CWD %s for timezone", gotodir));
|
||||||
|
gotodir = 0;
|
||||||
|
goto dirdone;
|
Loading…
Add table
Reference in a new issue