History log of /freebsd-current/usr.bin/banner/banner.c
Revision Date Author Comments
# 0b8224d1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 498a0a9c 07-Jul-2023 Alfonso Gregory <gfunni234@gmail.com>

Mark usage function as __dead2 in programs where it does not return

In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# 17fac794 13-Apr-2017 Conrad Meyer <cem@FreeBSD.org>

banner(6): Squash a harmless coverity warning

The destination buffer is sized as the sum of program argument lengths, so
it has plenty of room for *argv. Appease Coverity by using strlcpy instead
of strcpy. Similar to a nearby cleanup performed in r316500.

No functional change.

Reported by: Coverity (CWE-120)
CID: 1006703
Sponsored by: Dell EMC Isilon


# 9039018c 04-Apr-2017 Alan Somers <asomers@FreeBSD.org>

strcpy => strlcpy, strcat => strlcat

Reported by: Coverity
CID: 1006703 978863 1006745 1347163
Reviewed by: cem
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D10192


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 9e43b5a0 06-Nov-2011 Ed Schouten <ed@FreeBSD.org>

Add missing static keywords to banner(1)


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# ef636796 02-Jan-2010 Ed Schouten <ed@FreeBSD.org>

ANSIfy various tools in usr.bin/.

Most of these tools properly build at WARNS=6, except for their K&R
function declarations. Fix this, so we can bump WARNS as well.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 0d4d06c9 22-Nov-2006 Maxim Konovalov <maxim@FreeBSD.org>

o Check that -w width is not above maximum. Use DWIDTH instead of
hardcoded constant.

Reported by: Gruzicki Wlodek on BugTraq
Obtained from: NetBSD, OpenBSD
MFC after: 1 week


# f1bb2cd2 21-Mar-2002 Warner Losh <imp@FreeBSD.org>

remove __P


# 9f5b04e9 10-Dec-2001 David Malone <dwmalone@FreeBSD.org>

Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.


# 151aa6c3 02-Dec-2001 Mark Murray <markm@FreeBSD.org>

Use __FBSDID().


# 1a084f19 19-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

Fixed the race caused by not checking the result of fgets(3):

/usr/bin/env MALLOC_OPTIONS=J banner </dev/null

PR: bin/29074

Fixed the problem when banner(6) would eat last character:

echo -n a | banner

MFC after: 1 week


# f332550d 27-May-2001 Mike Heffner <mikeh@FreeBSD.org>

Fix overflowing on nul character.

PR: bin/16926
MFC after: 1 week


# 81d50432 20-May-2001 Kris Kennaway <kris@FreeBSD.org>

Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC After: 1 week


# f5db5b7f 03-Mar-2001 Bill Fumerola <billf@FreeBSD.org>

BDECFLAGS.

while I'm here, fix bitrotted debug code generating template.


# eb257e6e 26-Mar-2000 Philippe Charnier <charnier@FreeBSD.org>

Add -d and -t flags to usage. Add usage().


# 1b2fef9f 03-Dec-1999 Kris Kennaway <kris@FreeBSD.org>

Fix buffer overflow & add $FreeBSD$

Reviewed by: imp


# c91f5974 18-Apr-1999 Steve Price <steve@FreeBSD.org>

Use const where appropriate.

PR: 10739
Submitted by: Stephen J. Rosnowski <sjr@home.net>
Obtained from: NetBSD PR 6151


# fa146c53 06-Dec-1998 Archie Cobbs <archie@FreeBSD.org>

Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


# c55d6c08 05-Jul-1997 Bruce Evans <bde@FreeBSD.org>

Merge from Lite2 (reject widths <= 0 instead of pretending that they are 80).


# 630d2a93 05-Jul-1997 Bruce Evans <bde@FreeBSD.org>

Import Lite2's src/usr.bin/banner. The man page is still on the vendor
branch and this import converts it to mdoc format.


# 1c8af878 28-Mar-1997 Warner Losh <imp@FreeBSD.org>

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 7799f52a 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources