From d0c04daa278b97681b1bff932e4f5040eb7c2726 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 18 Sep 2024 11:57:45 +1000 Subject: [PATCH] chat: Add copyright notice This adds a copyright notice in my name with MIT licence permissions to this file. The reason is primarily to provide a concrete statement of permission to use, copy, modify and distribute the program, for the sake of those who are uncertain about meaning of the public domain. See for example https://github.com/ppp-project/ppp/issues/474 . Given that I have maintained this program for 25 years, it seems reasonable for it to be my copyright on it. Signed-off-by: Paul Mackerras --- chat/chat.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/chat/chat.c b/chat/chat.c index 336c0f4..0a4fbd3 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -1,7 +1,32 @@ +/* SPDX-License-Identifier: MIT */ /* * Chat -- a program for automatic session establishment (i.e. dial * the phone and log in). * + * This version is Copyright 1995-2023 Paul Mackerras + * based on the original public-domain version by Karl Fox. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the “Software”), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * * Standard termination codes: * 0 - successful completion of the script * 1 - invalid argument, expect string too large, etc. @@ -11,7 +36,6 @@ * 5 - the second string declared as "ABORT" * 6 - ... and so on for successive ABORT strings. * - * This software is in the public domain. * * ----------------- * 22-May-99 added environment substitutuion, enabled with -E switch. -- 2.39.5