summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2010-09-28 20:57:14 +0000
committeremaste <emaste@FreeBSD.org>2010-09-28 20:57:14 +0000
commit3c1b275767c7953f82c94ce0ecea3bc0811618b7 (patch)
treee042184ca44509ba5193693efc5ec080468d927a /usr.bin/login
parent4087eace5d608acc5248d65d142e53a55c6942a6 (diff)
downloadFreeBSD-src-3c1b275767c7953f82c94ce0ecea3bc0811618b7.zip
FreeBSD-src-3c1b275767c7953f82c94ce0ecea3bc0811618b7.tar.gz
Remove copyright strings printed at login time via login(1) or sshd(8).
It is not clear to what this copyright should apply, and this is in line with what other operating systems do. For ssh specifically, printing of the copyright string is not in the upstream version so this reduces our FreeBSD-local diffs. Approved by: core, des (ssh)
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index da182aa..3e826d5 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -53,7 +53,6 @@ __FBSDID("$FreeBSD$");
* login -f name (for pre-authenticated login: datakit, xterm, etc.)
*/
-#include <sys/copyright.h>
#include <sys/param.h>
#include <sys/file.h>
#include <sys/stat.h>
@@ -590,12 +589,6 @@ main(int argc, char *argv[])
if (!quietlog) {
const char *cw;
- cw = login_getcapstr(lc, "copyright", NULL, NULL);
- if (cw == NULL || motd(cw) == -1)
- (void)printf("%s", copyright);
-
- (void)printf("\n");
-
cw = login_getcapstr(lc, "welcome", NULL, NULL);
if (cw != NULL && access(cw, F_OK) == 0)
motd(cw);
OpenPOWER on IntegriCloud