diff options
author | "Nagaraj Yedathore - Sun Microsystems - Bangalore India" <Nagaraj.Yedathore@Sun.COM> | 2009-06-12 16:53:09 +0530 |
---|---|---|
committer | "Nagaraj Yedathore - Sun Microsystems - Bangalore India" <Nagaraj.Yedathore@Sun.COM> | 2009-06-12 16:53:09 +0530 |
commit | 999637b1fd707bd54b1bd63fa6979a3673826bd0 (patch) | |
tree | 312a6f845fe178f852b798c522298def3dd9847f /usr/src/cmd/print/bsd-sysv-commands/disable.c | |
parent | aad74983c015b9377370a62fd6867b6074434d3e (diff) | |
download | illumos-joyent-999637b1fd707bd54b1bd63fa6979a3673826bd0.tar.gz |
6760057 output messages of accept(1),reject(1) changed after 127127-11 applied.
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/disable.c')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/disable.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/disable.c b/usr/src/cmd/print/bsd-sysv-commands/disable.c index 95f6dbd230..0b3cb71f0c 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/disable.c +++ b/usr/src/cmd/print/bsd-sysv-commands/disable.c @@ -1,3 +1,4 @@ + /* * CDDL HEADER START * @@ -141,8 +142,14 @@ main(int ac, char *av[]) printer); exit_status = 1; } else { - fprintf(stderr, gettext("disable: %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("disable: %s: %s\n"), + printer, verbose_papi_message(svc, status)); + } exit_status = 1; } |