CHANGES IN CUPS V1.1.21rc2
+ - The scheduler did not pass the correct CUPS_ENCRYPTION
+ setting to CGI programs which caused problems on
+ systems which used non-standard encryption settings
+ (STR #773)
+ - The lpq command showed 11st, 12nd, and 13rd instead of
+ 11th, 12th, and 13th for the rank (STR #769)
- "make install" didn't work on some platforms due to an
error in the man page makefiles (STR #775)
- Changed some calls to snprintf() in the scheduler to
/*
- * "$Id: lpq.c,v 1.17.2.13 2004/05/27 15:37:47 mike Exp $"
+ * "$Id: lpq.c,v 1.17.2.14 2004/06/17 14:45:12 mike Exp $"
*
* "lpq" command for the Common UNIX Printing System (CUPS).
*
strcpy(rankstr, "active");
else
{
- snprintf(rankstr, sizeof(rankstr), "%d%s", rank, ranks[rank % 10]);
+ /*
+ * Make the rank show the "correct" suffix for each number
+ * (11-13 are the only special cases, for English anyways...)
+ */
+
+ if ((rank % 100) >= 11 && (rank % 100) <= 13)
+ snprintf(rankstr, sizeof(rankstr), "%dth", rank);
+ else
+ snprintf(rankstr, sizeof(rankstr), "%d%s", rank, ranks[rank % 10]);
+
rank ++;
}
/*
- * End of "$Id: lpq.c,v 1.17.2.13 2004/05/27 15:37:47 mike Exp $".
+ * End of "$Id: lpq.c,v 1.17.2.14 2004/06/17 14:45:12 mike Exp $".
*/
/*
- * "$Id: client.c,v 1.91.2.81 2004/04/20 13:40:30 mike Exp $"
+ * "$Id: client.c,v 1.91.2.82 2004/06/17 14:45:12 mike Exp $"
*
* Client routines for the Common UNIX Printing System (CUPS) scheduler.
*
"EUC-CN", "EUC-JP", "EUC-KR", "EUC-TW"
};
+ static const char * const encryptions[] =
+ {
+ "CUPS_ENCRYPTION=IfRequested",
+ "CUPS_ENCRYPTION=Never",
+ "CUPS_ENCRYPTION=Required",
+ "CUPS_ENCRYPTION=Always"
+ };
/*
*/
if (con->http.encryption == HTTP_ENCRYPT_ALWAYS)
- {
envp[envc ++] = "HTTPS=ON";
- envp[envc ++] = "CUPS_ENCRYPTION=Always";
- }
+
+ envp[envc ++] = (char *)encryptions[LocalEncryption];
+
+ /*
+ * Terminate the environment array...
+ */
envp[envc] = NULL;
/*
- * End of "$Id: client.c,v 1.91.2.81 2004/04/20 13:40:30 mike Exp $".
+ * End of "$Id: client.c,v 1.91.2.82 2004/06/17 14:45:12 mike Exp $".
*/
/*
- * "$Id: client.h,v 1.17.2.12 2004/03/02 20:56:02 mike Exp $"
+ * "$Id: client.h,v 1.17.2.13 2004/06/17 14:45:12 mike Exp $"
*
* Client definitions for the Common UNIX Printing System (CUPS) scheduler.
*
/* Max backlog of pending connections */
LocalPort VALUE(631);
/* Local port to use */
+VAR http_encryption_t LocalEncryption VALUE(HTTP_ENCRYPT_IF_REQUESTED);
+ /* Local port encryption to use */
VAR int NumListeners VALUE(0);
/* Number of listening sockets */
VAR listener_t *Listeners VALUE(NULL);
/*
- * End of "$Id: client.h,v 1.17.2.12 2004/03/02 20:56:02 mike Exp $".
+ * End of "$Id: client.h,v 1.17.2.13 2004/06/17 14:45:12 mike Exp $".
*/
/*
- * "$Id: listen.c,v 1.9.2.13 2004/03/24 21:28:56 mike Exp $"
+ * "$Id: listen.c,v 1.9.2.14 2004/06/17 14:45:12 mike Exp $"
*
* Server listening routines for the Common UNIX Printing System (CUPS)
* scheduler.
if (!LocalPort &&
(httpAddrLocalhost(&(lis->address)) ||
httpAddrAny(&(lis->address))))
- LocalPort = p;
+ {
+ LocalPort = p;
+ LocalEncryption = lis->encryption;
+ }
/*
* Create a socket for listening...
/*
- * End of "$Id: listen.c,v 1.9.2.13 2004/03/24 21:28:56 mike Exp $".
+ * End of "$Id: listen.c,v 1.9.2.14 2004/06/17 14:45:12 mike Exp $".
*/