summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/lpr.c
diff options
context:
space:
mode:
authorps29005 <none@none>2008-07-16 14:57:10 -0700
committerps29005 <none@none>2008-07-16 14:57:10 -0700
commitebae6f6e2612e1adcdfc2fa7fcf218d072d2a229 (patch)
tree074731c4580100136168b1cc2f0428a8e49336a6 /usr/src/cmd/print/bsd-sysv-commands/lpr.c
parent64012b183780cacb63ca9686d771578f883ac119 (diff)
downloadillumos-gate-ebae6f6e2612e1adcdfc2fa7fcf218d072d2a229.tar.gz
6724904 lpr -r -s no longer an accepted combination of options
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lpr.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/lpr.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpr.c b/usr/src/cmd/print/bsd-sysv-commands/lpr.c
index cfa66c54db..fe6c24a8bc 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/lpr.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/lpr.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
@@ -196,12 +196,6 @@ main(int ac, char *av[])
usage(av[0]);
}
- if ((remove != 0) && (copy == 0)) {
- fprintf(stderr, gettext(
- "-r and -s may not be used together\n"));
- exit(1);
- }
-
if ((printer == NULL) &&
((printer = getenv("PRINTER")) == NULL) &&
((printer = getenv("LPDEST")) == NULL))