Skip to content
Browse files

Added "ippPort()" call to the beginning of the program, to initialize…

… libcups

The CUPS backend runs into a bug of libcups, of the default server
name, port, domain socket file name not being initialized depending on
which functions of the library are used. See this upstream bug report
on CUPS:


A simple call of "ippPort()" in the very beginning of the backend executable
solves the problem.

This also caused the issue


which is solved now, too.
  • Loading branch information...
tillkamppeter committed Aug 29, 2019
1 parent 6ea958e commit d8d7aa10ec0064f15701550e0a6861e38228bcca
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/print_backend_cups.c
@@ -23,6 +23,9 @@ BackendObj *b;

int main()
/* Initialize internal default settings of the CUPS library */
int p = ippPort();

b = get_new_BackendObj();
GMainLoop *loop = g_main_loop_new(NULL, FALSE);

0 comments on commit d8d7aa1

Please sign in to comment.
You can’t perform that action at this time.