From 67022bfc9fd3f599fb8afe24ffb323d2154d39df Mon Sep 17 00:00:00 2001 From: Wolfram Schneider <wosch@FreeBSD.org> Date: Sat, 1 Mar 1997 18:02:44 +0000 Subject: [PATCH] Include copyright message from <sys/copyright.h> --- usr.bin/login/login.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index affb3c5bd041..35850e956e73 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)