summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-03-01 18:02:44 +0000
committerwosch <wosch@FreeBSD.org>1997-03-01 18:02:44 +0000
commitaedef92e17de6078535764ab3abb83f2f4b76866 (patch)
treedf225afe0e0fb4b8e83496d595fd557a86e95d56 /usr.bin/login
parenta9463ef52167482dfe10531b52c1749a328a2b6c (diff)
downloadFreeBSD-src-aedef92e17de6078535764ab3abb83f2f4b76866.zip
FreeBSD-src-aedef92e17de6078535764ab3abb83f2f4b76866.tar.gz
Include copyright message from <sys/copyright.h>
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index affb3c5..35850e9 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -31,11 +31,11 @@
* SUCH DAMAGE.
*/
-#ifndef lint
+#if 0
static char copyright[] =
"@(#) Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
+#endif
#ifndef lint
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
@@ -47,6 +47,7 @@ static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
* login -f name (for pre-authenticated login: datakit, xterm, etc.)
*/
+#include <sys/copyright.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -692,9 +693,7 @@ main(argc, argv)
motd(cw);
else
#endif
- (void)printf("Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994\n"
- "\tThe Regents of the University of California. All rights reserved.\n");
- (void)printf("\n");
+ (void)printf("%s\n", copyright);
#ifdef LOGIN_CAP
cw = login_getcapstr(lc, "welcome", NULL, NULL);
if (cw == NULL || access(cw, F_OK) != 0)
OpenPOWER on IntegriCloud