The first is from strlcat.c and strlcpy.c from NetBSD:
/* * Copyright (c) 1998 Todd C. Miller Todd.Miller@courtesan.com * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
(Todd Miller is also the author of sudo, so I would not be surprised if he has code like this in sudo as well.)
The second is timegm.c from NetBSD as well, but this might just be for fun because here's all we get in that file:
/* $NetBSD: timegm.c,v 1.3 2005/05/11 01:01:56 lukem Exp $ */ /* from ? */
Ha!
The third one is from snprintf.c in NetBSD:
/* * Copyright Patrick Powell 1995 * This code is based on code written by Patrick Powell (papowell@astart.com) * It may be used for any purpose as long as this notice remains intact * on all source code distributions */
Right.... so???
On Wed, Jan 18, 2023 at 5:33 PM David Cantrell dcantrell@redhat.com wrote:
The first is from strlcat.c and strlcpy.c from NetBSD:
/*
- Copyright (c) 1998 Todd C. Miller Todd.Miller@courtesan.com
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
- THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL
- WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
- OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE
- FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
(Todd Miller is also the author of sudo, so I would not be surprised if he has code like this in sudo as well.)
This one is, as far as I can tell using askalono, a perfect match for the ISC license (https://spdx.org/licenses/ISC.html) License: ISC (original text) Score: 0.932
The second is timegm.c from NetBSD as well, but this might just be for fun because here's all we get in that file:
/* $NetBSD: timegm.c,v 1.3 2005/05/11 01:01:56 lukem Exp $ */ /* from ? */
Ha!
This looks ... incomplete? :)
The third one is from snprintf.c in NetBSD:
/*
- Copyright Patrick Powell 1995
- This code is based on code written by Patrick Powell (papowell@astart.com)
- It may be used for any purpose as long as this notice remains intact
- on all source code distributions
*/
Askalono was not helpful here: Error: Confidence threshold not high enough for any known license Processing error: Confidence threshold not high enough for any known license
Looks like a "custom" license.
Fabio
On Wed, Jan 18, 2023 at 11:40 AM Fabio Valentini decathorpe@gmail.com wrote:
On Wed, Jan 18, 2023 at 5:33 PM David Cantrell dcantrell@redhat.com wrote:
The first is from strlcat.c and strlcpy.c from NetBSD:
/*
- Copyright (c) 1998 Todd C. Miller Todd.Miller@courtesan.com
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
- THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL
- WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
- OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE
- FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
(Todd Miller is also the author of sudo, so I would not be surprised if he has code like this in sudo as well.)
This one is, as far as I can tell using askalono, a perfect match for the ISC license (https://spdx.org/licenses/ISC.html) License: ISC (original text) Score: 0.932
Yes, a surprisingly common license in various project/package ecosystems so worth recognizing by sight. :)
Useful to know: in the first sentence, SPDX treats both "and" and "and/or" as equivalent for matching purposes for this particular license.
Richard
V Wed, Jan 18, 2023 at 11:32:36AM -0500, David Cantrell napsal(a):
The third one is from snprintf.c in NetBSD:
/*
- Copyright Patrick Powell 1995
- This code is based on code written by Patrick Powell (papowell@astart.com)
- It may be used for any purpose as long as this notice remains intact
- on all source code distributions
*/
If "use for any purpose" involves modification and distribution, then it's in the same spirit as FSFULLR, but it's not FSFULLR. If the phrase does not include modification and distribution, then we have a bigger problem.
-- Petr
On Wed, Jan 18, 2023 at 11:32 AM David Cantrell dcantrell@redhat.com wrote:
The second is timegm.c from NetBSD as well, but this might just be for fun because here's all we get in that file:
/* $NetBSD: timegm.c,v 1.3 2005/05/11 01:01:56 lukem Exp $ */ /* from ? */
Ha!
Just from some quick digging into NetBSD, I don't think the "from ?" means "I don't know what license this is under" but rather possibly something like "I don't know what the counterpart file name was to this file in ancestral versions of BSD". I could be wrong about that.
Without digging further, and you haven't mentioned what Fedora package this is, I'd probably assume that this was supposed to be under whatever default license was in place for NetBSD in 2005. Maybe it's not so simple though. We definitely need to address the "how deep should I dig" issue in our documentation. :)
The third one is from snprintf.c in NetBSD:
/*
- Copyright Patrick Powell 1995
- This code is based on code written by Patrick Powell (papowell@astart.com)
- It may be used for any purpose as long as this notice remains intact
- on all source code distributions
*/
Right.... so???
That is a license that should be submitted for Fedora approval. It would not qualify for "UltraPermissive" so if allowed it would then need to be submitted to SPDX. (For this one, I'm pretty confident we would treat it as allowed.) This one might have qualified for "Copyright only" under the Callaway system.
Richard