mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Bug fix for non-PS octet-stream print failures. Patch taken from CVS.
This commit is contained in:
parent
6324063096
commit
fbe39ec3f0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66145
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= cups-base
|
||||
PORTVERSION= ${CUPS_PORTVER}
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES?= print
|
||||
|
||||
MAINTAINER= ports@geeksrus.net
|
||||
|
52
print/cups-base/patch-scheduler-mime.c-1.1.16
Normal file
52
print/cups-base/patch-scheduler-mime.c-1.1.16
Normal file
@ -0,0 +1,52 @@
|
||||
Index: mime.c
|
||||
===================================================================
|
||||
RCS file: /home/anoncvs/cups/scheduler/mime.c,v
|
||||
retrieving revision 1.12
|
||||
retrieving revision 1.14
|
||||
diff -u -3 -r1.12 -r1.14
|
||||
--- mime.c 2002/05/16 13:45:02 1.12
|
||||
+++ mime.c 2002/08/23 01:33:46 1.14
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
- * "$Id: mime.c,v 1.12 2002/05/16 13:45:02 mike Exp $"
|
||||
+ * "$Id: mime.c,v 1.14 2002/08/23 01:33:46 mike Exp $"
|
||||
*
|
||||
* MIME database file routines for the Common UNIX Printing System (CUPS).
|
||||
*
|
||||
@@ -502,17 +502,20 @@
|
||||
filter = lineptr;
|
||||
|
||||
#ifndef WIN32
|
||||
- /*
|
||||
- * Verify that the filter exists and is executable...
|
||||
- */
|
||||
+ if (strcmp(filter, "-") != 0)
|
||||
+ {
|
||||
+ /*
|
||||
+ * Verify that the filter exists and is executable...
|
||||
+ */
|
||||
|
||||
- if (filter[0] == '/')
|
||||
- strlcpy(filterprog, filter, sizeof(filterprog));
|
||||
- else
|
||||
- snprintf(filterprog, sizeof(filterprog), "%s/%s", filterpath, filter);
|
||||
+ if (filter[0] == '/')
|
||||
+ strlcpy(filterprog, filter, sizeof(filterprog));
|
||||
+ else
|
||||
+ snprintf(filterprog, sizeof(filterprog), "%s/%s", filterpath, filter);
|
||||
|
||||
- if (access(filterprog, X_OK))
|
||||
- continue;
|
||||
+ if (access(filterprog, X_OK))
|
||||
+ continue;
|
||||
+ }
|
||||
#endif /* !WIN32 */
|
||||
|
||||
/*
|
||||
@@ -593,5 +596,5 @@
|
||||
|
||||
|
||||
/*
|
||||
- * End of "$Id: mime.c,v 1.12 2002/05/16 13:45:02 mike Exp $".
|
||||
+ * End of "$Id: mime.c,v 1.14 2002/08/23 01:33:46 mike Exp $".
|
||||
*/
|
Loading…
Reference in New Issue
Block a user