Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dbda31786 | |||
| 33667f2a56 | |||
| f627055bc7 | |||
| efeed71295 | |||
| 96c6138978 | |||
| 1afaef8f46 | |||
| e5acfce8ed | |||
| e178150a72 | |||
| c63acf3dd7 | |||
| e3cd445a4e | |||
| 1167c11901 | |||
| a175c2876a | |||
| f51d7b0c6a |
@@ -16,6 +16,8 @@ Contributors (autogenerated list)
|
||||
Alan Jenkins <alan.christopher.jenkins@gmail.com>
|
||||
Alexander Neumann <alexander@bumpern.de>
|
||||
Benjamin Fleischer <fleiben@gmail.com>
|
||||
Berserker <berserker.troll@yandex.com>
|
||||
Bill Zissimopoulos <billziss@navimatics.com>
|
||||
Chris Wolfe <cwolfe@chromium.org>
|
||||
gala <gala132@users.noreply.github.com>
|
||||
George Vlahavas <vlahavas@gmail.com>
|
||||
@@ -28,3 +30,4 @@ Nikolaus Rath <Nikolaus@rath.org>
|
||||
Percy Jahn <email@percyjahn.de>
|
||||
Qais Patankar <qaisjp@gmail.com>
|
||||
Rian Hunter <rian@alum.mit.edu>
|
||||
Zoltan Kuscsik <zoltan.kuscsik@linaro.org>
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
Release 2.7 (2016-06-22)
|
||||
Release 2.9 (2017-04-17)
|
||||
------------------------
|
||||
|
||||
* Improved support for Cygwin.
|
||||
* Various small bugfixes.
|
||||
|
||||
Release 2.8 (2016-06-22)
|
||||
------------------------
|
||||
|
||||
* Added support for the "fsync" extension.
|
||||
* Fixed a build problem with bitbake
|
||||
* Fixed a build problem with bitbake
|
||||
|
||||
Release 2.6 (2016-03-01)
|
||||
Release 2.7 (2016-03-01)
|
||||
------------------------
|
||||
|
||||
* Integrated osxfuse's copy of sshfs, which means that sshfs now works
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ sshfs.1: sshfs.1.in
|
||||
$(AM_V_GEN)sed \
|
||||
-e 's,__IDMAP_DEFAULT__,$(IDMAP_DEFAULT),g' \
|
||||
-e 's,__UNMOUNT_COMMAND__,$(UNMOUNT_COMMAND),g' \
|
||||
<sshfs.1.in >sshfs.1.tmp || exit 1; \
|
||||
<$(srcdir)/sshfs.1.in >sshfs.1.tmp || exit 1; \
|
||||
mv sshfs.1.tmp sshfs.1
|
||||
|
||||
if SSH_NODELAY_SO
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
AC_INIT(sshfs, 2.8)
|
||||
AC_INIT(sshfs, 2.9)
|
||||
AC_CANONICAL_TARGET
|
||||
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
@@ -141,8 +141,6 @@ path to sftp server or subsystem (default: sftp)
|
||||
.TP
|
||||
\fB\-o\fR directport=PORT
|
||||
directly connect to PORT bypassing ssh
|
||||
\fB\-o\fR slave
|
||||
communicate over stdin and stdout bypassing network
|
||||
.TP
|
||||
\fB\-o\fR slave
|
||||
communicate over stdin and stdout bypassing network
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
|
||||
#include <fuse.h>
|
||||
#include <fuse_opt.h>
|
||||
#if !defined(__CYGWIN__)
|
||||
#include <fuse_lowlevel.h>
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
# include <fuse_darwin.h>
|
||||
#endif
|
||||
@@ -3949,9 +3951,6 @@ int main(int argc, char *argv[])
|
||||
if (!realpath(*exec_path, sshfs_program_path)) {
|
||||
memset(sshfs_program_path, 0, PATH_MAX);
|
||||
}
|
||||
|
||||
/* Until this gets fixed somewhere else. */
|
||||
g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, TRUE);
|
||||
#endif /* __APPLE__ */
|
||||
g_thread_init(NULL);
|
||||
|
||||
@@ -3996,6 +3995,14 @@ int main(int argc, char *argv[])
|
||||
parse_workarounds() == -1)
|
||||
exit(1);
|
||||
|
||||
#if FUSE_VERSION >= 29
|
||||
// These workarounds require the "path" argument.
|
||||
if (sshfs.truncate_workaround || sshfs.fstat_workaround) {
|
||||
sshfs_oper.oper.flag_nullpath_ok = 0;
|
||||
sshfs_oper.oper.flag_nopath = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (sshfs.idmap == IDMAP_USER)
|
||||
sshfs.detect_uid = 1;
|
||||
else if (sshfs.idmap == IDMAP_FILE) {
|
||||
@@ -4108,7 +4115,9 @@ int main(int argc, char *argv[])
|
||||
char *mountpoint;
|
||||
int multithreaded;
|
||||
int foreground;
|
||||
#if !defined(__CYGWIN__)
|
||||
struct stat st;
|
||||
#endif
|
||||
|
||||
res = fuse_parse_cmdline(&args, &mountpoint, &multithreaded,
|
||||
&foreground);
|
||||
@@ -4120,20 +4129,26 @@ int main(int argc, char *argv[])
|
||||
foreground = 1;
|
||||
}
|
||||
|
||||
#if !defined(__CYGWIN__)
|
||||
res = stat(mountpoint, &st);
|
||||
if (res == -1) {
|
||||
perror(mountpoint);
|
||||
exit(1);
|
||||
}
|
||||
sshfs.mnt_mode = st.st_mode;
|
||||
#elif defined(__CYGWIN__)
|
||||
sshfs.mnt_mode = S_IFDIR | 0755;
|
||||
#endif
|
||||
|
||||
ch = fuse_mount(mountpoint, &args);
|
||||
if (!ch)
|
||||
exit(1);
|
||||
|
||||
#if !defined(__CYGWIN__)
|
||||
res = fcntl(fuse_chan_fd(ch), F_SETFD, FD_CLOEXEC);
|
||||
if (res == -1)
|
||||
perror("WARNING: failed to set FD_CLOEXEC on fuse device");
|
||||
#endif
|
||||
|
||||
sshfs.op = cache_init(&sshfs_oper);
|
||||
fuse = fuse_new(ch, &args, sshfs.op,
|
||||
|
||||
Reference in New Issue
Block a user