1777457 - hplip-3.19.10-2 breaks support for devices with '_series' in device id
This commit is contained in:
parent
c07d98eebd
commit
9ea0342f43
@ -1,5 +1,5 @@
|
|||||||
diff --git a/io/hpmud/model.c b/io/hpmud/model.c
|
diff --git a/io/hpmud/model.c b/io/hpmud/model.c
|
||||||
index d546ec1..288cd75 100644
|
index d546ec1..5bb6091 100644
|
||||||
--- a/io/hpmud/model.c
|
--- a/io/hpmud/model.c
|
||||||
+++ b/io/hpmud/model.c
|
+++ b/io/hpmud/model.c
|
||||||
@@ -407,7 +407,10 @@ static int ParseFile(char *datFile, char *model, char *attr, int attrSize, int *
|
@@ -407,7 +407,10 @@ static int ParseFile(char *datFile, char *model, char *attr, int attrSize, int *
|
||||||
@ -14,20 +14,22 @@ index d546ec1..288cd75 100644
|
|||||||
|
|
||||||
if ((fp = fopen(datFile, "r")) == NULL)
|
if ((fp = fopen(datFile, "r")) == NULL)
|
||||||
goto bugout;
|
goto bugout;
|
||||||
@@ -423,9 +426,15 @@ static int ParseFile(char *datFile, char *model, char *attr, int attrSize, int *
|
@@ -422,10 +425,16 @@ static int ParseFile(char *datFile, char *model, char *attr, int attrSize, int *
|
||||||
|
strncpy(section, rcbuf+1, sizeof(section)); /* found new section */
|
||||||
n = strlen(section);
|
n = strlen(section);
|
||||||
section[n-2]=0; /* remove ']' and CR */
|
section[n-2]=0; /* remove ']' and CR */
|
||||||
if (strcasecmp(model, section) == 0 ||
|
- if (strcasecmp(model, section) == 0 ||
|
||||||
- (section[0] == 'h' && section[1] == 'p' &&
|
- (section[0] == 'h' && section[1] == 'p' &&
|
||||||
- section[2] == '_' &&
|
- section[2] == '_' &&
|
||||||
- strcasecmp(model, section + 3) == 0))
|
- strcasecmp(model, section + 3) == 0))
|
||||||
|
+ if ((strcasecmp(model, section) == 0) ||
|
||||||
+ (section[0] == 'h' &&
|
+ (section[0] == 'h' &&
|
||||||
+ section[1] == 'p' &&
|
+ section[1] == 'p' &&
|
||||||
+ section[2] == '_' &&
|
+ section[2] == '_' &&
|
||||||
+ strcasecmp(model, section + 3) == 0) ||
|
+ strcasecmp(model, section + 3) == 0) ||
|
||||||
+ (n > model_len &&
|
+ (n > model_len &&
|
||||||
+ strncasecmp(section, model, model_len) &&
|
+ strncasecmp(section, model, model_len) == 0 &&
|
||||||
+ strncasecmp(section + model_len, "_series", strlen("_series"))
|
+ strncasecmp(section + model_len, "_series", strlen("_series") == 0)
|
||||||
+ )
|
+ )
|
||||||
+ )
|
+ )
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Summary: HP Linux Imaging and Printing Project
|
Summary: HP Linux Imaging and Printing Project
|
||||||
Name: hplip
|
Name: hplip
|
||||||
Version: 3.19.10
|
Version: 3.19.10
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
||||||
|
|
||||||
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
||||||
@ -690,6 +690,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
|||||||
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 28 2019 Zdenek Dohnal <zdohnal@redhat.com> - 3.19.10-3
|
||||||
|
- 1777457 - hplip-3.19.10-2 breaks support for devices with '_series' in device id
|
||||||
|
|
||||||
* Mon Nov 18 2019 Zdenek Dohnal <zdohnal@redhat.com> - 3.19.10-2
|
* Mon Nov 18 2019 Zdenek Dohnal <zdohnal@redhat.com> - 3.19.10-2
|
||||||
- 1773345 - Problems with HP M281fdw LaserJet
|
- 1773345 - Problems with HP M281fdw LaserJet
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user