Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2010 at 22:07 UTC
Updated:
10 Jun 2010 at 13:40 UTC
Jump to comment: Most recent file
As with Drupal core, those files should just be skipped:
/var/aegir/prod-drupal-6.16-1.4/sites/anarcat.koumbit.org/modules$ drush dl decisions
require_once(/var/aegir/prod-drupal-6.16-1.4/drushrc.php): failed to [warning]
open stream: Permission denied
Fatal error: require_once(): Failed opening required '/var/aegir/prod-drupal-6.16-1.4/drushrc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/aegir/drush/includes/context.inc on line 146
Drush command could not be completed. [error]
I have a attached a simple patch which gracefully handles those scenarios.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | handle-permission-denied.patch | 1.02 KB | anarcat |
Comments
Comment #1
anarcat commentedI swear i included that patch on the first submission...
Oh, and there are other places in drush where this isn't quite handled gracefully, particularly the settings.php stuff, but that's another issue.
Comment #2
moshe weitzman commentedSeems OK to me. Any objections?
Comment #3
greg.1.anderson commentedLooks good by inspection; haven't tried...
Comment #4
moshe weitzman commentedcommitted