install with -s
[unix-history] / usr / src / usr.bin / login / login.c
index bd9142e..361541a 100644 (file)
@@ -1,6 +1,18 @@
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+char copyright[] =
+"@(#) Copyright (c) 1980 Regents of the University of California.\n\
+ All rights reserved.\n";
+#endif not lint
+
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)login.c     4.37 (Berkeley) 85/04/02";
-#endif
+static char sccsid[] = "@(#)login.c    5.2 (Berkeley) %G%";
+#endif not lint
 
 /*
  * login [ name ]
 
 /*
  * login [ name ]
@@ -236,7 +248,7 @@ main(argc, argv)
 /* committed to login turn off timeout */
        alarm(0);
 
 /* committed to login turn off timeout */
        alarm(0);
 
-       if (quota(Q_SETUID, pwd->pw_uid, 0, 0) < 0) {
+       if (quota(Q_SETUID, pwd->pw_uid, 0, 0) < 0 && errno != EINVAL) {
                if (errno == EUSERS)
                        printf("%s.\n%s.\n",
                           "Too many users logged on already",
                if (errno == EUSERS)
                        printf("%s.\n%s.\n",
                           "Too many users logged on already",