diff --git a/cups-str4386.patch b/cups-str4386.patch new file mode 100644 index 0000000..8025702 --- /dev/null +++ b/cups-str4386.patch @@ -0,0 +1,12 @@ +diff -up cups-1.7.1/cups/request.c.str4386 cups-1.7.1/cups/request.c +--- cups-1.7.1/cups/request.c.str4386 2013-07-23 13:33:52.000000000 +0100 ++++ cups-1.7.1/cups/request.c 2014-03-06 10:58:39.018807898 +0000 +@@ -261,7 +261,7 @@ cupsDoIORequest(http_t *http, /* I - + * Get the server's response... + */ + +- if (status != HTTP_STATUS_ERROR) ++ if (status <= HTTP_STATUS_CONTINUE) + { + response = cupsGetResponse(http, resource); + status = httpGetStatus(http); diff --git a/cups.spec b/cups.spec index a42146c..c7f750a 100644 --- a/cups.spec +++ b/cups.spec @@ -70,6 +70,7 @@ Patch42: cups-synconclose.patch Patch43: cups-avahi-browse.patch Patch44: cups-str4380.patch Patch45: cups-str4366.patch +Patch46: cups-str4386.patch Patch100: cups-lspp.patch @@ -269,6 +270,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results. %patch44 -p1 -b .str4380 # Prevent feedback loop when fetching error_log over HTTP (STR #4366). %patch45 -p1 -b .str4366 +# libcups: avoid race condition when sending IPP requests (STR #4386). +%patch46 -p1 -b .str4386 %if %lspp # LSPP support. @@ -650,6 +653,7 @@ rm -f %{cups_serverbin}/backend/smb %changelog * Thu Mar 6 2014 Tim Waugh - 1:1.7.1-6 +- libcups: avoid race condition when sending IPP requests (STR #4386). - Prevent feedback loop when fetching error_log over HTTP (STR #4366). * Wed Mar 5 2014 Tim Waugh - 1:1.7.1-5