projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
formatting
[unix-history]
/
usr
/
src
/
usr.sbin
/
lpr
/
lpr
/
lpr.c
diff --git
a/usr/src/usr.sbin/lpr/lpr/lpr.c
b/usr/src/usr.sbin/lpr/lpr/lpr.c
index
90a8635
..
4af05cf
100644
(file)
--- a/
usr/src/usr.sbin/lpr/lpr/lpr.c
+++ b/
usr/src/usr.sbin/lpr/lpr/lpr.c
@@
-55,7
+55,7
@@
char lpr_id[] = "~|^`lpr.c:\t4.2\t1 May 1981\n";
char lpr_id[] = "~|^`lpr.c:\t4.2\t1 May 1981\n";
-/* lpr.c 4.
9 83/03/07
*/
+/* lpr.c 4.
10 83/03/09
*/
/*
* lpr -- off line print
*
/*
* lpr -- off line print
*
@@
-250,7
+250,7
@@
main(argc, argv)
* control file.
*/
userid = getuid();
* control file.
*/
userid = getuid();
- if ((person = getlogin()) == NULL) {
+ if ((person = getlogin()) == NULL
|| strlen(person) == 0
) {
if ((pw = getpwuid(userid)) == NULL)
person = "Unknown User";
else
if ((pw = getpwuid(userid)) == NULL)
person = "Unknown User";
else