public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/afuse] rawhide: update to 0.5.0 + spec cleanup
Date: Sun, 21 Jun 2026 23:25:54 GMT	[thread overview]
Message-ID: <178208435441.1.12716902313529701384.rpms-afuse-6631b80edec1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/afuse
            Branch : rawhide
            Commit : 6631b80edec193f88e8af42258ba2e2ca9dfb9ff
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-21T20:05:19-03:00
            Stats  : +42/-34 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/afuse/c/6631b80edec193f88e8af42258ba2e2ca9dfb9ff?branch=rawhide

            Log:
            update to 0.5.0 + spec cleanup

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index 78e1615..8d218ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 afuse-0.2.tar.gz
 /afuse-0.4.tar.gz
 /afuse-0.4.1.tar.gz
+/afuse-0.5.0.tar.gz

diff --git a/afuse-0.4.1-strcpy-buffer-overflow-fix.patch b/afuse-0.4.1-strcpy-buffer-overflow-fix.patch
deleted file mode 100644
index ae46e23..0000000
--- a/afuse-0.4.1-strcpy-buffer-overflow-fix.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -up afuse-0.4.1/src/afuse.c.strcpy-buffer-overflow-fix afuse-0.4.1/src/afuse.c
---- afuse-0.4.1/src/afuse.c.strcpy-buffer-overflow-fix	2013-02-12 21:36:47.000000000 -0500
-+++ afuse-0.4.1/src/afuse.c	2021-02-24 13:31:58.884245692 -0500
-@@ -1853,8 +1853,16 @@ static int afuse_opt_proc(void *data, co
- int main(int argc, char *argv[])
- {
- 	struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
--	char *temp_dir_name = my_malloc(strlen(TMP_DIR_TEMPLATE));
--	strcpy(temp_dir_name, TMP_DIR_TEMPLATE);
-+	size_t buflen = strlen(TMP_DIR_TEMPLATE);
-+	// need one more for the null terminator
-+	buflen++;
-+	char *temp_dir_name = my_malloc(buflen);
-+	if (buflen > 0) {
-+		strncpy(temp_dir_name, TMP_DIR_TEMPLATE, buflen - 1);
-+		temp_dir_name[buflen - 1] = '\0';
-+	}
-+
-+	// strcpy(temp_dir_name, TMP_DIR_TEMPLATE);
- 
- 	if (fuse_opt_parse(&args, &user_options, afuse_opts, afuse_opt_proc) ==
- 	    -1)

diff --git a/afuse-0.5.0-strcpy-buffer-overflow-fix.patch b/afuse-0.5.0-strcpy-buffer-overflow-fix.patch
new file mode 100644
index 0000000..91a818b
--- /dev/null
+++ b/afuse-0.5.0-strcpy-buffer-overflow-fix.patch
@@ -0,0 +1,20 @@
+diff -up afuse-0.5.0/src/afuse.c.strcpy-buffer-overflow-fix afuse-0.5.0/src/afuse.c
+--- afuse-0.5.0/src/afuse.c.strcpy-buffer-overflow-fix	2026-06-21 19:45:00.000000000 -0300
++++ afuse-0.5.0/src/afuse.c	2026-06-21 19:45:00.000000000 -0300
+@@ -1884,14 +1884,14 @@ int main(int argc, char *argv[])
+ 			continue;
+ 	}
+ 
+ 	if (!user_options.mount_dir) {
+-		temp_dir_name = my_malloc(strlen(TMP_DIR_TEMPLATE));
++		temp_dir_name = my_malloc(strlen(TMP_DIR_TEMPLATE) + 1);
+ 		strcpy(temp_dir_name, TMP_DIR_TEMPLATE);
+ 	} else {
+ 		temp_dir_name =
+ 		    my_malloc(strlen(user_options.mount_dir) +
+-			      strlen(TMP_DIR_TEMPLATE2));
++			      strlen(TMP_DIR_TEMPLATE2) + 1);
+ 		strcpy(temp_dir_name, user_options.mount_dir);
+ 		strcpy(temp_dir_name + strlen(user_options.mount_dir),
+ 		       TMP_DIR_TEMPLATE2);
+ 	}

diff --git a/afuse.spec b/afuse.spec
index 9737d12..2cc89f8 100644
--- a/afuse.spec
+++ b/afuse.spec
@@ -1,15 +1,18 @@
 Name:		afuse
 Summary:	An automounter implemented with FUSE
-Version:	0.4.1
-Release:	30%{?dist}
+Version:	0.5.0
+Release:	1%{?dist}
 # Automatically converted from old format: GPLv2+ - review is highly recommended.
 License:	GPL-2.0-or-later
-Source0:	https://afuse.googlecode.com/files/%{name}-%{version}.tar.gz
-Patch0:		afuse-0.4.1-strcpy-buffer-overflow-fix.patch
+Source0:	https://github.com/pcarrier/afuse/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0:		afuse-0.5.0-strcpy-buffer-overflow-fix.patch
 URL:		https://github.com/pcarrier/afuse/
-BuildRequires:	gcc
+BuildRequires:	autoconf
+BuildRequires:	automake
 BuildRequires:	fuse-devel
+BuildRequires:	gcc
 BuildRequires:	make
+BuildRequires:	pkgconfig
 
 %description
 Afuse is an automounting file system implemented in user-space using FUSE.
@@ -21,23 +24,29 @@ succeeds the requested access proceeds as normal, otherwise it will fail
 with an error.
 
 %prep
-%setup -q
-%patch -P0 -p1 -b .strcpy-buffer-overflow-fix
+%autosetup -p1
 
 %build
+autoreconf -vfi
 %configure
-make %{?_smp_mflags}
+%make_build
 
 %install
-rm -rf %{buildroot}
-make DESTDIR=%{buildroot} install
+%make_install
+
+%check
+# No upstream tests exist
 
 %files
-%doc AUTHORS ChangeLog COPYING README
+%license COPYING COPYING.LIB
+%doc AUTHORS README
 %{_bindir}/afuse
 %{_bindir}/afuse-avahissh
 
 %changelog
+* Sun Jun 21 2026 Filipe Rosset <filiperosset@fedoraproject.org> - 0.5.0-1
+- update to 0.5.0
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-30
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

diff --git a/sources b/sources
index c4cb225..0af7188 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-317efdda85d5585d085c61a0d262b83b  afuse-0.4.1.tar.gz
+SHA512 (afuse-0.5.0.tar.gz) = 976428428a2341c25b67ffcce2f0e14a7c99755bf9378cc0091a2beb32d14c3909e34dbc53ec7f27574be9e5b6061d583f88e5ab663edb568de491d945399ea2

                 reply	other threads:[~2026-06-21 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178208435441.1.12716902313529701384.rpms-afuse-6631b80edec1@fedoraproject.org \
    --to=filiperosset@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox