Reported by Robert Sander <r.sander@heinlein-support.de> on the samba-tecnhical list. Patch provided. I'll update once it's gone into master.
Created attachment 15101 [details] fix for master.
Created attachment 15117 [details] git-am fix for 4.10.next, 4.9.next. Cherry-picked from master.
Comment on attachment 15117 [details] git-am fix for 4.10.next, 4.9.next. lgtm
@Karo: please merge for 4.10.next and 4.9.next.
(In reply to David Disseldorp from comment #5) Pushed to autobuild-v4-{10,9}-test.
(In reply to Karolin Seeger from comment #6) Pushed to both branches. Closing out bug report. Thanks!