Dirty Dingus Magee
Dirty Dingus Magee is a 1970 American Comedy & anti-western film starring Frank Sinatra as the title outlaw and George Kennedy as a sheriff out to capture him. The movie was based on the novel The Ballad of Dingus Magee by David Markson and the screenplay was partly written by Joseph Heller. It was directed by Burt Kennedy.
Hoke Birdsill rides into Yerkey's Hole demanding the law take action because Dingus Magee has robbed him. There is no law, so the mayor, Belle, who also runs the town's bordello, sees to it that Hoke becomes the new sheriff.