platform/upstream/sshfs.git
4 years agosshfs: Added a dependent package (openssh) 71/227371/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.0/unified/20201030.103733 accepted/tizen/6.0/unified/hotfix/20201103.045514 accepted/tizen/6.5/unified/20211029.014853 accepted/tizen/7.0/unified/20221110.063126 accepted/tizen/7.0/unified/hotfix/20221116.111434 accepted/tizen/8.0/unified/20231005.095542 accepted/tizen/unified/20200316.221114 submit/tizen/20200312.235517 submit/tizen_6.0/20201029.205504 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 submit/tizen_6.5/20211028.163901 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
Geunsik Lim [Wed, 11 Mar 2020 11:35:06 +0000 (20:35 +0900)]
sshfs: Added a dependent package (openssh)

Ths sshfs requires openssh package to connect SSH servers of Host PC
on the target board. If the openssh package is not installed, the
sshfs command meets a "read: Connection reset by peer" error message.

* How to reproduce
target# cd ~ ; mkdir etc-share
target# sshfs {user_id}@{ubuntu_host_ip}:/etc  ./etc-share

Change-Id: I8ee89a0ba9b47ed704ff5fce2d3eda1ce0366ec7
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
4 years agosshfs: Added a packaging folder for Tizen 58/226558/6 sshfs_2_10 submit/tizen/20200306.062736 submit/tizen/20200306.065121 submit/tizen/20200306.125120
Geunsik Lim [Tue, 3 Mar 2020 23:34:30 +0000 (08:34 +0900)]
sshfs: Added a packaging folder for Tizen

This commit is to append ./packaging/ folder to generate
Tizen RPM file in order that developers can use a network
filesystem client to connect to SSH servers easy-to-use.

This commit does not cause the code changes.

**Changelog**

* Version 4:
  - Replaced "COPYING" with "LICENSE" for the Tizen rule

* Version 3-1:
  - Added a license file (COPYING)
  - Added manifest in the spec file
  - Fixed trailing whitespace
  - Added a .spec file for tizen packaging
  - Added a manifest file

**Tizen SCM Operation/SO-1962**
* https://bugs.tizen.org/browse/SO-1962

Change-Id: Id84981fa257c9dedb2e2f0a0a0174fc59355665c
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
11 years agofix missing newline in manual page master upstream upstream/2.10
Alan Jenkins [Mon, 18 Feb 2013 11:47:52 +0000 (11:47 +0000)]
fix missing newline in manual page

11 years agoAdd FIXME for deadlock if $PATH contains mountpoint.
Miklos Szeredi [Tue, 5 Feb 2013 11:33:36 +0000 (12:33 +0100)]
Add FIXME for deadlock if $PATH contains mountpoint.

Reported by Joachim Kopp

12 years agoWhen checking root directory use LSTAT not STAT
Miklos Szeredi [Mon, 14 May 2012 14:18:22 +0000 (16:18 +0200)]
When checking root directory use LSTAT not STAT

This prevents I/O error being returned after a successful mount if a symlink is
mounted.

Reported by Bart Friederichs

12 years agoReleased 2.4 sshfs_2_4
Miklos Szeredi [Thu, 8 Mar 2012 09:36:10 +0000 (10:36 +0100)]
Released 2.4

12 years agomake sure idmap files aren't writable by others
Mike Kelly [Fri, 17 Feb 2012 16:35:15 +0000 (11:35 -0500)]
make sure idmap files aren't writable by others

otherwise, other local users could change the mapping, and gain access
to things they shouldn't

12 years agoAdd slave option to run sftp over stdin and stdout
Chris Wolfe [Wed, 8 Feb 2012 15:11:10 +0000 (10:11 -0500)]
Add slave option to run sftp over stdin and stdout

Add -o slave. This option routes the sftp communication over stdin and stdout,
bypassing SSH and network.

12 years agoSplit fd into separate read and write pipes
Chris Wolfe [Tue, 7 Feb 2012 20:01:50 +0000 (15:01 -0500)]
Split fd into separate read and write pipes

12 years agofix unused but set variables
Miklos Szeredi [Wed, 8 Feb 2012 09:21:33 +0000 (10:21 +0100)]
fix unused but set variables

cache.c: In function ‘cache_add_attr’:
cache.c:167:9: warning: variable ‘now’ set but not used [-Wunused-but-set-variable]
cache.c: In function ‘cache_add_dir’:
cache.c:188:9: warning: variable ‘now’ set but not used [-Wunused-but-set-variable]
cache.c: In function ‘cache_add_link’:
cache.c:212:9: warning: variable ‘now’ set but not used [-Wunused-but-set-variable]

12 years agoRemove some trailing whitespace.
Chris Wolfe [Tue, 7 Feb 2012 15:42:10 +0000 (10:42 -0500)]
Remove some trailing whitespace.

Verified with `cat -vet` and `grep '\s$'`

12 years agoskip blank lines
Mike Kelly [Tue, 20 Dec 2011 15:27:55 +0000 (10:27 -0500)]
skip blank lines

12 years agoincrease portability
Mike Kelly [Tue, 20 Dec 2011 15:27:53 +0000 (10:27 -0500)]
increase portability

getline() isn't widely available yet, use fgets() instead

12 years agofix typo in error message
Mike Kelly [Tue, 20 Dec 2011 15:27:52 +0000 (10:27 -0500)]
fix typo in error message

12 years agodefault to erroring if we can't remap a uid/gid
Mike Kelly [Tue, 20 Dec 2011 15:27:51 +0000 (10:27 -0500)]
default to erroring if we can't remap a uid/gid

add a '-o nomap=ignore|error' option, which defaults to 'error'

12 years agoAdd -o idmap=file, -o uidmap=FILE, -o gidmap=FILE
Mike Kelly [Fri, 16 Dec 2011 19:52:21 +0000 (14:52 -0500)]
Add -o idmap=file, -o uidmap=FILE, -o gidmap=FILE

These options allow you to create a pair of local files, with
username:uid/groupname:gid pairs, one per line. Alternatively, files can
be in standard /etc/passwd / /etc/group format.

The uid/gids are for the remote server, their local counterparts are
looked up with a local getpwnam/getgrnam call. Any stat() calls will
show with the remapped local uid/gid, and any chown() calls will be
remapped back to the remote uid/gid.

12 years agoFix a possible small memory leak
Mike Kelly [Fri, 16 Dec 2011 19:52:20 +0000 (14:52 -0500)]
Fix a possible small memory leak

12 years agoFix typo in error message
Mike Kelly [Fri, 16 Dec 2011 19:52:19 +0000 (14:52 -0500)]
Fix typo in error message

s/FD_CLOESEC/FD_CLOEXEC/

12 years agoFix error handling in sshfs_read_end
Miklos Szeredi [Tue, 20 Dec 2011 13:55:45 +0000 (14:55 +0100)]
Fix error handling in sshfs_read_end

Reported by Mike Kelly

12 years agoMake chown respect the UID mapping policy
Miklos Szeredi [Mon, 5 Dec 2011 12:11:09 +0000 (13:11 +0100)]
Make chown respect the UID mapping policy

Reported and tested by Vivenzio Pagliari

12 years agoSubmit max 32k reads and writes to the sftp server
Miklos Szeredi [Wed, 16 Nov 2011 13:54:37 +0000 (14:54 +0100)]
Submit max 32k reads and writes to the sftp server

Also don't limit the kernel to 64k reads and writes, rather split into
32k sized chunks and send them to the server all at once.  This is
more efficient and less demanding from the server.

Reported by Ludovic Courtès.  Fix suggested by Niels Möller

12 years agoAdd locking around modifver and connver
Miklos Szeredi [Mon, 14 Nov 2011 15:28:13 +0000 (16:28 +0100)]
Add locking around modifver and connver

12 years agoFix double free if reconnection races with request sending
Miklos Szeredi [Mon, 14 Nov 2011 14:12:52 +0000 (15:12 +0100)]
Fix double free if reconnection races with request sending

Patch by E. Kuemmerle

12 years agoRemove "-oPreferredAuthentications" from ssh options
Miklos Szeredi [Fri, 21 Oct 2011 15:12:31 +0000 (17:12 +0200)]
Remove "-oPreferredAuthentications" from ssh options

Remove "-oPreferredAuthentications" from ssh options if the
"password_stdin" option is used.  Reported by E. Kuemmerle

12 years agoAdd "FIXME: really needs LSETSTAT extension (debian Bug#640038)"
Miklos Szeredi [Fri, 23 Sep 2011 12:33:32 +0000 (14:33 +0200)]
Add "FIXME: really needs LSETSTAT extension (debian Bug#640038)"

12 years agosshfs: fstat workaround
Percy Jahn [Wed, 24 Aug 2011 11:22:36 +0000 (13:22 +0200)]
sshfs: fstat workaround

Add "-oworkaround=fstat" for SFTP servers which don't support
the FSTAT message.

12 years agoReleased 2.3 sshfs_2_3
Miklos Szeredi [Fri, 1 Jul 2011 12:24:49 +0000 (14:24 +0200)]
Released 2.3

12 years agoUpdate COPYING
Miklos Szeredi [Fri, 1 Jul 2011 12:15:39 +0000 (14:15 +0200)]
Update COPYING

12 years agoAdd hard link operation
Miklos Szeredi [Fri, 1 Jul 2011 12:01:29 +0000 (14:01 +0200)]
Add hard link operation

Works if the server supports the "hardlink@openssh.com" protocol
extension.

13 years agoFix possible deadlock on reconnection
Miklos Szeredi [Fri, 25 Mar 2011 12:38:39 +0000 (13:38 +0100)]
Fix possible deadlock on reconnection

Reported by Florian Zumbiehl

13 years agoFix cleanup when ssh connection is terminated.
Miklos Szeredi [Tue, 25 Jan 2011 10:46:15 +0000 (11:46 +0100)]
Fix cleanup when ssh connection is terminated.

This prevents sshfs hanging when the server is rebooted, for example.

14 years ago* Set FD_CLOEXEC on fuse device. This prevents deadlocks that
Miklos Szeredi [Wed, 28 Apr 2010 08:59:12 +0000 (08:59 +0000)]
* Set FD_CLOEXEC on fuse device.  This prevents deadlocks that
happen in some circumstances (bugzilla.kernel.org #12864).

14 years ago* Check that the remote path specified refers to the same type of
Miklos Szeredi [Wed, 15 Jul 2009 15:57:04 +0000 (15:57 +0000)]
* Check that the remote path specified refers to the same type of
file as the mountpoint, i.e. both are directories or both are
non-directories (debian bug #535343).  Reported by Greg Kochanski

* Allow mounting a single non-directory from the server

14 years agotear down mount on connect failure
Miklos Szeredi [Wed, 15 Jul 2009 15:08:55 +0000 (15:08 +0000)]
tear down mount on connect failure

14 years agoCheck mountpoint and fuse options before starting an ssh
Miklos Szeredi [Wed, 15 Jul 2009 14:27:52 +0000 (14:27 +0000)]
Check mountpoint and fuse options before starting an ssh
session (debian bug #535333).  This is only supported if compiled
against libfuse-2.6 or later. Reported by Greg Kochanski

14 years agoAdd option 'delay_connect': This will always create the sshfs mount,
Miklos Szeredi [Wed, 15 Jul 2009 14:20:58 +0000 (14:20 +0000)]
Add option 'delay_connect': This will always create the sshfs mount,
even if the connection to the server can't be established.

15 years ago* Print usage information and version to stdout, not stderr.
Miklos Szeredi [Thu, 12 Feb 2009 07:11:33 +0000 (07:11 +0000)]
* Print usage information and version to stdout, not stderr.
Libfuse also needs to be fixed up.  Reported by Kārlis Repsons

15 years agoReleased 2.2 sshfs_2_2
Miklos Szeredi [Mon, 20 Oct 2008 12:15:07 +0000 (12:15 +0000)]
Released 2.2

15 years agoEscape commas in fsname option if libfuse supports it
Miklos Szeredi [Mon, 20 Oct 2008 12:03:16 +0000 (12:03 +0000)]
Escape commas in fsname option if libfuse supports it

15 years agoFix harmless glib assertations with "cache=no"
Miklos Szeredi [Wed, 8 Oct 2008 18:23:33 +0000 (18:23 +0000)]
Fix harmless glib assertations with "cache=no"

15 years ago* Handle numerical IPv6 addresses enclosed in square brackets. Reported by Andre...
Miklos Szeredi [Wed, 8 Oct 2008 11:07:48 +0000 (11:07 +0000)]
* Handle numerical IPv6 addresses enclosed in square brackets. Reported by Andre-John Mas * Fix error if username contains a comma character. Reported by Yang Zhang

15 years agoReleased 2.1 sshfs_2_1
Miklos Szeredi [Fri, 11 Jul 2008 10:59:12 +0000 (10:59 +0000)]
Released 2.1

15 years agoAdd '-F' option to specify the ssh config file
Miklos Szeredi [Tue, 24 Jun 2008 15:24:01 +0000 (15:24 +0000)]
Add '-F' option to specify the ssh config file

16 years agoFix bug in caching which could cause file corruption for append mode writes
Miklos Szeredi [Tue, 6 May 2008 15:10:28 +0000 (15:10 +0000)]
Fix bug in caching which could cause file corruption for append mode writes

16 years agoman page update from Bartosz
Miklos Szeredi [Fri, 25 Apr 2008 06:39:37 +0000 (06:39 +0000)]
man page update from Bartosz

16 years agoAdd manual page sshfs_2_0
Miklos Szeredi [Wed, 23 Apr 2008 12:12:25 +0000 (12:12 +0000)]
Add manual page

16 years agoAdd manual page
Miklos Szeredi [Wed, 23 Apr 2008 12:07:39 +0000 (12:07 +0000)]
Add manual page

16 years agoReleased 2.0
Miklos Szeredi [Tue, 22 Apr 2008 16:01:59 +0000 (16:01 +0000)]
Released 2.0

16 years agoSupport "statvfs@openssh.com" extension...
Miklos Szeredi [Tue, 22 Apr 2008 14:25:19 +0000 (14:25 +0000)]
Support "statvfs@openssh.com" extension...

16 years agoLimit write requests to 64kB
Miklos Szeredi [Tue, 22 Apr 2008 13:36:26 +0000 (13:36 +0000)]
Limit write requests to 64kB

16 years agoAllow the '-ossh_command=CMD' command to contain parameters...
Miklos Szeredi [Tue, 22 Apr 2008 13:00:14 +0000 (13:00 +0000)]
Allow the '-ossh_command=CMD' command to contain parameters...

16 years agoFix incorrect disk usage reported by 'du' for files of size 4GB or above
Miklos Szeredi [Tue, 22 Apr 2008 10:20:05 +0000 (10:20 +0000)]
Fix incorrect disk usage reported by 'du' for files of size 4GB or above

16 years agoSupport "posix-rename@openssh.com" extension...
Miklos Szeredi [Mon, 31 Mar 2008 11:30:43 +0000 (11:30 +0000)]
Support "posix-rename@openssh.com" extension...

16 years agoAdd support for password authentication with pam_mount.
Miklos Szeredi [Fri, 28 Mar 2008 19:22:19 +0000 (19:22 +0000)]
Add support for password authentication with pam_mount.

16 years ago*** empty log message ***
Miklos Szeredi [Thu, 27 Mar 2008 16:18:09 +0000 (16:18 +0000)]
*** empty log message ***

16 years agoReleased 1.9 sshfs_1_9
Miklos Szeredi [Mon, 17 Dec 2007 14:32:22 +0000 (14:32 +0000)]
Released 1.9

16 years agoReleased 1.9
Miklos Szeredi [Tue, 11 Dec 2007 19:39:58 +0000 (19:39 +0000)]
Released 1.9

16 years agoFix crash on writing files
Miklos Szeredi [Mon, 10 Dec 2007 20:25:25 +0000 (20:25 +0000)]
Fix crash on writing files

16 years agochange indenting
Miklos Szeredi [Mon, 10 Dec 2007 18:21:52 +0000 (18:21 +0000)]
change indenting

17 years agoReleased 1.8 sshfs_1_8
Miklos Szeredi [Wed, 16 May 2007 11:20:35 +0000 (11:20 +0000)]
Released 1.8

17 years agofixes
Miklos Szeredi [Tue, 15 May 2007 20:09:29 +0000 (20:09 +0000)]
fixes

17 years agoFix spurious cache entries remaining after renaming a directory
Miklos Szeredi [Wed, 18 Apr 2007 10:24:10 +0000 (10:24 +0000)]
Fix spurious cache entries remaining after renaming a directory

17 years agoFix crash within gdb
Miklos Szeredi [Wed, 18 Apr 2007 09:44:08 +0000 (09:44 +0000)]
Fix crash within gdb

17 years agoDon't set DISPLAY environment variable to empty string
Miklos Szeredi [Fri, 16 Mar 2007 13:15:16 +0000 (13:15 +0000)]
Don't set DISPLAY environment variable to empty string

17 years agofix
Miklos Szeredi [Mon, 19 Feb 2007 16:04:03 +0000 (16:04 +0000)]
fix

17 years agoWork around write performace issues due to missing TCP_NODELAY in sshd
Miklos Szeredi [Wed, 20 Dec 2006 17:48:08 +0000 (17:48 +0000)]
Work around write performace issues due to missing TCP_NODELAY in sshd

17 years agofix
Miklos Szeredi [Sat, 11 Nov 2006 10:11:55 +0000 (10:11 +0000)]
fix

17 years agofix segfault
Miklos Szeredi [Fri, 29 Sep 2006 14:22:54 +0000 (14:22 +0000)]
fix segfault

17 years ago*** empty log message *** sshfs_1_7
Miklos Szeredi [Fri, 18 Aug 2006 10:38:37 +0000 (10:38 +0000)]
*** empty log message ***

17 years agonew release
Miklos Szeredi [Thu, 17 Aug 2006 10:13:02 +0000 (10:13 +0000)]
new release

17 years agofix
Miklos Szeredi [Thu, 17 Aug 2006 09:12:55 +0000 (09:12 +0000)]
fix

17 years agofixes
Miklos Szeredi [Wed, 16 Aug 2006 12:57:23 +0000 (12:57 +0000)]
fixes

18 years agofix
Miklos Szeredi [Thu, 13 Apr 2006 07:44:30 +0000 (07:44 +0000)]
fix

18 years agofix sshfs_1_6
Miklos Szeredi [Thu, 9 Mar 2006 20:03:16 +0000 (20:03 +0000)]
fix

18 years agonew release
Miklos Szeredi [Thu, 9 Mar 2006 19:43:13 +0000 (19:43 +0000)]
new release

18 years agofix
Miklos Szeredi [Thu, 9 Mar 2006 11:25:15 +0000 (11:25 +0000)]
fix

18 years agofix
Miklos Szeredi [Wed, 8 Mar 2006 14:32:16 +0000 (14:32 +0000)]
fix

18 years agofix
Miklos Szeredi [Fri, 24 Feb 2006 11:42:40 +0000 (11:42 +0000)]
fix

18 years agofix
Miklos Szeredi [Thu, 23 Feb 2006 21:31:41 +0000 (21:31 +0000)]
fix

18 years agofix
Miklos Szeredi [Thu, 23 Feb 2006 16:20:55 +0000 (16:20 +0000)]
fix

18 years agofix
Miklos Szeredi [Wed, 22 Feb 2006 16:23:42 +0000 (16:23 +0000)]
fix

18 years agonew release sshfs_1_5
Miklos Szeredi [Mon, 20 Feb 2006 12:11:23 +0000 (12:11 +0000)]
new release

18 years agofix
Miklos Szeredi [Mon, 20 Feb 2006 11:44:36 +0000 (11:44 +0000)]
fix

18 years agorevert making rename workaround on by default
Miklos Szeredi [Mon, 20 Feb 2006 11:32:45 +0000 (11:32 +0000)]
revert making rename workaround on by default

18 years agofix
Miklos Szeredi [Thu, 16 Feb 2006 17:02:25 +0000 (17:02 +0000)]
fix

18 years agofix
Miklos Szeredi [Thu, 16 Feb 2006 11:51:27 +0000 (11:51 +0000)]
fix

18 years agofix
Miklos Szeredi [Thu, 2 Feb 2006 12:07:14 +0000 (12:07 +0000)]
fix

18 years agofix
Miklos Szeredi [Wed, 1 Feb 2006 15:50:44 +0000 (15:50 +0000)]
fix

18 years agofix
Miklos Szeredi [Tue, 31 Jan 2006 18:34:38 +0000 (18:34 +0000)]
fix

18 years agofix
Miklos Szeredi [Mon, 30 Jan 2006 11:05:40 +0000 (11:05 +0000)]
fix

18 years agofix
Miklos Szeredi [Mon, 30 Jan 2006 09:47:02 +0000 (09:47 +0000)]
fix

18 years agofix
Miklos Szeredi [Fri, 27 Jan 2006 16:30:55 +0000 (16:30 +0000)]
fix

18 years agofix
Miklos Szeredi [Fri, 27 Jan 2006 12:49:14 +0000 (12:49 +0000)]
fix

18 years agofix
Miklos Szeredi [Wed, 25 Jan 2006 14:47:07 +0000 (14:47 +0000)]
fix

18 years agofix
Miklos Szeredi [Mon, 23 Jan 2006 17:03:25 +0000 (17:03 +0000)]
fix

18 years agofix
Miklos Szeredi [Fri, 20 Jan 2006 16:29:23 +0000 (16:29 +0000)]
fix

18 years agofix
Miklos Szeredi [Wed, 18 Jan 2006 14:05:48 +0000 (14:05 +0000)]
fix

18 years agonew release sshfs_1_4
Miklos Szeredi [Sat, 14 Jan 2006 23:02:33 +0000 (23:02 +0000)]
new release

18 years agofix
Miklos Szeredi [Tue, 10 Jan 2006 10:54:38 +0000 (10:54 +0000)]
fix

18 years ago*** empty log message ***
Miklos Szeredi [Mon, 9 Jan 2006 17:27:28 +0000 (17:27 +0000)]
*** empty log message ***