commit c69124b628684e2b39a3820858ef5644613c0a72
Author: Antoine Beaupré <anarcat@koumbit.org>
Date:   Sun May 15 19:58:49 2011 -0400

    handle relative paths given to --destination properly
    
    fixes #1158490

diff --git a/commands/pm/pm.drush.inc b/commands/pm/pm.drush.inc
index 633c5d0..d55755c 100644
--- a/commands/pm/pm.drush.inc
+++ b/commands/pm/pm.drush.inc
@@ -2015,6 +2015,12 @@ function drush_pm_include_version_control($directory = '.') {
 function drush_pm_download_validate() {
   // Validate the user specified destination directory.
   $destination = drush_get_option('destination');
+  $cwd = drush_get_context('DRUSH_OLDCWD');
+  if ($destination && $destination[0] != '/') { // relative path
+    $destination =  $cwd . '/' . $destination;
+    drush_set_option('destination', $destination);
+  }
+
   if (!empty($destination)) {
     $destination = rtrim($destination, DIRECTORY_SEPARATOR);
     if (!is_dir($destination)) {
