Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37404580
en ru br
ALT Linux repos
S:0.2.3-alt7
5.0: 0.2.3-alt2
4.1: 0.2.3-alt1
4.0: 0.2.2-alt2
3.0: 0.2.0-alt1

Group :: System/Libraries
RPM: libgnomecups

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libgnomecups-0.2.2-fix-islocal.patch
Download


diff -pruN 0.2.2-1/libgnomecups/gnome-cups-printer.c 0.2.2-1ubuntu5/libgnomecups/gnome-cups-printer.c
--- 0.2.2-1/libgnomecups/gnome-cups-printer.c	2005-09-23 21:52:49.000000000 +0100
+++ 0.2.2-1ubuntu5/libgnomecups/gnome-cups-printer.c	2006-06-27 16:21:38.000000000 +0100
@@ -976,8 +980,11 @@ gnome_cups_printer_get_is_local (GnomeCu
 {
 	g_return_val_if_fail (GNOME_CUPS_IS_PRINTER (printer), FALSE);
 
-	return (printer->details->device_uri != NULL) && 
-		(strcmp (printer->details->device_uri, "") != 0);
+	return printer->details->device_uri != NULL && 
+		strncmp(printer->details->device_uri, "smb:", 4) != 0 &&
+		strncmp(printer->details->device_uri, "http:", 5) != 0 &&
+		strncmp(printer->details->device_uri, "https:", 5) != 0 &&
+		strncmp(printer->details->device_uri, "ipp:", 4)  != 0;
 }
 
 void
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin