diff options
author | Andrew Pantyukhin <sat@FreeBSD.org> | 2006-12-15 22:08:00 +0000 |
---|---|---|
committer | Andrew Pantyukhin <sat@FreeBSD.org> | 2006-12-15 22:08:00 +0000 |
commit | a8b5554cece6b4c61815ad58104b633f39e2dc26 (patch) | |
tree | dc83fdb152296f8afc55281855f8d642057f6d31 /sysutils/fusefs-curlftpfs | |
parent | cb290516799354ad0ac3359f781eb6fb33d47551 (diff) |
Notes
Diffstat (limited to 'sysutils/fusefs-curlftpfs')
-rw-r--r-- | sysutils/fusefs-curlftpfs/Makefile | 3 | ||||
-rw-r--r-- | sysutils/fusefs-curlftpfs/distinfo | 6 | ||||
-rw-r--r-- | sysutils/fusefs-curlftpfs/files/patch-ftpfs-ls.c | 65 |
3 files changed, 69 insertions, 5 deletions
diff --git a/sysutils/fusefs-curlftpfs/Makefile b/sysutils/fusefs-curlftpfs/Makefile index 7cfa525ac727..250e6bc90792 100644 --- a/sysutils/fusefs-curlftpfs/Makefile +++ b/sysutils/fusefs-curlftpfs/Makefile @@ -6,8 +6,7 @@ # PORTNAME= curlftpfs -PORTVERSION= 0.8 -PORTREVISION= 1 +PORTVERSION= 0.9 CATEGORIES= sysutils MASTER_SITES= SF PKGNAMEPREFIX= fusefs- diff --git a/sysutils/fusefs-curlftpfs/distinfo b/sysutils/fusefs-curlftpfs/distinfo index 4cc7d4ff9115..4bfc44a2c61b 100644 --- a/sysutils/fusefs-curlftpfs/distinfo +++ b/sysutils/fusefs-curlftpfs/distinfo @@ -1,3 +1,3 @@ -MD5 (curlftpfs-0.8.tar.gz) = 5322877611319397319ca0012ccc61c9 -SHA256 (curlftpfs-0.8.tar.gz) = 610c5e769f23632ff2d14067880b377797228151b661b1da78fea50651ec12d1 -SIZE (curlftpfs-0.8.tar.gz) = 345187 +MD5 (curlftpfs-0.9.tar.gz) = 7e29eb1963d4023bb7ea530a1b4274c4 +SHA256 (curlftpfs-0.9.tar.gz) = b49e17152d9f782309bf0f42c4ef1f90911294861e4323d418cdcadfa28450cc +SIZE (curlftpfs-0.9.tar.gz) = 347657 diff --git a/sysutils/fusefs-curlftpfs/files/patch-ftpfs-ls.c b/sysutils/fusefs-curlftpfs/files/patch-ftpfs-ls.c new file mode 100644 index 000000000000..86e9deecba72 --- /dev/null +++ b/sysutils/fusefs-curlftpfs/files/patch-ftpfs-ls.c @@ -0,0 +1,65 @@ +--- 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) { |