Accepting request 98276 from Base:System
- Fix wrong size parameter in memset call (forwarded request 98272 from namtrac) OBS-URL: https://build.opensuse.org/request/show/98276 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/acpid?expand=0&rev=53
This commit is contained in:
commit
e2aa51977f
13
acpid-wrong-memset.patch
Normal file
13
acpid-wrong-memset.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: acpid-2.0.13/libnetlink.c
|
||||||
|
===================================================================
|
||||||
|
--- acpid-2.0.13.orig/libnetlink.c
|
||||||
|
+++ acpid-2.0.13/libnetlink.c
|
||||||
|
@@ -41,7 +41,7 @@ int rtnl_open_byproto(struct rtnl_handle
|
||||||
|
int sndbuf = 32768;
|
||||||
|
int rcvbuf = 32768;
|
||||||
|
|
||||||
|
- memset(rth, 0, sizeof(rth));
|
||||||
|
+ memset(rth, 0, sizeof(*rth));
|
||||||
|
|
||||||
|
rth->fd = socket(AF_NETLINK, SOCK_RAW, protocol);
|
||||||
|
if (rth->fd < 0) {
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 27 10:55:50 UTC 2011 - idonmez@suse.com
|
||||||
|
|
||||||
|
- Fix wrong size parameter in memset call
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 16 02:03:44 UTC 2011 - crrodriguez@opensuse.org
|
Fri Dec 16 02:03:44 UTC 2011 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
12
acpid.spec
12
acpid.spec
@ -16,15 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: acpid
|
Name: acpid
|
||||||
Url: http://tedfelix.com/linux/acpid-netlink.html
|
Url: http://tedfelix.com/linux/acpid-netlink.html
|
||||||
Version: 2.0.13
|
Version: 2.0.13
|
||||||
Release: 5
|
Release: 0
|
||||||
License: GPL-2.0+
|
|
||||||
Group: System/Daemons
|
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
Summary: Executes Actions at ACPI Events
|
Summary: Executes Actions at ACPI Events
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: System/Daemons
|
||||||
Source: http://tedfelix.com//linux/%{name}-%{version}.tar.gz
|
Source: http://tedfelix.com//linux/%{name}-%{version}.tar.gz
|
||||||
Source2: rcacpid
|
Source2: rcacpid
|
||||||
Source3: README.SuSE
|
Source3: README.SuSE
|
||||||
@ -35,6 +34,7 @@ Source6: thinkpad_handler
|
|||||||
Source7: power_button
|
Source7: power_button
|
||||||
Source8: acpid.service
|
Source8: acpid.service
|
||||||
Patch1: acpid-makefile.patch
|
Patch1: acpid-makefile.patch
|
||||||
|
Patch2: acpid-wrong-memset.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
ExclusiveArch: %ix86 x86_64 ia64
|
ExclusiveArch: %ix86 x86_64 ia64
|
||||||
@ -50,7 +50,9 @@ Configure it in /etc/sysconfig/powermanagement.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p0
|
%patch1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
cp %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} %{S:9} .
|
cp %{S:2} %{S:3} %{S:4} %{S:5} %{S:6} %{S:7} %{S:9} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user