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.spec b/afuse.spec index 12244d8..13083dd 100644 --- a/afuse.spec +++ b/afuse.spec @@ -1,28 +1,25 @@ Name: afuse Summary: An automounter implemented with FUSE Version: 0.4.1 -Release: 29%{?dist} -# Automatically converted from old format: GPLv2+ - review is highly recommended. -License: GPL-2.0-or-later +Release: 6%{?dist} +License: GPLv2+ +Group: System Environment/Base Source0: https://afuse.googlecode.com/files/%{name}-%{version}.tar.gz -Patch0: afuse-0.4.1-strcpy-buffer-overflow-fix.patch URL: https://github.com/pcarrier/afuse/ -BuildRequires: gcc +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: fuse-devel -BuildRequires: make %description -Afuse is an automounting file system implemented in user-space using FUSE. -Afuse currently implements the most basic functionality that can be expected -by an automounter; that is it manages a directory of virtual directories. If -one of these virtual directories is accessed and is not already automounted, -afuse will attempt to mount a filesystem onto that directory. If the mount -succeeds the requested access proceeds as normal, otherwise it will fail +Afuse is an automounting file system implemented in user-space using FUSE. +Afuse currently implements the most basic functionality that can be expected +by an automounter; that is it manages a directory of virtual directories. If +one of these virtual directories is accessed and is not already automounted, +afuse will attempt to mount a filesystem onto that directory. If the mount +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 %build %configure @@ -32,82 +29,16 @@ make %{?_smp_mflags} rm -rf %{buildroot} make DESTDIR=%{buildroot} install +%clean +rm -rf %{buildroot} + %files +%defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README %{_bindir}/afuse %{_bindir}/afuse-avahissh %changelog -* Fri Jan 16 2026 Fedora Release Engineering - 0.4.1-29 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Wed Jul 23 2025 Fedora Release Engineering - 0.4.1-28 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Thu Jan 16 2025 Fedora Release Engineering - 0.4.1-27 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Thu Jul 25 2024 Miroslav Suchý - 0.4.1-26 -- convert license to SPDX - -* Wed Jul 17 2024 Fedora Release Engineering - 0.4.1-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 0.4.1-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 0.4.1-23 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jul 19 2023 Fedora Release Engineering - 0.4.1-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jan 18 2023 Fedora Release Engineering - 0.4.1-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Jul 20 2022 Fedora Release Engineering - 0.4.1-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Wed Jan 19 2022 Fedora Release Engineering - 0.4.1-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Jul 21 2021 Fedora Release Engineering - 0.4.1-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Wed Feb 24 2021 Tom Callaway - 0.4.1-17 -- fix buffer overflow issue with strcpy - -* Mon Jan 25 2021 Fedora Release Engineering - 0.4.1-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Fri Jul 31 2020 Fedora Release Engineering - 0.4.1-15 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 0.4.1-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jan 28 2020 Fedora Release Engineering - 0.4.1-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Wed Jul 24 2019 Fedora Release Engineering - 0.4.1-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 0.4.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jul 12 2018 Fedora Release Engineering - 0.4.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 0.4.1-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 02 2017 Fedora Release Engineering - 0.4.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0.4.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - * Fri Feb 10 2017 Fedora Release Engineering - 0.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild