-diff -up cups-2.2.5/config.h.in.lspp cups-2.2.5/config.h.in
---- cups-2.2.5/config.h.in.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/config.h.in 2017-10-17 19:06:19.640228964 +0200
+diff -up cups-2.2.8/config.h.in.lspp cups-2.2.8/config.h.in
+--- cups-2.2.8/config.h.in.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/config.h.in 2018-06-08 17:34:38.682653959 +0200
@@ -730,4 +730,11 @@ static __inline int _cups_abs(int i) { r
# endif /* __GNUC__ || __STDC_VERSION__ */
#endif /* !HAVE_ABS && !abs */
+
+
#endif /* !_CUPS_CONFIG_H_ */
-diff -up cups-2.2.5/config-scripts/cups-lspp.m4.lspp cups-2.2.5/config-scripts/cups-lspp.m4
---- cups-2.2.5/config-scripts/cups-lspp.m4.lspp 2017-10-17 19:06:19.640228964 +0200
-+++ cups-2.2.5/config-scripts/cups-lspp.m4 2017-10-17 19:06:19.640228964 +0200
+diff -up cups-2.2.8/config-scripts/cups-lspp.m4.lspp cups-2.2.8/config-scripts/cups-lspp.m4
+--- cups-2.2.8/config-scripts/cups-lspp.m4.lspp 2018-06-08 17:34:38.682653959 +0200
++++ cups-2.2.8/config-scripts/cups-lspp.m4 2018-06-08 17:34:38.682653959 +0200
@@ -0,0 +1,36 @@
+dnl
+dnl LSPP code for the Common UNIX Printing System (CUPS).
+ ;;
+ esac
+fi
-diff -up cups-2.2.5/configure.ac.lspp cups-2.2.5/configure.ac
---- cups-2.2.5/configure.ac.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/configure.ac 2017-10-17 19:06:19.640228964 +0200
+diff -up cups-2.2.8/configure.ac.lspp cups-2.2.8/configure.ac
+--- cups-2.2.8/configure.ac.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/configure.ac 2018-06-08 17:34:38.682653959 +0200
@@ -38,6 +38,8 @@ sinclude(config-scripts/cups-startup.m4)
sinclude(config-scripts/cups-defaults.m4)
sinclude(config-scripts/cups-scripting.m4)
INSTALL_LANGUAGES=""
UNINSTALL_LANGUAGES=""
LANGFILES=""
-diff -up cups-2.2.5/filter/common.c.lspp cups-2.2.5/filter/common.c
---- cups-2.2.5/filter/common.c.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/filter/common.c 2017-10-17 19:06:19.640228964 +0200
+diff -up cups-2.2.8/filter/common.c.lspp cups-2.2.8/filter/common.c
+--- cups-2.2.8/filter/common.c.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/filter/common.c 2018-06-08 17:34:38.682653959 +0200
@@ -17,6 +17,12 @@
* Include necessary headers...
*/
/*
-diff -up cups-2.2.5/filter/pstops.c.lspp cups-2.2.5/filter/pstops.c
---- cups-2.2.5/filter/pstops.c.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/filter/pstops.c 2017-10-17 19:06:19.641228955 +0200
+diff -up cups-2.2.8/filter/pstops.c.lspp cups-2.2.8/filter/pstops.c
+--- cups-2.2.8/filter/pstops.c.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/filter/pstops.c 2018-06-08 17:34:38.683653951 +0200
@@ -3176,6 +3176,18 @@ write_label_prolog(pstops_doc_t *doc, /*
{
const char *classification; /* CLASSIFICATION environment variable */
/*
-diff -up cups-2.2.5/Makedefs.in.lspp cups-2.2.5/Makedefs.in
---- cups-2.2.5/Makedefs.in.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/Makedefs.in 2017-10-17 19:06:19.641228955 +0200
+diff -up cups-2.2.8/Makedefs.in.lspp cups-2.2.8/Makedefs.in
+--- cups-2.2.8/Makedefs.in.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/Makedefs.in 2018-06-08 17:34:38.683653951 +0200
@@ -161,7 +161,7 @@ LDFLAGS = -L../cgi-bin -L../cups -L../f
@LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
LINKCUPS = @LINKCUPS@ $(LIBGSSAPI) $(DNSSDLIBS) $(SSLLIBS) $(LIBZ)
ONDEMANDFLAGS = @ONDEMANDFLAGS@
ONDEMANDLIBS = @ONDEMANDLIBS@
OPTIM = @OPTIM@
-diff -up cups-2.2.5/scheduler/client.c.lspp cups-2.2.5/scheduler/client.c
---- cups-2.2.5/scheduler/client.c.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/scheduler/client.c 2017-10-17 19:06:19.689228556 +0200
+diff -up cups-2.2.8/scheduler/client.c.lspp cups-2.2.8/scheduler/client.c
+--- cups-2.2.8/scheduler/client.c.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/scheduler/client.c 2018-06-08 17:34:38.729653586 +0200
@@ -22,12 +22,20 @@
#define _HTTP_NO_PRIVATE
#include "cupsd.h"
status = HTTP_STATUS_CONTINUE;
-@@ -1926,6 +1994,73 @@ cupsdReadClient(cupsd_client_t *con) /*
+@@ -1938,6 +2006,73 @@ cupsdReadClient(cupsd_client_t *con) /*
fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC);
}
if (httpGetState(con->http) != HTTP_STATE_POST_SEND)
{
if (!httpWait(con->http, 0))
-@@ -3456,6 +3591,49 @@ is_path_absolute(const char *path) /* I
+@@ -3485,6 +3620,49 @@ is_path_absolute(const char *path) /* I
return (1);
}
/*
* 'pipe_command()' - Pipe the output of a command to the remote client.
-diff -up cups-2.2.5/scheduler/client.h.lspp cups-2.2.5/scheduler/client.h
---- cups-2.2.5/scheduler/client.h.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/scheduler/client.h 2017-10-17 19:06:19.690228548 +0200
+diff -up cups-2.2.8/scheduler/client.h.lspp cups-2.2.8/scheduler/client.h
+--- cups-2.2.8/scheduler/client.h.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/scheduler/client.h 2018-06-08 17:34:38.729653586 +0200
@@ -16,6 +16,13 @@
#endif /* HAVE_AUTHORIZATION_H */
/*
* HTTP client structure...
*/
-@@ -65,6 +72,10 @@ struct cupsd_client_s
+@@ -66,6 +73,10 @@ struct cupsd_client_s
#ifdef HAVE_AUTHORIZATION_H
AuthorizationRef authref; /* Authorization ref */
#endif /* HAVE_AUTHORIZATION_H */
};
#define HTTP(con) ((con)->http)
-@@ -138,6 +149,9 @@ extern void cupsdStartListening(void);
+@@ -139,6 +150,9 @@ extern void cupsdStartListening(void);
extern void cupsdStopListening(void);
extern void cupsdUpdateCGI(void);
extern void cupsdWriteClient(cupsd_client_t *con);
#ifdef HAVE_SSL
extern int cupsdEndTLS(cupsd_client_t *con);
-diff -up cups-2.2.5/scheduler/conf.c.lspp cups-2.2.5/scheduler/conf.c
---- cups-2.2.5/scheduler/conf.c.lspp 2017-10-17 19:06:19.637228989 +0200
-+++ cups-2.2.5/scheduler/conf.c 2017-10-17 19:06:19.691228540 +0200
+diff -up cups-2.2.8/scheduler/conf.c.lspp cups-2.2.8/scheduler/conf.c
+--- cups-2.2.8/scheduler/conf.c.lspp 2018-06-08 17:34:38.676654007 +0200
++++ cups-2.2.8/scheduler/conf.c 2018-06-08 17:34:38.730653578 +0200
@@ -40,6 +40,9 @@
# define INADDR_NONE 0xffffffff
#endif /* !INADDR_NONE */
/*
-@@ -866,6 +876,25 @@ cupsdReadConfiguration(void)
+@@ -863,6 +873,25 @@ cupsdReadConfiguration(void)
RunUser = getuid();
cupsdLogMessage(CUPSD_LOG_INFO, "Remote access is %s.",
RemotePort ? "enabled" : "disabled");
-@@ -1286,7 +1315,19 @@ cupsdReadConfiguration(void)
+@@ -1274,7 +1303,19 @@ cupsdReadConfiguration(void)
cupsdClearString(&Classification);
if (Classification)
/*
* Check the MaxClients setting, and then allocate memory for it...
-@@ -3770,6 +3811,18 @@ read_location(cups_file_t *fp, /* I - C
+@@ -3832,6 +3873,18 @@ read_location(cups_file_t *fp, /* I - C
return ((FatalErrors & CUPSD_FATAL_CONFIG) ? 0 : linenum);
}
/*
* 'read_policy()' - Read a <Policy name> definition.
-diff -up cups-2.2.5/scheduler/conf.h.lspp cups-2.2.5/scheduler/conf.h
---- cups-2.2.5/scheduler/conf.h.lspp 2017-10-17 19:06:19.585229421 +0200
-+++ cups-2.2.5/scheduler/conf.h 2017-10-17 19:06:19.691228540 +0200
-@@ -250,6 +250,13 @@ VAR char *ServerKeychain VALUE(NULL);
+diff -up cups-2.2.8/scheduler/conf.h.lspp cups-2.2.8/scheduler/conf.h
+--- cups-2.2.8/scheduler/conf.h.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/scheduler/conf.h 2018-06-08 17:34:38.730653578 +0200
+@@ -246,6 +246,13 @@ VAR char *ServerKeychain VALUE(NULL);
/* Keychain holding cert + key */
#endif /* HAVE_SSL */
#ifdef HAVE_ONDEMAND
VAR int IdleExitTimeout VALUE(60);
/* Time after which an idle cupsd will exit */
-@@ -268,6 +275,9 @@ VAR int HaveServerCreds VALUE(0);
+@@ -264,6 +271,9 @@ VAR int HaveServerCreds VALUE(0);
VAR gss_cred_id_t ServerCreds; /* Server's GSS credentials */
#endif /* HAVE_GSSAPI */
/*
* Prototypes...
-diff -up cups-2.2.5/scheduler/cupsd.h.lspp cups-2.2.5/scheduler/cupsd.h
---- cups-2.2.5/scheduler/cupsd.h.lspp 2017-10-17 19:06:19.626229080 +0200
-+++ cups-2.2.5/scheduler/cupsd.h 2017-10-17 19:06:19.691228540 +0200
+diff -up cups-2.2.8/scheduler/cupsd.h.lspp cups-2.2.8/scheduler/cupsd.h
+--- cups-2.2.8/scheduler/cupsd.h.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/scheduler/cupsd.h 2018-06-08 17:34:38.730653578 +0200
@@ -11,6 +11,8 @@
* file is missing or damaged, see the license at "http://www.cups.org/".
*/
/*
* Some OS's don't have hstrerror(), most notably Solaris...
*/
-diff -up cups-2.2.5/scheduler/ipp.c.lspp cups-2.2.5/scheduler/ipp.c
---- cups-2.2.5/scheduler/ipp.c.lspp 2017-10-17 19:06:19.599229305 +0200
-+++ cups-2.2.5/scheduler/ipp.c 2017-10-17 19:06:19.695228506 +0200
+diff -up cups-2.2.8/scheduler/ipp.c.lspp cups-2.2.8/scheduler/ipp.c
+--- cups-2.2.8/scheduler/ipp.c.lspp 2018-06-08 17:34:38.652654197 +0200
++++ cups-2.2.8/scheduler/ipp.c 2018-06-08 17:37:19.166378937 +0200
@@ -14,6 +14,9 @@
* missing or damaged, see the license at "http://www.cups.org/".
*/
static int check_quotas(cupsd_client_t *con, cupsd_printer_t *p);
static void close_job(cupsd_client_t *con, ipp_attribute_t *uri);
static void copy_attrs(ipp_t *to, ipp_t *from, cups_array_t *ra,
-@@ -1286,6 +1300,21 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1250,6 +1264,21 @@ add_job(cupsd_client_t *con, /* I - Cl
"time-at-creation",
"time-at-processing"
};
cupsdLogMessage(CUPSD_LOG_DEBUG2, "add_job(%p[%d], %p(%s), %p(%s/%s))",
-@@ -1597,6 +1626,106 @@ add_job(cupsd_client_t *con, /* I - Cl
- return (NULL);
- }
+@@ -1578,6 +1607,106 @@ add_job(cupsd_client_t *con, /* I - Cl
+
+ attr = ippFindAttribute(con->request, "requesting-user-name", IPP_TAG_NAME);
+#ifdef WITH_LSPP
+ if (is_lspp_config())
if ((job = cupsdAddJob(priority, printer->name)) == NULL)
{
send_ipp_status(con, IPP_INTERNAL_ERROR,
-@@ -1605,6 +1734,32 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1586,6 +1715,32 @@ add_job(cupsd_client_t *con, /* I - Cl
return (NULL);
}
job->dtype = printer->type & (CUPS_PRINTER_CLASS | CUPS_PRINTER_REMOTE);
job->attrs = con->request;
job->dirty = 1;
-@@ -1794,6 +1949,29 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1773,6 +1928,29 @@ add_job(cupsd_client_t *con, /* I - Cl
ippSetString(job->attrs, &attr, 0, printer->job_sheets[0]);
ippSetString(job->attrs, &attr, 1, printer->job_sheets[1]);
}
job->job_sheets = attr;
-@@ -1824,6 +2002,9 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1803,6 +1981,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-sheets=\"%s,none\", "
"job-originating-user-name=\"%s\"",
Classification, job->username);
}
else if (attr->num_values == 2 &&
strcmp(attr->values[0].string.text,
-@@ -1842,6 +2023,9 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1821,6 +2002,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-originating-user-name=\"%s\"",
attr->values[0].string.text,
attr->values[1].string.text, job->username);
}
else if (strcmp(attr->values[0].string.text, Classification) &&
strcmp(attr->values[0].string.text, "none") &&
-@@ -1862,6 +2046,9 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1841,6 +2025,9 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-originating-user-name=\"%s\"",
attr->values[0].string.text,
attr->values[1].string.text, job->username);
}
}
else if (strcmp(attr->values[0].string.text, Classification) &&
-@@ -1902,8 +2089,52 @@ add_job(cupsd_client_t *con, /* I - Cl
+@@ -1881,8 +2068,52 @@ add_job(cupsd_client_t *con, /* I - Cl
"job-sheets=\"%s\", "
"job-originating-user-name=\"%s\"",
Classification, job->username);
+#ifdef WITH_LSPP
+ override = 1;
+#endif /* WITH_LSPP */
- }
++ }
+#ifdef WITH_LSPP
+ if (is_lspp_config() && AuditLog != -1)
+ {
+ }
+ cupsdClearString(&audit_message);
+ }
-+ }
+ }
+
+ if (userheader)
+ free(userheader);
/*
* See if we need to add the starting sheet...
-@@ -3686,6 +3917,128 @@ check_rss_recipient(
+@@ -3656,6 +3887,128 @@ check_rss_recipient(
}
/*
* 'check_quotas()' - Check quotas for a printer and user.
*/
-@@ -4142,6 +4495,15 @@ copy_banner(cupsd_client_t *con, /* I -
+@@ -4112,6 +4465,15 @@ copy_banner(cupsd_client_t *con, /* I -
char attrname[255], /* Name of attribute */
*s; /* Pointer into name */
ipp_attribute_t *attr; /* Attribute */
cupsdLogMessage(CUPSD_LOG_DEBUG2,
-@@ -4177,6 +4539,85 @@ copy_banner(cupsd_client_t *con, /* I -
+@@ -4147,6 +4509,85 @@ copy_banner(cupsd_client_t *con, /* I -
fchmod(cupsFileNumber(out), 0640);
fchown(cupsFileNumber(out), RunUser, Group);
/*
* Try the localized banner file under the subdirectory...
-@@ -4271,6 +4712,24 @@ copy_banner(cupsd_client_t *con, /* I -
+@@ -4241,6 +4682,24 @@ copy_banner(cupsd_client_t *con, /* I -
else
s = attrname;
if (!strcmp(s, "printer-name"))
{
cupsFilePuts(out, job->dest);
-@@ -6459,6 +6918,22 @@ get_job_attrs(cupsd_client_t *con, /* I
+@@ -6480,6 +6939,22 @@ get_job_attrs(cupsd_client_t *con, /* I
exclude = cupsdGetPrivateAttrs(policy, con, printer, job->username);
/*
* Copy attributes...
*/
-@@ -6856,6 +7331,11 @@ get_jobs(cupsd_client_t *con, /* I - C
+@@ -6877,6 +7352,11 @@ get_jobs(cupsd_client_t *con, /* I - C
if (username[0] && _cups_strcasecmp(username, job->username))
continue;
if (count > 0)
ippAddSeparator(con->response);
-@@ -11487,6 +11967,11 @@ validate_user(cupsd_job_t *job, /* I
+@@ -11475,6 +11955,11 @@ validate_user(cupsd_job_t *job, /* I
strlcpy(username, get_username(con), userlen);
/*
* Check the username against the owner...
*/
-diff -up cups-2.2.5/scheduler/job.c.lspp cups-2.2.5/scheduler/job.c
---- cups-2.2.5/scheduler/job.c.lspp 2017-10-17 19:06:19.607229238 +0200
-+++ cups-2.2.5/scheduler/job.c 2017-10-17 19:06:19.696228498 +0200
+diff -up cups-2.2.8/scheduler/job.c.lspp cups-2.2.8/scheduler/job.c
+--- cups-2.2.8/scheduler/job.c.lspp 2018-06-08 17:34:38.657654158 +0200
++++ cups-2.2.8/scheduler/job.c 2018-06-08 17:34:38.733653554 +0200
@@ -11,6 +11,9 @@
* missing or damaged, see the license at "http://www.cups.org/".
*/
if (Classification && !banner_page)
{
if ((attr = ippFindAttribute(job->attrs, "job-sheets",
-@@ -1908,6 +1988,22 @@ cupsdLoadJob(cupsd_job_t *job) /* I - J
+@@ -1862,6 +1942,22 @@ cupsdLoadJob(cupsd_job_t *job) /* I - J
ippSetString(job->attrs, &job->reasons, 0, "none");
}
job->impressions = ippFindAttribute(job->attrs, "job-impressions-completed", IPP_TAG_INTEGER);
job->sheets = ippFindAttribute(job->attrs, "job-media-sheets-completed", IPP_TAG_INTEGER);
job->job_sheets = ippFindAttribute(job->attrs, "job-sheets", IPP_TAG_NAME);
-@@ -2321,6 +2417,14 @@ cupsdSaveJob(cupsd_job_t *job) /* I - J
+@@ -2275,6 +2371,14 @@ cupsdSaveJob(cupsd_job_t *job) /* I - J
{
char filename[1024]; /* Job control filename */
cups_file_t *fp; /* Job file */
cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdSaveJob(job=%p(%d)): job->attrs=%p",
-@@ -2343,6 +2447,78 @@ cupsdSaveJob(cupsd_job_t *job) /* I - J
+@@ -2297,6 +2401,78 @@ cupsdSaveJob(cupsd_job_t *job) /* I - J
fchown(cupsFileNumber(fp), RunUser, Group);
job->attrs->state = IPP_IDLE;
if (ippWriteIO(fp, (ipp_iocb_t)cupsFileWrite, 1, NULL,
-@@ -3989,6 +4165,19 @@ get_options(cupsd_job_t *job, /* I - Jo
+@@ -3943,6 +4119,19 @@ get_options(cupsd_job_t *job, /* I - Jo
banner_page)
continue;
/*
* Otherwise add them to the list...
*/
-@@ -4750,6 +4939,18 @@ start_job(cupsd_job_t *job, /* I -
+@@ -4704,6 +4893,18 @@ start_job(cupsd_job_t *job, /* I -
cupsd_printer_t *printer) /* I - Printer to print job */
{
const char *filename; /* Support filename */
ipp_attribute_t *cancel_after = ippFindAttribute(job->attrs,
"job-cancel-after",
IPP_TAG_INTEGER);
-@@ -4926,6 +5127,113 @@ start_job(cupsd_job_t *job, /* I -
+@@ -4892,6 +5093,113 @@ start_job(cupsd_job_t *job, /* I -
fcntl(job->side_pipes[1], F_SETFD,
fcntl(job->side_pipes[1], F_GETFD) | FD_CLOEXEC);
/*
* Now start the first file in the job...
*/
-diff -up cups-2.2.5/scheduler/job.h.lspp cups-2.2.5/scheduler/job.h
---- cups-2.2.5/scheduler/job.h.lspp 2017-10-13 20:22:26.000000000 +0200
-+++ cups-2.2.5/scheduler/job.h 2017-10-17 19:06:19.696228498 +0200
+diff -up cups-2.2.8/scheduler/job.h.lspp cups-2.2.8/scheduler/job.h
+--- cups-2.2.8/scheduler/job.h.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/scheduler/job.h 2018-06-08 17:34:38.733653554 +0200
@@ -11,6 +11,13 @@
* missing or damaged, see the license at "http://www.cups.org/".
*/
};
typedef struct cupsd_joblog_s /**** Job log message ****/
-diff -up cups-2.2.5/scheduler/main.c.lspp cups-2.2.5/scheduler/main.c
---- cups-2.2.5/scheduler/main.c.lspp 2017-10-17 19:06:19.637228989 +0200
-+++ cups-2.2.5/scheduler/main.c 2017-10-17 19:08:26.642173026 +0200
+diff -up cups-2.2.8/scheduler/main.c.lspp cups-2.2.8/scheduler/main.c
+--- cups-2.2.8/scheduler/main.c.lspp 2018-06-08 17:34:38.663654110 +0200
++++ cups-2.2.8/scheduler/main.c 2018-06-08 17:34:38.734653546 +0200
@@ -56,6 +56,9 @@
# include <sys/param.h>
#endif /* HAVE_SYS_PARAM_H */
#ifdef __APPLE__
int use_sysman = 1; /* Use system management functions? */
#else
-@@ -516,6 +522,25 @@ main(int argc, /* I - Number of comm
+@@ -495,6 +501,25 @@ main(int argc, /* I - Number of comm
exit(errno);
}
/*
* Let the system know we are busy while we bring up cupsd...
*/
-@@ -1227,6 +1252,11 @@ main(int argc, /* I - Number of comm
+@@ -1188,6 +1213,11 @@ main(int argc, /* I - Number of comm
cupsdStopSelect();
return (!stop_scheduler);
}
-diff -up cups-2.2.5/scheduler/printers.c.lspp cups-2.2.5/scheduler/printers.c
---- cups-2.2.5/scheduler/printers.c.lspp 2017-10-17 19:06:19.587229404 +0200
-+++ cups-2.2.5/scheduler/printers.c 2017-10-17 19:06:19.697228490 +0200
+diff -up cups-2.2.8/scheduler/printers.c.lspp cups-2.2.8/scheduler/printers.c
+--- cups-2.2.8/scheduler/printers.c.lspp 2018-06-05 18:06:54.000000000 +0200
++++ cups-2.2.8/scheduler/printers.c 2018-06-08 17:34:38.734653546 +0200
@@ -11,6 +11,8 @@
* missing or damaged, see the license at "http://www.cups.org/".
*/
/*
* Local functions...
-@@ -2212,6 +2218,13 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
+@@ -2202,6 +2208,13 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
ipp_attribute_t *attr; /* Attribute data */
char *name, /* Current user/group name */
*filter; /* Current filter */
DEBUG_printf(("cupsdSetPrinterAttrs: entering name = %s, type = %x\n", p->name,
-@@ -2339,6 +2352,45 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
+@@ -2329,6 +2342,45 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)
attr->values[1].string.text = _cupsStrAlloc(Classification ?
Classification : p->job_sheets[1]);
}