summaryrefslogtreecommitdiffstats
path: root/crypto/openssh
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 /crypto/openssh
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 'crypto/openssh')
-rw-r--r--crypto/openssh/session.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/openssh/session.c b/crypto/openssh/session.c
index c11a68a..9fa7213 100644
--- a/crypto/openssh/session.c
+++ b/crypto/openssh/session.c
@@ -893,24 +893,6 @@ do_motd(void)
{
FILE *f;
char buf[256];
-#ifdef HAVE_LOGIN_CAP
- const char *fname;
-#endif
-
-#ifdef HAVE_LOGIN_CAP
- fname = login_getcapstr(lc, "copyright", NULL, NULL);
- if (fname != NULL && (f = fopen(fname, "r")) != NULL) {
- while (fgets(buf, sizeof(buf), f) != NULL)
- fputs(buf, stdout);
- fclose(f);
- } else
-#endif /* HAVE_LOGIN_CAP */
- (void)printf("%s\n\t%s %s\n",
- "Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994",
- "The Regents of the University of California. ",
- "All rights reserved.");
-
- (void)printf("\n");
if (options.print_motd) {
#ifdef HAVE_LOGIN_CAP
OpenPOWER on IntegriCloud