from netbsd; More descriptive message for printer status. Addresses PR #509
authorderaadt <deraadt@openbsd.org>
Mon, 15 Jan 1996 20:11:33 +0000 (20:11 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 15 Jan 1996 20:11:33 +0000 (20:11 +0000)
usr.sbin/lpr/lpc/cmds.c

index 094672e..0b9aff0 100644 (file)
@@ -832,7 +832,7 @@ prstat()
        fd = open(line, O_RDONLY);
        if (fd < 0 || flock(fd, LOCK_SH|LOCK_NB) == 0) {
                (void) close(fd);       /* unlocks as well */
-               printf("\tno daemon present\n");
+               printf("\tprinter idle\n");
                return;
        }
        (void) close(fd);