saltstack/salt — pull request #13682 by Tweenagedream (2014-06-24 18:45:29+00:00)
Title: copy and rename should pass name instead of dname when makedirs is true

makedirs_ already calls os.path.dirname on the path provided, and so cuts off the lowest level directory when dname is passed in copy and rename. This fixes that.