I recently came across this question which had a portion of Chromium code in it. At the bottom they put the license for the code(which is BSD style). Is this actually required? How is the snipplet of code actually licensed since they put it on SO which demands CC? Is it legal to even post such code?
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
I am not a lawyer, but...
The posting of the text of the original license is not required; the OP could have just mentioned that it was a BSD license. If the source of a snippet is mentioned, it's straightforward to go find out what the license is, and anyone who wants to use code (regardless of source) should do this, and abide by the original license terms.
The cc license cannot, and does not, override the terms of an existing license.
It goes without saying that, if the license does not permit you to post snippets of code (i.e. a proprietary license), you should not post it on SO.