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/enable.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/enable.c')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/enable.c | 10 |
1 files changed, 8 insertions, 2 deletions
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; } |