summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/lpr.c
diff options
context:
space:
mode:
authorjacobs <none@none>2006-08-31 20:46:07 -0700
committerjacobs <none@none>2006-08-31 20:46:07 -0700
commite2738c5e21a9e5d9a6525e48af4738deda3df455 (patch)
treeba4728bf8cc11fc6ff17416337c36fa147a43306 /usr/src/cmd/print/bsd-sysv-commands/lpr.c
parente12a8a13c5492eeed938960ff7c68a46f982288b (diff)
downloadillumos-gate-e2738c5e21a9e5d9a6525e48af4738deda3df455.tar.gz
4520634 lpsched creates unused directories upon startup
4706595 lp:lib potential race condition creating temporary file in delsystem.c 4726116 Anding pid with 99999 to generate unique name is broken. Try 0xFFFFF instead 6449119 libhttp-core directory should include license.txt file 6462816 UNIX98/UNIX03: *vsc* lp(1) -c with '-' file (stdin) tries to copy file named '-' 6463311 UNIX98/UNIX03: *vsc* non-root lp(1) commands which should succeed, fail with "cannot commit job" --HG-- rename : usr/src/cmd/lp/cmd/lpsystem.c => deleted_files/usr/src/cmd/lp/cmd/lpsystem.c rename : usr/src/cmd/lp/etc/Makefile => deleted_files/usr/src/cmd/lp/etc/Makefile rename : usr/src/cmd/lp/etc/Systems => deleted_files/usr/src/cmd/lp/etc/Systems rename : usr/src/cmd/lp/include/systems.h => deleted_files/usr/src/cmd/lp/include/systems.h rename : usr/src/cmd/lp/lib/systems/Makefile => deleted_files/usr/src/cmd/lp/lib/systems/Makefile rename : usr/src/cmd/lp/lib/systems/delsystem.c => deleted_files/usr/src/cmd/lp/lib/systems/delsystem.c rename : usr/src/cmd/lp/lib/systems/freesystem.c => deleted_files/usr/src/cmd/lp/lib/systems/freesystem.c rename : usr/src/cmd/lp/lib/systems/getsystem.c => deleted_files/usr/src/cmd/lp/lib/systems/getsystem.c rename : usr/src/cmd/lp/lib/systems/putsystem.c => deleted_files/usr/src/cmd/lp/lib/systems/putsystem.c
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lpr.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/lpr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpr.c b/usr/src/cmd/print/bsd-sysv-commands/lpr.c
index b273cfe6c0..4d64ddb635 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/lpr.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/lpr.c
@@ -207,6 +207,9 @@ main(int ac, char *av[])
((printer = getenv("LPDEST")) == NULL))
printer = DEFAULT_DEST;
+ if (((optind + 1) == ac) && (strcmp(av[optind], "-") == 0))
+ optind = ac;
+
#ifdef MAGIC_MIME
if (optind != ac) {
/* get the mime type of the file data */