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/accept.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/accept.c')
-rw-r--r-- | usr/src/cmd/print/bsd-sysv-commands/accept.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/accept.c b/usr/src/cmd/print/bsd-sysv-commands/accept.c index 903d7728ba..74f392c9c3 100644 --- a/usr/src/cmd/print/bsd-sysv-commands/accept.c +++ b/usr/src/cmd/print/bsd-sysv-commands/accept.c @@ -1,3 +1,4 @@ + /* * CDDL HEADER START * @@ -99,9 +100,14 @@ main(int ac, char *av[]) "accepting requests.\n"), printer); exit_status = 1; } else { - fprintf(stderr, gettext("accept: %s: %s\n"), printer, - verbose_papi_message(svc, status)); - exit_status = 1; + if (status == PAPI_OPERATION_NOT_SUPPORTED) { + fprintf(stderr, + verbose_papi_message(svc, status)); + } else { + fprintf(stderr, gettext("accept: %s: %s\n"), + printer, verbose_papi_message(svc, status)); + exit_status = 1; + } } papiServiceDestroy(svc); |