Removed "No such user" message to prevent probing from remote machines.
[unix-history] / usr / src / usr.bin / login / login.c
index b7979ee..aae40b8 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)login.c     4.21 83/03/31";
+static char *sccsid = "@(#)login.c     4.22 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) {