From 999637b1fd707bd54b1bd63fa6979a3673826bd0 Mon Sep 17 00:00:00 2001 From: "\"Nagaraj Yedathore - Sun Microsystems - Bangalore India\"" Date: Fri, 12 Jun 2009 16:53:09 +0530 Subject: 6760057 output messages of accept(1),reject(1) changed after 127127-11 applied. --- usr/src/cmd/print/bsd-sysv-commands/enable.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usr/src/cmd/print/bsd-sysv-commands/enable.c') diff --git a/usr/src/cmd/print/bsd-sysv-commands/enable.c b/usr/src/cmd/print/bsd-sysv-commands/enable.c index f67ace102c..c197337e1e 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/enable.c +++ b/usr/src/cmd/print/bsd-sysv-commands/enable.c @@ -99,8 +99,14 @@ main(int ac, char *av[]) printer); exit_status = 1; } else { - fprintf(stderr, gettext("enable: %s: %s\n"), printer, - verbose_papi_message(svc, status)); + /* The operation is not supported in lpd protocol */ + if (status == PAPI_OPERATION_NOT_SUPPORTED) { + fprintf(stderr, + verbose_papi_message(svc, status)); + } else { + fprintf(stderr, gettext("enable: %s: %s\n"), + printer, verbose_papi_message(svc, status)); + } exit_status = 1; } -- cgit v1.2.3