The path to drupal root might contain a trailing slash,
so the cleanup message after a successful ran contains a uneeded slash ('/") between drupal root and file which should be deleted:

/temp/drupal-7.9//CHANGELOG.txt was cleaned out.
[...]

The attached patch rtrim the trailing slash and delete the files too.

Part of output with additional -vd:

Marked for removal:
 - /tmp/drupal-7.9/CHANGELOG.txt
[...]
 [0.2 sec, 9.26 MB]
/tmp/drupal-7.9/CHANGELOG.txt was cleaned out.
[...]
CommentFileSizeAuthor
drush_cleanup-rtim.patch638 bytesfl3a

Comments

Chris Charlton’s picture

Assigned: Unassigned » Chris Charlton
Status: Needs review » Fixed

Committed to both the 7.x & 6.x branches. Thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.