[packages/sxid] Up to 4.20130802

arekm arekm at pld-linux.org
Fri Nov 27 21:50:32 CET 2026


commit 12bcaec9ddce83746ea5c510f21819081aff197d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 15:31:02 2026 +0100

    Up to 4.20130802

 sxid-overlapping-copy.patch | 13 +++++++++++++
 sxid.cron.daily             |  7 +++++++
 sxid.spec                   | 27 +++++++++++++++++++--------
 3 files changed, 39 insertions(+), 8 deletions(-)
---
diff --git a/sxid.spec b/sxid.spec
index 853dad7..be9c9b9 100644
--- a/sxid.spec
+++ b/sxid.spec
@@ -1,14 +1,17 @@
 Summary:	suid, sgid file and directory checking
 Summary(pl.UTF-8):	Narzędzie sprawdzające pliki i katalogi o atrybutach suid i sgid
 Name:		sxid
-Version:	4.0.4
-Release:	3
+Version:	4.20130802
+Release:	1
 License:	GPL
 Group:		Applications/System
-Source0:	http://www.phunnypharm.org/pub/sxid/%{name}_%{version}.tar.gz
-# Source0-md5:	f85f1bf18651af14efd2b475b87e55b1
-URL:		http://www.phunnypharm.org/pub/sxid/
+Source0:	https://github.com/taem/sxid/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	867d6caf61cb5f8a93dff4ead1eae267
+Source1:	%{name}.cron.daily
+Patch0:		%{name}-overlapping-copy.patch
+URL:		https://github.com/taem/sxid
 BuildRequires:	autoconf
+BuildRequires:	automake
 Requires:	crondaemon
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,26 +36,34 @@ sprawdzenia.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
+%{__aclocal}
 %{__autoconf}
+%{__autoheader}
+%{__automake} --add-missing
 %configure
-%{__make} RPM_OPT_FLAGS="%{rpmcflags}"
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} DESTDIR=$RPM_BUILD_ROOT install
 
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+
 install -d $RPM_BUILD_ROOT/etc/cron.daily
-install debian/cron.daily $RPM_BUILD_ROOT/etc/cron.daily/sxid
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/sxid
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install examples/sxid.conf $RPM_BUILD_ROOT%{_sysconfdir}/sxid.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README docs/sxid.conf.example
+%doc README.md NEWS ChangeLog examples/sxid.conf
 %dir %{_sysconfdir}
 %attr(755,root,root) %{_bindir}/*
 %attr(700,root,root) /etc/cron.daily/sxid
diff --git a/sxid-overlapping-copy.patch b/sxid-overlapping-copy.patch
new file mode 100644
index 0000000..1dbe4aa
--- /dev/null
+++ b/sxid-overlapping-copy.patch
@@ -0,0 +1,13 @@
+# strncpy() with overlapping src/dst is undefined; glibc garbles config values
+--- sxid-4.20130802.orig/src/conffile.c	2026-11-27 15:31:10.892517474 +0100
++++ sxid-4.20130802/src/conffile.c	2026-11-27 15:31:10.966525971 +0100
+@@ -58,7 +58,8 @@
+ 			fclose(conffile);
+ 			exit(EXIT_FAILURE);
+ 		}
+-		strncpy(buffer, strstr(buffer, "\"") + 1, MAXBUF);
++		memmove(buffer, strstr(buffer, "\"") + 1,
++			strlen(strstr(buffer, "\"") + 1) + 1);
+ 		buffer[MAXBUF - 1] = '\0';
+ 
+ 		int count = 0;
diff --git a/sxid.cron.daily b/sxid.cron.daily
new file mode 100644
index 0000000..83ed77f
--- /dev/null
+++ b/sxid.cron.daily
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+SXID_OPTS=
+
+if [ -x /usr/bin/sxid ]; then
+	/usr/bin/sxid ${SXID_OPTS}
+fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sxid.git/commitdiff/12bcaec9ddce83746ea5c510f21819081aff197d



More information about the pld-cvs-commit mailing list