Detangle cups-serverbin-compat.patch from cups-lspp.patch.

This commit is contained in:
Tim Waugh 2011-12-09 12:03:27 +00:00
parent e5e9e3ba43
commit da4557e1c0
3 changed files with 7 additions and 29 deletions

View File

@ -2362,31 +2362,6 @@ diff -up cups-1.4.7/scheduler/job.c.lspp cups-1.4.7/scheduler/job.c
if (Classification && !banner_page)
{
if ((attr = ippFindAttribute(job->attrs, "job-sheets",
@@ -1165,13 +1245,13 @@ cupsdContinueJob(cupsd_job_t *job) /* I
if (access(command, F_OK))
{
snprintf(command, sizeof(command), "%s/backend/%s", ServerBin_compat,
- method);
+ scheme);
if (!access(command, F_OK))
{
/* Not in the correct directory, but we found it in the compat
* directory. Issue a warning. */
cupsdLogMessage(CUPSD_LOG_INFO,
- "Backend '%s' not in %s/backend!", method,
+ "Backend '%s' not in %s/backend!", scheme,
ServerBin);
}
else
@@ -1179,7 +1259,7 @@ cupsdContinueJob(cupsd_job_t *job) /* I
/* Not in the compat directory either; make any error
messages use the correct directory name then. */
snprintf(command, sizeof(command), "%s/backend/%s", ServerBin,
- method);
+ scheme);
}
}
#endif /* __x86_64__ */
@@ -1634,6 +1714,20 @@ cupsdLoadJob(cupsd_job_t *job) /* I - J
goto error;
}

View File

@ -123,13 +123,13 @@ diff -up cups-1.4.7/scheduler/job.c.serverbin-compat cups-1.4.7/scheduler/job.c
+ if (access(command, F_OK))
+ {
+ snprintf(command, sizeof(command), "%s/backend/%s", ServerBin_compat,
+ method);
+ scheme);
+ if (!access(command, F_OK))
+ {
+ /* Not in the correct directory, but we found it in the compat
+ * directory. Issue a warning. */
+ cupsdLogMessage(CUPSD_LOG_INFO,
+ "Backend '%s' not in %s/backend!", method,
+ "Backend '%s' not in %s/backend!", scheme,
+ ServerBin);
+ }
+ else
@ -137,7 +137,7 @@ diff -up cups-1.4.7/scheduler/job.c.serverbin-compat cups-1.4.7/scheduler/job.c
+ /* Not in the compat directory either; make any error
+ messages use the correct directory name then. */
+ snprintf(command, sizeof(command), "%s/backend/%s", ServerBin,
+ method);
+ scheme);
+ }
+ }
+#endif /* __x86_64__ */

View File

@ -8,7 +8,7 @@
Summary: Common Unix Printing System
Name: cups
Version: 1.4.8
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
@ -580,6 +580,9 @@ rm -rf $RPM_BUILD_ROOT
%{php_extdir}/phpcups.so
%changelog
* Fri Dec 9 2011 Tim Waugh <twaugh@redhat.com> 1:1.4.8-6
- Detangle cups-serverbin-compat.patch from cups-lspp.patch.
* Wed Sep 28 2011 Tim Waugh <twaugh@redhat.com> 1:1.4.8-5
- Fixed string manipulation in the dbus notifier (STR #3947, bug #741833).