summaryrefslogtreecommitdiff
path: root/ftp/yafc/files
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2004-05-10 22:45:50 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2004-05-10 22:45:50 +0000
commitdf8066cafcfa16f6e9a481684991c64cb6d0ee35 (patch)
treeae19724a601bf0e16e947368ea7673476f5738ed /ftp/yafc/files
parentMark ONLY_FOR_ARCHS i386 and amd64. Diskmark doesn't make much sense (diff)
Fix the crash of resume and use INFO.
PR: ports/66457 Submitted by: Fredrik Lindberg <fliREMOVEME@shapeshifter.se> Approved by: adamw (mentor)
Diffstat (limited to 'ftp/yafc/files')
-rw-r--r--ftp/yafc/files/patch-src::get.c11
-rw-r--r--ftp/yafc/files/patch-src::put.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/ftp/yafc/files/patch-src::get.c b/ftp/yafc/files/patch-src::get.c
new file mode 100644
index 000000000000..7015a58c4796
--- /dev/null
+++ b/ftp/yafc/files/patch-src::get.c
@@ -0,0 +1,11 @@
+--- src/get.c.orig Mon May 10 17:24:10 2004
++++ src/get.c Mon May 10 17:25:04 2004
+@@ -279,7 +279,7 @@
+ e = xstrdup(ctime(&sb.st_mtime));
+ a = ask(ASKYES|ASKNO|ASKUNIQUE|ASKCANCEL|ASKALL|ASKRESUME,
+ ASKRESUME,
+- _("Local file '%s' exists\nLocal: %ld bytes, %sRemote: %ld bytes, %sOverwrite?"),
++ _("Local file '%s' exists\nLocal: %lld bytes, %sRemote: %ld bytes, %sOverwrite?"),
+ shortpath(dest, 42, gvLocalHomeDir),
+ sb.st_size, e ? e : "unknown date",
+ ftp_filesize(fi->path), ctime(&ft));
diff --git a/ftp/yafc/files/patch-src::put.c b/ftp/yafc/files/patch-src::put.c
new file mode 100644
index 000000000000..ab99f5f22c92
--- /dev/null
+++ b/ftp/yafc/files/patch-src::put.c
@@ -0,0 +1,11 @@
+--- src/put.c.orig Mon May 10 17:25:01 2004
++++ src/put.c Mon May 10 17:25:36 2004
+@@ -217,7 +217,7 @@
+ e = xstrdup(ctime(&sb->st_mtime));
+ a = ask(ASKYES|ASKNO|ASKUNIQUE|ASKCANCEL|ASKALL|ASKRESUME,
+ ASKRESUME,
+- _("Remote file '%s' exists\nLocal: %ld bytes, %sRemote: %ld bytes, %sOverwrite?"),
++ _("Remote file '%s' exists\nLocal: %lld bytes, %sRemote: %ld bytes, %sOverwrite?"),
+ shortpath(dest, 42, ftp->homedir),
+ sb->st_size, e ? e : "unknown date",
+ ftp_filesize(f->path), ctime(&ft));