aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2005-10-31 20:49:43 +0800
committerbarner <barner@FreeBSD.org>2005-10-31 20:49:43 +0800
commitefdd97ebac18c711b32f0cf773a2da0ebeb4dc4b (patch)
treea2ac9d4405d227f137a9e9d3b395f4a3bc3e38de /sysutils
parent67908b4aabd002495463ca7621659e42eaf5a5b3 (diff)
downloadfreebsd-ports-gnome-efdd97ebac18c711b32f0cf773a2da0ebeb4dc4b.tar.gz
freebsd-ports-gnome-efdd97ebac18c711b32f0cf773a2da0ebeb4dc4b.tar.zst
freebsd-ports-gnome-efdd97ebac18c711b32f0cf773a2da0ebeb4dc4b.zip
- Update to 1.3 [1]
ChangeLog summary: * bugfixes * Add remote uid detection and translation ('idmap=user' option). Idea and implementation details worked out by Jean-Marc Valin (Since this is rather untested, it's not yet mentioned in pkg-message). * Add support for SSH protocol version 1. Bug reported by Miklos Bagi Jr. * Add atomic create+open and ftruncate operation. This should fix issues with 'cp' and other programs failing with "Permission denied". To be effective, needs FUSE version 2.5 and kernel version 2.6.15 (just a guess, since neither of them is released yet). (Investigations are made whether this is possible/necessary for fuse4bsd) - User lower case in first letter of IGNORE Submitted by: Anish Mistry (maintainer) PR: ports/88265
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/fusefs-sshfs/Makefile4
-rw-r--r--sysutils/fusefs-sshfs/distinfo4
-rw-r--r--sysutils/fusefs-sshfs/files/patch-sshfs.c31
-rw-r--r--sysutils/fusefs-sshfs/pkg-message2
4 files changed, 26 insertions, 15 deletions
diff --git a/sysutils/fusefs-sshfs/Makefile b/sysutils/fusefs-sshfs/Makefile
index 232d3a15e637..d0755bd6d7c9 100644
--- a/sysutils/fusefs-sshfs/Makefile
+++ b/sysutils/fusefs-sshfs/Makefile
@@ -5,7 +5,7 @@
#
PORTNAME= sshfs
-PORTVERSION= 1.2
+PORTVERSION= 1.3
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fuse
@@ -26,7 +26,7 @@ USE_REINPLACE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000
-IGNORE= Depends on kernel module that requires FreeBSD 6 or later
+IGNORE= depends on kernel module that requires FreeBSD 6 or later
.endif
post-install:
diff --git a/sysutils/fusefs-sshfs/distinfo b/sysutils/fusefs-sshfs/distinfo
index 772f595da15e..f4185a8fe551 100644
--- a/sysutils/fusefs-sshfs/distinfo
+++ b/sysutils/fusefs-sshfs/distinfo
@@ -1,2 +1,2 @@
-MD5 (sshfs-fuse-1.2.tar.gz) = 685dc6611e20242602105fe4960a6ab9
-SIZE (sshfs-fuse-1.2.tar.gz) = 86239
+MD5 (sshfs-fuse-1.3.tar.gz) = 40fe4a353d03b80f8b37e4b0cc6159d3
+SIZE (sshfs-fuse-1.3.tar.gz) = 88738
diff --git a/sysutils/fusefs-sshfs/files/patch-sshfs.c b/sysutils/fusefs-sshfs/files/patch-sshfs.c
index 81e22c2e5041..629d99af3de0 100644
--- a/sysutils/fusefs-sshfs/files/patch-sshfs.c
+++ b/sysutils/fusefs-sshfs/files/patch-sshfs.c
@@ -1,5 +1,5 @@
---- sshfs.c.orig Mon Aug 15 05:07:08 2005
-+++ sshfs.c Sun Oct 9 13:12:45 2005
+--- sshfs.c.orig Fri Oct 28 08:15:35 2005
++++ sshfs.c Mon Oct 31 02:59:33 2005
@@ -14,7 +14,11 @@
#include <unistd.h>
#include <fcntl.h>
@@ -27,7 +27,7 @@
#include "cache.h"
#include "opts.h"
-@@ -970,7 +981,11 @@
+@@ -1070,7 +1081,11 @@
err = req->error;
goto out;
}
@@ -39,7 +39,7 @@
if (req->reply_type != expect_type && req->reply_type != SSH_FXP_STATUS) {
fprintf(stderr, "protocol error\n");
goto out;
-@@ -985,21 +1000,35 @@
+@@ -1085,21 +1100,35 @@
if (expect_type == SSH_FXP_STATUS)
err = 0;
else
@@ -76,19 +76,19 @@
}
} else {
buf_init(outbuf, req->reply.size - req->reply.len);
-@@ -1039,7 +1068,11 @@
+@@ -1142,7 +1171,11 @@
err = sftp_request(SSH_FXP_LSTAT, &buf, SSH_FXP_ATTRS, &outbuf);
if (!err) {
- if (buf_get_attrs(&outbuf, stbuf) == -1)
+ if (buf_get_attrs(&outbuf, stbuf, NULL) == -1)
+#ifdef EPROTO
err = -EPROTO;
+#else
-+ err = -EPROTONOSUPPORT;
++ err = -EPROTONOSUPPORT;
+#endif
buf_free(&outbuf);
}
buf_free(&buf);
-@@ -1061,7 +1094,11 @@
+@@ -1164,7 +1197,11 @@
if (!err) {
uint32_t count;
char *link;
@@ -100,7 +100,7 @@
if(buf_get_uint32(&name, &count) != -1 && count == 1 &&
buf_get_string(&name, &link) != -1) {
strncpy(linkbuf, link, size-1);
-@@ -1092,7 +1129,11 @@
+@@ -1195,7 +1232,11 @@
err = sftp_request(SSH_FXP_READDIR, &handle, SSH_FXP_NAME, &name);
if (!err) {
if (buf_get_entries(&name, h, filler) == -1)
@@ -112,7 +112,7 @@
buf_free(&name);
}
} while (!err);
-@@ -1377,7 +1418,11 @@
+@@ -1528,7 +1569,11 @@
err = sftp_request(SSH_FXP_READ, &buf, SSH_FXP_DATA, &data);
if (!err) {
uint32_t retsize;
@@ -124,7 +124,7 @@
if (buf_get_uint32(&data, &retsize) != -1) {
if (retsize > size)
fprintf(stderr, "long read\n");
-@@ -1399,7 +1444,11 @@
+@@ -1550,7 +1595,11 @@
if (req->error)
chunk->res = req->error;
else if (req->replied) {
@@ -136,3 +136,12 @@
if (req->reply_type == SSH_FXP_STATUS) {
uint32_t serr;
+@@ -1771,7 +1820,7 @@
+ {
+ (void) path;
+
+- buf->f_namelen = 255;
++ buf->f_namemax = 255;
+ buf->f_bsize = 512;
+ buf->f_blocks = 999999999 * 2;
+ buf->f_bfree = 999999999 * 2;
diff --git a/sysutils/fusefs-sshfs/pkg-message b/sysutils/fusefs-sshfs/pkg-message
index 648b854e7af7..84f26708b576 100644
--- a/sysutils/fusefs-sshfs/pkg-message
+++ b/sysutils/fusefs-sshfs/pkg-message
@@ -17,3 +17,5 @@ or
2)
% mount_fusefs auto /path/to/mount/point sshfs -o uid=<local uid> \
-o gid=<local gid> username@example.org:
+
+For further options see ``sshfs -h''.