commit cups-pdf for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package cups-pdf for openSUSE:Factory checked in at 2017-03-17 15:07:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cups-pdf (Old) and /work/SRC/openSUSE:Factory/.cups-pdf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "cups-pdf" Fri Mar 17 15:07:36 2017 rev:3 rq:480739 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/cups-pdf/cups-pdf.changes 2017-01-15 11:21:06.528647530 +0100 +++ /work/SRC/openSUSE:Factory/.cups-pdf.new/cups-pdf.changes 2017-03-17 15:07:37.316740481 +0100 @@ -1,0 +2,9 @@ +Thu Mar 16 21:48:51 UTC 2017 - joerg.lorenzen@ki.tng.de + +- Version update to 3.0.1 which includes: + - Corrected a bug with multiple instance naming. + - Some code and logging improvements. + - Removed obsolete code. + - Updated the README file. + +------------------------------------------------------------------- Old: ---- cups-pdf_3.0.0.tar.gz New: ---- cups-pdf_3.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cups-pdf.spec ++++++ --- /var/tmp/diff_new_pack.nFLp5s/_old 2017-03-17 15:07:37.836667102 +0100 +++ /var/tmp/diff_new_pack.nFLp5s/_new 2017-03-17 15:07:37.836667102 +0100 @@ -17,7 +17,7 @@ Name: cups-pdf -Version: 3.0.0 +Version: 3.0.1 Release: 0 Summary: Virtual PDF printer for CUPS License: GPL-2.0 ++++++ cups-pdf_3.0.0.tar.gz -> cups-pdf_3.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cups-pdf-3.0.0/ChangeLog new/cups-pdf-3.0.1/ChangeLog --- old/cups-pdf-3.0.0/ChangeLog 2017-01-04 17:25:18.711217015 +0100 +++ new/cups-pdf-3.0.1/ChangeLog 2017-02-24 17:36:34.201283564 +0100 @@ -1,4 +1,8 @@ -2917-01-04: CUPS-PDF 3.0.0 - disabled support for multiple PS-files in one file, +2017-02-24: CUPS-PDF 3.0.1 - corrected a bug with multiple instance naming, + some code and logging improvements, + removed obsolete code, + updated the README file +2017-01-04: CUPS-PDF 3.0.0 - disabled support for multiple PS-files in one file, improved PS-structure handling, reordered compiler call to avoid errors 2014-10-19: CUPS-PDF 3.0beta2 - code simplifications and optimizations, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cups-pdf-3.0.0/README new/cups-pdf-3.0.1/README --- old/cups-pdf-3.0.0/README 2017-01-04 17:14:20.463586745 +0100 +++ new/cups-pdf-3.0.1/README 2017-02-24 16:46:27.690529825 +0100 @@ -85,8 +85,9 @@ Furthermore if logging is enabled the logfile will be placed by default in /var/log/cups. - The file "CUPS-PDF.ppd" is a modified version of the "Postscript.ppd.gz" - that comes with CUPS 1.1.15 that is able to handle color output. + The files "CUPS-PDF_opt.ppd" and "CUPS-PDF_noopt.ppd" are modified versions + of the "Postscript.ppd.gz" that comes with CUPS 1.1.15 that is able to + handle color output. You should have a look at the contributed software on www.cups-pdf.de which contains several additions to CUPS-PDF which enhance functionality or @@ -96,8 +97,8 @@ 3. advanced configuration and multiple instances ------------------------------------------------ - CUPS-PDF now has a PPD file that allows setting the folling options in the - CUPS webinterface (administration/set default options): + CUPS-PDF now has a PPD file (CUPS-PDF_opt.ppd) that allows setting the following + options in the CUPS webinterface (administration/set default options): - resolution - page size - PDF version @@ -105,7 +106,7 @@ - labelling (with jobid) of output files - title source preference - log level - Please note that setting these options in the cups-ppd.conf will have no + Please note that setting these options in the cups-pdf.conf will have no effect if you use the included PPD file as the settings from the PPD-file will override the settings in the config file. @@ -120,7 +121,7 @@ These options are deemed not to create security risks. If you insist on allowing users to set other options as well (creating security risks, you have been warned!), set AllowUnsafeOptions in the config file - (/etc/cups/cups-ppd.conf) to 1. + (/etc/cups/cups-pdf.conf) to 1. To create multiple instances of the backend with different configurations, simply copy several config files in your config directory, naming them diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cups-pdf-3.0.0/extra/cups-pdf.conf new/cups-pdf-3.0.1/extra/cups-pdf.conf --- old/cups-pdf-3.0.0/extra/cups-pdf.conf 2017-01-04 17:25:43.822706088 +0100 +++ new/cups-pdf-3.0.1/extra/cups-pdf.conf 2017-02-24 16:30:18.476524443 +0100 @@ -1,4 +1,4 @@ -# cups-pdf.conf -- CUPS Backend Configuration (version 3.0.0, 2017-01-04) +# cups-pdf.conf -- CUPS Backend Configuration (version 3.0.1, 2017-02-24) # 18.09.2005, Volker C. Behr # volker@cups-pdf.de # http://www.cups-pdf.de diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cups-pdf-3.0.0/src/cups-pdf.c new/cups-pdf-3.0.1/src/cups-pdf.c --- old/cups-pdf-3.0.0/src/cups-pdf.c 2017-01-04 17:15:30.937153474 +0100 +++ new/cups-pdf-3.0.1/src/cups-pdf.c 2017-02-24 17:32:46.767977798 +0100 @@ -1,4 +1,4 @@ -/* cups-pdf.c -- CUPS Backend (version 3.0.0, 2017-01-04) +/* cups-pdf.c -- CUPS Backend (version 3.0.1, 2017-02-24) 08.02.2003, Volker C. Behr volker@cups-pdf.de http://www.cups-pdf.de @@ -90,7 +90,7 @@ va_end(ap); fprintf(logfp,"%s [%s] %s\n", timestring, ctype, logbuffer); - if ((Conf_LogType & CPDEBUG) && (type & CPERROR) && error) + if ((Conf_LogType & CPDEBUG) && (type == CPERROR) && error) fprintf(logfp,"%s [DEBUG] ERRNO: %d (%s)\n", timestring, error, strerror(error)); (void) fflush(logfp); @@ -355,6 +355,7 @@ struct stat fstatus; struct group *group; cp_string filename; + int grpstat; const char *uri=cupsBackendDeviceURI(argv); if ((uri != NULL) && (strncmp(uri, "cups-pdf:/", 10) == 0) && strlen(uri) > 10) { @@ -373,8 +374,7 @@ (void) umask(0077); group=getgrnam(Conf_Grp); - if (group) - (void) setgid(group->gr_gid); + grpstat=setgid(group->gr_gid); if (strlen(Conf_Log)) { if (stat(Conf_Log, &fstatus) || !S_ISDIR(fstatus.st_mode)) { @@ -392,9 +392,13 @@ if (!group) { log_event(CPERROR, "Grp not found: %s", Conf_Grp); return 1; + } + else if (grpstat) { + log_event(CPERROR, "failed to set new gid: %s", Conf_Grp); + return 1; } else - log_event(CPDEBUG, "switching to new gid: %s", Conf_Grp); + log_event(CPDEBUG, "set new gid: %s", Conf_Grp); (void) umask(0022); @@ -430,6 +434,7 @@ if ((strncmp(config_ent->d_name, "cups-pdf-", 9) == 0) && (len > 14 && strcmp(config_ent->d_name + len - 5, ".conf") == 0)) { strncpy(setup, config_ent->d_name + 9, BUFSIZE>len-14 ? len-14 : BUFSIZE); + setup[BUFSIZE>len-14 ? len-14 : BUFSIZE - 1] = '\0'; printf("file cups-pdf:/%s \"Virtual %s Printer\" \"CUPS-PDF\" \"MFG:Generic;MDL:CUPS-PDF Printer;DES:Generic CUPS-PDF Printer;CLS:PRINTER;CMD:POSTSCRIPT;\"\n", setup, setup); } } @@ -627,10 +632,6 @@ else { replace_string(title); } - log_event(CPDEBUG, "removing trailing newlines from title: %s", title); - while (strlen(title) && ((title[strlen(title)-1] == '\n') || (title[strlen(title)-1] == '\r'))) { - title[strlen(title)-1]='\0'; - } i=strlen(title); if (i>1) { while (title[--i]=='_'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cups-pdf-3.0.0/src/cups-pdf.h new/cups-pdf-3.0.1/src/cups-pdf.h --- old/cups-pdf-3.0.0/src/cups-pdf.h 2017-01-04 17:23:02.699976570 +0100 +++ new/cups-pdf-3.0.1/src/cups-pdf.h 2017-02-24 16:31:00.901661190 +0100 @@ -1,4 +1,4 @@ -/* cups-pdf.h -- CUPS Backend Header File (version 3.0.0, 2017-01-04) +/* cups-pdf.h -- CUPS Backend Header File (version 3.0.1, 2017-02-24) 16.05.2003, Volker C. Behr volker@cups-pdf.de http://www.cups-pdf.de @@ -26,7 +26,7 @@ /* The following settings are for internal purposes only - all relevant / options listed below can be set via cups-pdf.conf at runtime */ -#define CPVERSION "v3.0.0" +#define CPVERSION "v3.0.1" #define CPERROR 1 #define CPSTATUS 2
participants (1)
-
root@hilbert.suse.de