Index: commands/core/drupal/batch_6.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/drupal/batch_6.inc,v
retrieving revision 1.2
diff -u -p -r1.2 batch_6.inc
--- commands/core/drupal/batch_6.inc	27 Jan 2010 16:29:19 -0000	1.2
+++ commands/core/drupal/batch_6.inc	12 Oct 2010 22:20:20 -0000
@@ -15,6 +15,7 @@
  *
  */
 function _drush_backend_batch_process($command = 'batch-process') {
+  global $user;
   $batch =& batch_get();
 
   if (isset($batch)) {
@@ -34,7 +35,12 @@ function _drush_backend_batch_process($c
     $finished = FALSE;
 
     while (!$finished) {
-      $data = drush_backend_invoke($command, array($batch['id']));
+      if ($user->uid) {
+        $data = drush_backend_invoke($command, array($batch['id'], '-u', $user->uid));
+      }
+      else {
+        $data = drush_backend_invoke($command, array($batch['id']));
+      }
 
       $finished = drush_get_error() || !$data || ($data['context']['drush_batch_process_finished'] == TRUE);
     }
Index: commands/core/drupal/batch_7.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/drupal/batch_7.inc,v
retrieving revision 1.2
diff -u -p -r1.2 batch_7.inc
--- commands/core/drupal/batch_7.inc	27 Jan 2010 16:29:19 -0000	1.2
+++ commands/core/drupal/batch_7.inc	12 Oct 2010 22:20:20 -0000
@@ -15,6 +15,7 @@
  *
  */
 function _drush_backend_batch_process($command = 'batch-process') {
+  global $user;
   $batch =& batch_get();
 
   if (isset($batch)) {
@@ -51,7 +52,12 @@ function _drush_backend_batch_process($c
     $finished = FALSE;
 
     while (!$finished) {
-      $data = drush_backend_invoke($command, array($batch['id']));
+      if ($user->uid) {
+        $data = drush_backend_invoke($command, array($batch['id'], '-u', $user->uid));
+      }
+      else {
+        $data = drush_backend_invoke($command, array($batch['id']));
+      }
       $finished = drush_get_error() || !$data || ($data['context']['drush_batch_process_finished'] == TRUE);
     }
   }
