From: Mariusz Mazur Date: Thu, 18 Apr 2013 20:08:54 +0000 (+0200) Subject: rel 11; kill the other double free() in pidof X-Git-Tag: auto/th/SysVinit-2.88-12~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=a001ec0724632a66a44710e6ed4c5836fdddd632;p=packages%2FSysVinit.git rel 11; kill the other double free() in pidof What the hell does the killall5.patch do anyway? It's 10 years old and neither debian nor fedora use it. --- diff --git a/SysVinit.spec b/SysVinit.spec index 55d240d..020b5ab 100644 --- a/SysVinit.spec +++ b/SysVinit.spec @@ -13,7 +13,7 @@ Summary(tr.UTF-8): System V başlatma programı Summary(uk.UTF-8): Програми, що керують базовими системними процесами Name: SysVinit Version: 2.88 -Release: 10 +Release: 11 License: GPL v2+ Group: Base Source0: http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}dsf.tar.bz2 diff --git a/sysvinit-killall5.patch b/sysvinit-killall5.patch index e2a973e..0361c30 100644 --- a/sysvinit-killall5.patch +++ b/sysvinit-killall5.patch @@ -26,7 +26,7 @@ diff -u sysvinit-2.88dsf/src/killall5.c sysvinit-2.88dsf/src/killall5.c continue; } s++; -@@ -531,23 +532,26 @@ +@@ -531,23 +532,25 @@ /* Get session, startcode, endcode. */ startcode = endcode = 0; @@ -47,7 +47,6 @@ diff -u sysvinit-2.88dsf/src/killall5.c sysvinit-2.88dsf/src/killall5.c - nsyslog(LOG_ERR, "can't read sid from %s\n", - path); + nsyslog(LOG_ERR, "can't read sid for pid %d\n", pid); -+ free(p->statname); if (p->argv0) free(p->argv0); if (p->argv1) free(p->argv1); if (p->statname) free(p->statname);