- Update to 0.9.1

PR:		ports/112346
Submitted by:	mm
Additional testing:	Boris Lytochkin <lytboris@gmail.com>
This commit is contained in:
Andrew Pantyukhin 2007-07-28 11:24:57 +00:00
parent 5eb01fc1a5
commit b77a66d461
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196456
3 changed files with 5 additions and 69 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= curlftpfs
PORTVERSION= 0.9
PORTVERSION= 0.9.1
CATEGORIES= sysutils
MASTER_SITES= SF
PKGNAMEPREFIX= fusefs-
@ -19,6 +19,7 @@ LIB_DEPENDS= fuse.2:${PORTSDIR}/sysutils/fusefs-libs \
RUN_DEPENDS= ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
USE_GNOME= glib20
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/curlftpfs

View file

@ -1,3 +1,3 @@
MD5 (curlftpfs-0.9.tar.gz) = 7e29eb1963d4023bb7ea530a1b4274c4
SHA256 (curlftpfs-0.9.tar.gz) = b49e17152d9f782309bf0f42c4ef1f90911294861e4323d418cdcadfa28450cc
SIZE (curlftpfs-0.9.tar.gz) = 347657
MD5 (curlftpfs-0.9.1.tar.gz) = 969998e9cf1663824f44739e94c703a1
SHA256 (curlftpfs-0.9.1.tar.gz) = 9f50cdf02c0dc31ef148410345b2374d294d8853d2dae11775e36b0268ad227d
SIZE (curlftpfs-0.9.1.tar.gz) = 362542

View file

@ -1,65 +0,0 @@
--- ftpfs-ls.c.orig Tue Dec 12 11:09:37 2006
+++ ftpfs-ls.c Tue Dec 12 11:09:42 2006
@@ -6,7 +6,12 @@
See the file COPYING.
*/
+#ifndef __FreeBSD__
#define _XOPEN_SOURCE 600
+#else
+#define _XOPEN_SOURCE
+#endif
+
#include <time.h>
#include <string.h>
#include <sys/types.h>
@@ -27,7 +32,7 @@
long nlink = 1;
char user[33];
char group[33];
- long size;
+ unsigned long long size;
char month[4];
char day[3];
char year[6];
@@ -42,25 +47,25 @@
#define SPACES "%*[ \t]"
res = sscanf(line,
- "%11s" SPACES
+ "%11s"
"%lu" SPACES
"%32s" SPACES
"%32s" SPACES
- "%lu" SPACES
+ "%llu" SPACES
"%3s" SPACES
"%2s" SPACES
- "%5s" SPACES
+ "%5s" "%*c"
"%1023c",
mode, &nlink, user, group, &size, month, day, year, file);
if (res < 9) {
res = sscanf(line,
- "%11s" SPACES
+ "%11s"
"%32s" SPACES
"%32s" SPACES
- "%lu" SPACES
+ "%llu" SPACES
"%3s" SPACES
"%2s" SPACES
- "%5s" SPACES
+ "%5s" "%*c"
"%1023c",
mode, user, group, &size, month, day, year, file);
if (res < 8) {
@@ -156,7 +161,7 @@
if (!strcmp(size, "<DIR>")) {
sbuf->st_mode |= S_IFDIR;
} else {
- int nsize = strtol(size, NULL, 0);
+ unsigned long long nsize = strtoull(size, NULL, 0);
sbuf->st_mode |= S_IFREG;
sbuf->st_size = nsize;
if (ftpfs.blksize) {