Fixed SNMP quirks parsing.
This commit is contained in:
parent
7fe5158771
commit
d52d3c895d
@ -96,8 +96,8 @@ diff -up cups-1.4.3/backend/snmp-supplies.c.snmp-quirks cups-1.4.3/backend/snmp-
|
|||||||
+ for (i = 0; i < sizeof (quirk_names) / sizeof (quirk_names[0]); i++)
|
+ for (i = 0; i < sizeof (quirk_names) / sizeof (quirk_names[0]); i++)
|
||||||
+ {
|
+ {
|
||||||
+ len = strlen (quirk_names[i].keyword);
|
+ len = strlen (quirk_names[i].keyword);
|
||||||
+ if (!strncmp (value, quirk_names[i].keyword, len) &&
|
+ if (!strncmp (ptr, quirk_names[i].keyword, len) &&
|
||||||
+ (value[len] == '\0' || value[len] == ' '))
|
+ (ptr[len] == '\0' || ptr[len] == ' '))
|
||||||
+ quirks |= quirk_names[i].bit;
|
+ quirks |= quirk_names[i].bit;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
@ -571,6 +571,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{php_extdir}/phpcups.so
|
%{php_extdir}/phpcups.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 23 2010 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Fixed SNMP quirks parsing.
|
||||||
|
|
||||||
* Fri Aug 20 2010 Tim Waugh <twaugh@redhat.com> 1:1.4.4-9
|
* Fri Aug 20 2010 Tim Waugh <twaugh@redhat.com> 1:1.4.4-9
|
||||||
- Use better upstream fix for STR #3608 (bug #606909).
|
- Use better upstream fix for STR #3608 (bug #606909).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user