- net-snmp properly deals with large partitions (#153101)
<jryska@redhat.com>
This commit is contained in:
parent
1d4ec5bfdb
commit
5fda62053c
44
net-snmp-5.2.1-file_offset.patch
Normal file
44
net-snmp-5.2.1-file_offset.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
--- net-snmp-5.2.1/include/net-snmp/agent/snmp_vars.h.long 2004-04-15 14:47:10.000000000 +0200
|
||||||
|
+++ net-snmp-5.2.1/include/net-snmp/agent/snmp_vars.h 2005-03-21 17:03:29.909271960 +0100
|
||||||
|
@@ -73,7 +73,7 @@
|
||||||
|
|
||||||
|
struct nlist;
|
||||||
|
|
||||||
|
- extern long long_return;
|
||||||
|
+ extern fsblkcnt_t long_return;
|
||||||
|
extern u_char return_buf[];
|
||||||
|
|
||||||
|
extern oid nullOid[];
|
||||||
|
--- net-snmp-5.2.1/agent/mibgroup/host/hr_filesys.c.long 2004-06-19 15:34:11.000000000 +0200
|
||||||
|
+++ net-snmp-5.2.1/agent/mibgroup/host/hr_filesys.c 2005-03-21 17:03:29.910271808 +0100
|
||||||
|
@@ -773,7 +773,7 @@
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-long
|
||||||
|
+fsblkcnt_t
|
||||||
|
Get_FSSize(char *dev)
|
||||||
|
{
|
||||||
|
struct HRFS_statfs statfs_buf;
|
||||||
|
--- net-snmp-5.2.1/agent/mibgroup/host/hr_filesys.h.long 2002-07-04 14:56:35.000000000 +0200
|
||||||
|
+++ net-snmp-5.2.1/agent/mibgroup/host/hr_filesys.h 2005-03-21 17:03:29.910271808 +0100
|
||||||
|
@@ -12,7 +12,7 @@
|
||||||
|
extern int Check_HR_FileSys_NFS(void);
|
||||||
|
|
||||||
|
extern int Get_FSIndex(char *);
|
||||||
|
-extern long Get_FSSize(char *); /* Temporary */
|
||||||
|
+extern fsblkcnt_t Get_FSSize(char *); /* Temporary */
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _MIBGROUP_HRFSYS_H */
|
||||||
|
--- net-snmp-5.2.1/agent/snmp_vars.c.long 2005-03-21 17:08:37.790466904 +0100
|
||||||
|
+++ net-snmp-5.2.1/agent/snmp_vars.c 2005-03-21 17:08:37.790466904 +0100
|
||||||
|
@@ -223,7 +223,7 @@
|
||||||
|
* int name_len IN - number of sub-ids in the name
|
||||||
|
*/
|
||||||
|
|
||||||
|
-long long_return;
|
||||||
|
+fsblkcnt_t long_return;
|
||||||
|
#ifndef ibm032
|
||||||
|
u_char return_buf[258];
|
||||||
|
#else
|
@ -3,7 +3,7 @@
|
|||||||
Summary: A collection of SNMP protocol tools and libraries.
|
Summary: A collection of SNMP protocol tools and libraries.
|
||||||
Name: net-snmp
|
Name: net-snmp
|
||||||
Version: 5.2.1
|
Version: 5.2.1
|
||||||
Release: 7
|
Release: 8
|
||||||
License: BSDish
|
License: BSDish
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://net-snmp.sourceforge.net/
|
URL: http://net-snmp.sourceforge.net/
|
||||||
@ -34,6 +34,7 @@ Patch15: net-snmp-5.2.1-trim.patch
|
|||||||
Patch16: net-snmp-5.1.2-ASN-unsigned64.patch
|
Patch16: net-snmp-5.1.2-ASN-unsigned64.patch
|
||||||
Patch17: net-snmp-5.2.1-typeclash.diff
|
Patch17: net-snmp-5.2.1-typeclash.diff
|
||||||
Patch18: net-snmp-5.1.2-agentx_register_callbacks_entry.patch
|
Patch18: net-snmp-5.1.2-agentx_register_callbacks_entry.patch
|
||||||
|
Patch19: net-snmp-5.2.1-file_offset.patch
|
||||||
|
|
||||||
Prereq: /sbin/chkconfig
|
Prereq: /sbin/chkconfig
|
||||||
Obsoletes: ucd-snmp
|
Obsoletes: ucd-snmp
|
||||||
@ -147,6 +148,7 @@ and applications.
|
|||||||
%patch16 -p1 -b .ASN-unsigned64
|
%patch16 -p1 -b .ASN-unsigned64
|
||||||
%patch17 -b .typeclash
|
%patch17 -b .typeclash
|
||||||
%patch18 -p1 -b .reg_callbacks
|
%patch18 -p1 -b .reg_callbacks
|
||||||
|
%patch19 -p1 -b .file_offset
|
||||||
|
|
||||||
# Do this patch with a perl hack...
|
# Do this patch with a perl hack...
|
||||||
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
|
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh
|
||||||
@ -324,6 +326,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_libdir}/*.la
|
%{_libdir}/*.la
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 04 2005 Radek Vokal <rvokal@redhat.com> - 5.2.1-8
|
||||||
|
- net-snmp properly deals with large partitions (#153101) <jryska@redhat.com>
|
||||||
|
|
||||||
* Thu Mar 31 2005 Radek Vokal <rvokal@redhat.com> - 5.2.1-7
|
* Thu Mar 31 2005 Radek Vokal <rvokal@redhat.com> - 5.2.1-7
|
||||||
- agentx double free error fix <jp.fujitsu>
|
- agentx double free error fix <jp.fujitsu>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user