Auto sync2gitlab import of fuse-sshfs-2.8-7.el8.src.rpm

This commit is contained in:
James Antill 2022-05-26 07:13:08 -04:00
parent 2c77cf53e1
commit 550b786864
6 changed files with 234 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/sshfs-2.8.tar.gz

1
EMPTY
View File

@ -1 +0,0 @@

178
fuse-sshfs.spec Normal file
View File

@ -0,0 +1,178 @@
%global _hardened_build 1
Name: fuse-sshfs
Version: 2.8
Release: 7%{?dist}
Summary: FUSE-Filesystem to access remote filesystems via SSH
Group: System Environment/Base
License: GPLv2
URL: https://github.com/libfuse/sshfs
Source0: https://github.com/libfuse/sshfs/releases/download/sshfs_%{version}/sshfs-%{version}.tar.gz
Source1: https://github.com/libfuse/sshfs/releases/download/sshfs_%{version}/sshfs-%{version}.tar.gz.asc
# Fix premature free() in sftp_readdir_async()
# https://bugzilla.redhat.com/show_bug.cgi?id=2000223
# https://github.com/libfuse/sshfs/commit/cc5d6bbbc5b7e78296f5245988b9ba947076a1b8.patch
Patch1: sshfs-fix-premature-free.patch
Provides: sshfs = %{version}-%{release}
Requires: fuse >= 2.2
Requires: openssh-clients
BuildRequires: fuse-devel >= 2.2
BuildRequires: glib2-devel >= 2.0
BuildRequires: openssh-clients
%description
This is a FUSE-filesystem client based on the SSH File Transfer Protocol.
Since most SSH servers already support this protocol it is very easy to set
up: i.e. on the server side there's nothing to do. On the client side
mounting the filesystem is as easy as logging into the server with ssh.
%prep
%autosetup -p1 -n sshfs-%{version}
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%files
%doc AUTHORS
%license COPYING
%{_bindir}/sshfs
%{_mandir}/man1/sshfs.1.gz
%changelog
* Tue Sep 07 2021 Richard W.M. Jones <rjones@redhat.com> - 2.8-7
- Fix premature free() in sftp_readdir_async()
resolves: rhbz#2000223
* Thu Mar 21 2019 Richard W.M. Jones <rjones@redhat.com> - 2.8-6
- Add gating tests resolves: rhbz#1682788
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Nov 23 2016 Peter Lemenkov <lemenkov@gmail.com> - 2.8-1
- Ver. 2.8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Dec 14 2014 Peter Lemenkov <lemenkov@gmail.com> - 2.5-1
- Ver. 2.5
- Removed support for building on EPEL 5 (not sure if it was even possible there)
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Sep 01 2013 Peter Lemenkov <lemenkov@gmail.com> - 2.4-5
- Build with PIE
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Apr 19 2012 Peter Lemenkov <lemenkov@gmail.com> - 2.4-1
- Ver. 2.4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Sep 22 2011 Peter Lemenkov <lemenkov@gmail.com> - 2.3-1
- Ver. 2.3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue May 18 2010 Peter Lemenkov <lemenkov@gmail.com> 2.2-6
- Fix building on EL-6
* Sun Sep 27 2009 Peter Lemenkov <lemenkov@gmail.com> 2.2-5
- No need for versioning in (Build)Requires for openssh-clients
* Thu Sep 17 2009 Peter Lemenkov <lemenkov@gmail.com> 2.2-4
- Rebuilt with new fuse
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Dec 9 2008 Peter Lemenkov <lemenkov@gmail.com> 2.2-1
- Ver. 2.2
* Sun Sep 28 2008 Peter Lemenkov <lemenkov@gmail.com> 2.1-1
- Ver. 2.1
* Mon May 19 2008 Peter Lemenkov <lemenkov@gmail.com> 2.0-1
- Ver. 2.0
* Sat Feb 9 2008 Peter Lemenkov <lemenkov@gmail.com> 1.9-2
- Rebuild for GCC 4.3
* Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 1.9-2
- Added missing Requires and BuildRequires - openssh-clients >= 4.4
* Wed Jan 23 2008 Peter Lemenkov <lemenkov@gmail.com> 1.9-1
- Ver. 1.9
- Added provides: sshfs
- Modified License field according to Fedora policy.
* Tue Sep 12 2006 Peter Lemenkov <lemenkov@gmail.com> 1.7-2
- Rebuild for FC6
* Tue Sep 12 2006 Peter Lemenkov <lemenkov@gmail.com> 1.7-1
- New version
- Rebuild for FC6
* Thu Mar 30 2006 Peter Lemenkov <lemenkov@newmail.ru> - 1.6-2
- added missing sshnodelay.so
* Thu Mar 30 2006 Peter Lemenkov <lemenkov@newmail.ru> - 1.6-1
- Version 1.6
* Mon Feb 13 2006 Peter Lemenkov <lemenkov@newmail.ru> - 1.4-2
- small cosmetic fixes
* Mon Feb 13 2006 Peter Lemenkov <lemenkov@newmail.ru> - 1.4-1
- Version 1.4
* Wed Nov 23 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.2-3
- Use dist
* Fri Nov 04 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.2-2
- Update deps
* Fri Oct 28 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 1.2-1
- Initial RPM release.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (sshfs-2.8.tar.gz) = a3c6a75137a4410a0c4e049ffdb6e219319add9673de32cf32a74c12ff4bb80f92a6e75088417a180a4dd01957deec39bd780a02140e8b0348f5868c92d67cfd

20
sshfs-2.8.tar.gz.asc Normal file
View File

@ -0,0 +1,20 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQKgBAABCgCKBQJXatttXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRDMxNzkxQjJDNUMxNjEzQUYzODhCOEFE
MTEzRkNBQzNDNEU1OTlGIxpodHRwOi8vd3d3LnJhdGgub3JnL2dwZ3BvbGljeS5o
dG1sAAoJENET/Kw8TlmfTKYP/23vcZ77TYxXlu77b5VOvrfer6Bx7po1nmoGdkzm
NhEO0OsdpwnL9sjOPFgfDK/C67kNDjT5YDIZRN1849wlYLJum6C4/T3choF0NSt1
rDYJVrZtdyYFjakmS0AaNKnUR4A8REIGDdMSRWvlyGuH/9twjdoQVQll3BMbZxhF
1fMhurURQAd+CIxP2erGVOH0XbW1kDxdf7Pbd9T51n6FBnxyO5rnUd6oUbFu7L1k
lL77YoOKGe/yyGezAJNwE7725vw4g49tuvihGb0atZe9qvbsIBVnXN8JzsBeHy9s
avS1rGo6j9V7DlEiun2PNz4uj1SJZ2Bh2iWzAQBBRqr8GFfUXG4QDn17eqeJasyD
ir3GAClJLZhArB4gqvIjxOBPPRyoW8vt8XU39+iIS11K6OzUvaXtWYTg/9sg2ua1
BXVRT7L2UXNEcgEZoRJ+cQ7U0VwB/gwBPaVLdWo7EfGegi5wcdkevH+BeMHpoO3/
WYHagRhEjXRSWYiK8wRfa26BccAh90nakz6/izv46wZ5ZlREKgef0Ea6Rnxz80W5
TMIlaM2Jpd7jqaEdTZKsDphB6MS9VED2oyGKyru2w2CATZTuiE61fTs4tQX6ID0m
/Is+j0j2nAph2gzbD0e4aEIDmbdZzAg8WABxxsdbGw42iS0xpY4IvNN75NflBFM+
Zg4T
=GUAX
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,34 @@
diff -ur sshfs-2.8.old/ChangeLog sshfs-2.8/ChangeLog
--- sshfs-2.8.old/ChangeLog 2016-06-22 19:38:01.000000000 +0100
+++ sshfs-2.8/ChangeLog 2021-09-07 08:17:35.352080786 +0100
@@ -1,3 +1,9 @@
+ Unreleased Changes
+ ------------------
+
++* Fixed a crash due to a race condition when listing
++ directory contents.
+
Release 2.7 (2016-06-22)
------------------------
diff -ur sshfs-2.8.old/sshfs.c sshfs-2.8/sshfs.c
--- sshfs-2.8.old/sshfs.c 2016-06-08 16:42:12.000000000 +0100
+++ sshfs-2.8/sshfs.c 2021-09-07 08:17:06.339682726 +0100
@@ -2173,11 +2173,16 @@
outstanding--;
if (done) {
+ /* We need to cache want_reply, since processing
+ thread may free req right after unlock() if
+ want_reply == 0 */
+ int want_reply;
pthread_mutex_lock(&sshfs.lock);
if (sshfs_req_pending(req))
req->want_reply = 0;
+ want_reply = req->want_reply;
pthread_mutex_unlock(&sshfs.lock);
- if (!req->want_reply)
+ if (!want_reply)
continue;
}