summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
diff options
context:
space:
mode:
authorJonathan Cowper-Andrewes <Jonathan.Ca@Sun.COM>2008-09-22 16:52:09 +0100
committerJonathan Cowper-Andrewes <Jonathan.Ca@Sun.COM>2008-09-22 16:52:09 +0100
commit5eb9a62c342548561cae704776d448a516c4cdfe (patch)
tree982a4fdf8fc791f42f01a53cf3162859dfdda3aa /usr/src/cmd/print/bsd-sysv-commands/lpstat.c
parenteff61088b42cee37cf1b09bac8888793f28230e6 (diff)
downloadillumos-gate-5eb9a62c342548561cae704776d448a516c4cdfe.tar.gz
6718897 lpstat regression
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lpstat.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/lpstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
index f218daa4be..ed7a0eede5 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
@@ -27,7 +27,6 @@
/* $Id: lpstat.c 173 2006-05-25 04:52:06Z njacobs $ */
-#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
@@ -411,7 +410,7 @@ report_printer(papi_service_t svc, char *name, papi_printer_t printer,
(void) papiAttributeListGetString(attrs, NULL,
"lpsched-dial-info", &str);
printf(gettext("\tConnection: %s\n"),
- ((str[0] != '\0') ? gettext("direct") : str));
+ ((str[0] == '\0') ? gettext("direct") : str));
str = "";
(void) papiAttributeListGetString(attrs, NULL,