aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-09-20 21:41:13 +0000
committerRob Landley <rob@landley.net>2006-09-20 21:41:13 +0000
commiteb84a42fdd1d1c2e228dcd691a67b8ad5eeda026 (patch)
tree0669d5a1cd4e78c17134396a03145ba40a6f16f1
parent94b383d4196f06e3de2f83631b7f9bb45780606d (diff)
downloadbusybox-w32-eb84a42fdd1d1c2e228dcd691a67b8ad5eeda026.tar.gz
busybox-w32-eb84a42fdd1d1c2e228dcd691a67b8ad5eeda026.tar.bz2
busybox-w32-eb84a42fdd1d1c2e228dcd691a67b8ad5eeda026.zip
The Software Freedom Law Center wants us to add a copyright notice to the
generated binaries, to make copyright enforcement easier. Our liason with them (Bradley Kuhn) suggested the following text: > Copyright (C) YEAR-2006  Erik Andersen, Rob Landley, and others. > Licensed under GPLv2.  See source distribution for full notice. And the busybox help message seems the least offensive place to put it. (At some point in the future, I need to strip 128 bytes from the binary to feel good about this, though. :) Minor header file cleanup while I was there, since libbb.h already #includes most of that stuff...
-rw-r--r--applets/busybox.c16
-rw-r--r--include/libbb.h7
2 files changed, 8 insertions, 15 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index a92ddbd0e..53eb363ac 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -2,19 +2,9 @@
2/* 2/*
3 * BusyBox' main applet dispatcher. 3 * BusyBox' main applet dispatcher.
4 * 4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 */ 6 */
7#include "busybox.h" 7#include "busybox.h"
8#include <stdio.h>
9#include <string.h>
10#include <unistd.h>
11#include <errno.h>
12#include <stdlib.h>
13#if ENABLE_LOCALE_SUPPORT
14#include <locale.h>
15#else
16#define setlocale(x,y)
17#endif
18 8
19const char *bb_applet_name ATTRIBUTE_EXTERNALLY_VISIBLE; 9const char *bb_applet_name ATTRIBUTE_EXTERNALLY_VISIBLE;
20 10
@@ -128,7 +118,9 @@ int busybox_main(int argc, char **argv)
128 output_width -= 20; 118 output_width -= 20;
129 } else output_width = 60; 119 } else output_width = 60;
130 120
131 printf("%s\n\n" 121 printf("%s\n"
122 "Copyright (C) 1998-2006  Erik Andersen, Rob Landley, and others.\n"
123 "Licensed under GPLv2.  See source distribution for full notice.\n\n"
132 "Usage: busybox [function] [arguments]...\n" 124 "Usage: busybox [function] [arguments]...\n"
133 " or: [function] [arguments]...\n\n" 125 " or: [function] [arguments]...\n\n"
134 "\tBusyBox is a multi-call binary that combines many common Unix\n" 126 "\tBusyBox is a multi-call binary that combines many common Unix\n"
diff --git a/include/libbb.h b/include/libbb.h
index 86e88bf89..29df2c269 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -2,11 +2,10 @@
2/* 2/*
3 * Busybox main internal header file 3 * Busybox main internal header file
4 * 4 *
5 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6 *
7 * Based in part on code from sash, Copyright (c) 1999 by David I. Bell 5 * Based in part on code from sash, Copyright (c) 1999 by David I. Bell
8 * Permission has been granted to redistribute this code under the GPL. 6 * Permission has been granted to redistribute this code under the GPL.
9 * 7 *
8 * Licensed under the GPL version 2, see the file LICENSE in this tarball.
10 */ 9 */
11#ifndef __LIBBUSYBOX_H__ 10#ifndef __LIBBUSYBOX_H__
12#define __LIBBUSYBOX_H__ 1 11#define __LIBBUSYBOX_H__ 1
@@ -47,6 +46,8 @@
47 46
48#ifdef CONFIG_LOCALE_SUPPORT 47#ifdef CONFIG_LOCALE_SUPPORT
49#include <locale.h> 48#include <locale.h>
49#else
50#define setlocale(x,y)
50#endif 51#endif
51 52
52#include "pwd_.h" 53#include "pwd_.h"