integ/base/net-snmp/centos/meta_patches/snmp-spec-config-file-permission.patch
slin14 f8cf2f4086 de-fuzz net-snmp patches
When do Centos 7.5 upgraded, some patches didn't resolve and cause
the fuzzy in the line numbers of the patches. And it may cause
.orig file is created when do patch. And this .orig file will lead
to rpm packaging failure due to the unexpected and unpackaged .orig
file.

Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611

Solution:
  Safest solution is to de-fuzz our patches.

Story: 2003389
Task: 26755

Change-Id: I623f7de6f79ecf9984076844c6816e425b0c3624
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-09-28 07:51:38 +08:00

28 lines
974 B
Diff

From 28917eb0762c08ffa8255fd29555e1d75681d6f8 Mon Sep 17 00:00:00 2001
From: Tao Liu <tao.liu@windriver.com>
Date: Thu, 4 Jan 2018 11:43:15 -0500
Subject: snmp spec change config file permission
---
SPECS/net-snmp.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/SPECS/net-snmp.spec b/SPECS/net-snmp.spec
index 6fc0da2..38afcf1 100644
--- a/SPECS/net-snmp.spec
+++ b/SPECS/net-snmp.spec
@@ -558,8 +558,8 @@ rm -rf ${RPM_BUILD_ROOT}
%doc local/passtest local/ipf-mod.pl
%doc README.thread AGENT.txt PORTING local/README.mib2c
%dir %{_sysconfdir}/snmp
-%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/snmp/snmpd.conf
-%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/snmp/snmptrapd.conf
+%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/snmp/snmpd.conf
+%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/snmp/snmptrapd.conf
%{_bindir}/snmpconf
%{_bindir}/agentxtrap
%{_bindir}/net-snmp-create-v3-user
--
2.7.4