[packages/fusesmb] Rel 3

arekm arekm at pld-linux.org
Thu May 21 15:59:31 CEST 2026


commit 4eeae3c6ad52a8be23002a3c27529c727b48450d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:59:08 2026 +0200

    Rel 3

 fusesmb-format-security.patch | 34 ++++++++++++++++++++++++++++++++++
 fusesmb.spec                  |  6 +++++-
 2 files changed, 39 insertions(+), 1 deletion(-)
---
diff --git a/fusesmb.spec b/fusesmb.spec
index 4737d72..65e69e4 100644
--- a/fusesmb.spec
+++ b/fusesmb.spec
@@ -5,7 +5,7 @@ Summary:	SMB for Fuse
 Summary(pl.UTF-8):	SMB dla Fuse
 Name:		fusesmb
 Version:	0.8.7
-Release:	2
+Release:	3
 License:	GPL
 Group:		Applications/System
 Source0:	http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/%{name}-%{version}.tar.gz
@@ -16,11 +16,13 @@ Patch2:		%{name}-more_debug.patch
 Patch3:		%{name}-rewindir.patch
 Patch4:		%{name}-sv.patch
 Patch5:		%{name}-debug_write.patch
+Patch6:		%{name}-format-security.patch
 URL:		http://www.ricardis.tudelft.nl/~vincent/fusesmb/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libfuse-devel >= 2.3
 BuildRequires:	libsmbclient-devel >= 3.0
+BuildRequires:	pkgconfig
 Requires:	samba-client
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,12 +52,14 @@ tylko przy próbie dostępu do udziału.
 %patch -P3 -p1
 %patch -P4 -p1
 %patch -P5 -p1
+%patch -P6 -p1
 
 %build
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 %configure \
+	CPPFLAGS="%{rpmcppflags} $(pkg-config --cflags smbclient fuse)" \
 	%{?with_debug:--with-debug}
 
 %{__make}
diff --git a/fusesmb-format-security.patch b/fusesmb-format-security.patch
new file mode 100644
index 0000000..b09b140
--- /dev/null
+++ b/fusesmb-format-security.patch
@@ -0,0 +1,34 @@
+--- fusesmb-0.8.7/fusesmb.c	2007-09-07 02:02:44.000000000 +0200
++++ fusesmb-0.8.7-fixed/fusesmb.c	2026-05-21 01:35:49.177525702 +0200
+@@ -1019,12 +1019,12 @@
+     {
+         if (errno != ENOENT)
+         {
+-            fprintf(stderr, strerror(errno));
++            fprintf(stderr, "%s", strerror(errno));
+             exit(EXIT_FAILURE);
+         }
+         if (-1 == mkdir(cache_path, 0777))
+         {
+-            fprintf(stderr, strerror(errno));
++            fprintf(stderr, "%s", strerror(errno));
+             exit(EXIT_FAILURE);
+        }
+     }
+@@ -1040,14 +1040,14 @@
+     {
+         if (errno != ENOENT)
+         {
+-            fprintf(stderr, strerror(errno));
++            fprintf(stderr, "%s", strerror(errno));
+             exit(EXIT_FAILURE);
+         }
+         int fd;
+         /* Create configfile with read-write permissions for the owner */
+         if (-1 == (fd = open(configfile, O_WRONLY | O_CREAT, 00600)))
+         {
+-            fprintf(stderr, strerror(errno));
++            fprintf(stderr, "%s", strerror(errno));
+             exit(EXIT_FAILURE);
+         }
+         close(fd);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fusesmb.git/commitdiff/4eeae3c6ad52a8be23002a3c27529c727b48450d



More information about the pld-cvs-commit mailing list