Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 81e67c4380e5ab7f709d61e0aada18f5 > files > 7

hplip-3.12.10-4.a.fc16.src.rpm

diff -up hplip-3.12.9/prnt/cupsext/cupsext.c.addprinter hplip-3.12.9/prnt/cupsext/cupsext.c
--- hplip-3.12.9/prnt/cupsext/cupsext.c.addprinter	2012-09-04 14:31:10.000000000 +0200
+++ hplip-3.12.9/prnt/cupsext/cupsext.c	2012-09-07 14:20:24.626193617 +0200
@@ -511,6 +511,7 @@ PyObject * addPrinter( PyObject * self,
         strcpy( info, name );
 
     /* Connect to the HTTP server */
+    cupsSetUser ("root");
     if ( ( http = httpConnectEncrypt( cupsServer(), ippPort(), cupsEncryption() ) ) == NULL )
     {
         r = 0;