- Patch #174226 by keith.smith, pwolanin et al al -- and greatly simplified by me: added a copyright notice.