From ae840a31404c057d0368b5d703d6b33b5c730251 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Mon, 18 Aug 2003 02:48:32 +0000 Subject: - use the proper lpc syntax to get a printer list - bump PORTREVISION PR: 37362 Submitted by: maintainer Reported by: Greg Shenaut --- editors/ted/files/patch-appUtil::utilPrinter.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 editors/ted/files/patch-appUtil::utilPrinter.c (limited to 'editors/ted/files/patch-appUtil::utilPrinter.c') diff --git a/editors/ted/files/patch-appUtil::utilPrinter.c b/editors/ted/files/patch-appUtil::utilPrinter.c new file mode 100644 index 000000000000..5851e93e36ba --- /dev/null +++ b/editors/ted/files/patch-appUtil::utilPrinter.c @@ -0,0 +1,20 @@ + $FreeBSD$ + + --- appUtil/utilPrinter.c Sun Aug 17 19:14:01 2003 + +++ appUtil/utilPrinter.c Sun Aug 17 19:15:54 2003 + @@ -281,14 +281,14 @@ + /* 1 */ + if ( count == 0 ) + { + - utilPrinterGetLprPrinters( "( lpc status ) 2>/dev/null", + + utilPrinterGetLprPrinters( "( lpc status all) 2>/dev/null", + &defaultPrinter, &count, &pd ); + } + + /* 1b */ + if ( count == 0 ) + { + - utilPrinterGetLprPrinters( "( /usr/sbin/lpc status ) 2>/dev/null", + + utilPrinterGetLprPrinters( "( /usr/sbin/lpc status all) 2>/dev/null", + &defaultPrinter, &count, &pd ); + } -- cgit v1.2.3