Unless your shower is located on a stage and you charge admission for people to listen to you sing in the shower, but I'm pretty sure that's not what you meant.
That's why it's explicitly listed as part of Freedom 1 of the four freedoms of software: https://www.gnu.org/philosophy/free-sw.html
But can you publish a diff, which someone could use to recreate your modified version?
There are SueprMarioBros. edits where they only distribute the patching file and the patcher program... just not the original ROM itself. They leave that for you to find somewhere...
That's not going to be the case here as the code is too old to be patent encumbered.
Things are certainly moving towards there being a wide definition of contributory copyright infringement, eg cases against torrent file sites that don't store copyright works. It would be pretty asinine and regressive to punish someone for publishing instruction on a copyright work could be modified, IMO, but the law isn't known for always making sense.
https://ilt.eff.org/index.php/Copyright:_Infringement_Issues...
In reality, if redistribution of source is forbidden, restricting unreleased modifications of source is hard to enforce.