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
Removed "No such user" message to prevent probing from remote machines.
[unix-history]
/
usr
/
src
/
usr.bin
/
login
/
login.c
diff --git
a/usr/src/usr.bin/login/login.c
b/usr/src/usr.bin/login/login.c
index
b7979ee
..
aae40b8
100644
(file)
--- a/
usr/src/usr.bin/login/login.c
+++ b/
usr/src/usr.bin/login/login.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)login.c 4.2
1 83/03/31
";
+static char *sccsid = "@(#)login.c 4.2
2 83/04/18
";
/*
* login [ name ]
* login -r
/*
* login [ name ]
* login -r
@@
-97,11
+97,8
@@
char **argv;
setpwent();
pwd = getpwnam(lusername);
endpwent();
setpwent();
pwd = getpwnam(lusername);
endpwent();
- if (pwd == NULL) {
- if (strcmp(rusername, lusername))
- printf("%s: No such user\r\n", lusername);
+ if (pwd == NULL)
goto abnormal;
goto abnormal;
- }
hostf = pwd->pw_uid ? fopen("/etc/hosts.equiv", "r") : 0;
again:
if (hostf) {
hostf = pwd->pw_uid ? fopen("/etc/hosts.equiv", "r") : 0;
again:
if (hostf) {