actually apply the bug5079 patch on the slave

Fixes #1958.