Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9637 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

cap shell doesn't catch Password prompts from sudo

Reported by: barnaby Assigned to: minam
Priority: normal Milestone: 1.x
Component: Capistrano Version: edge
Severity: normal Keywords:
Cc:

Description

In the cap shell running something like:

sudo -k; sudo whoami

prompts for the sudo Password, but the prompt isn't handled.

The problem appears to be in exec_command where the custom processor for this isn't actually used. This line:

Command.process(command, sessions, :logger => configuration.logger, &Capistrano::Configuration.default_io_proc)

Should read:

Command.process(command, sessions, :logger => configuration.logger, &processor)

Attachments

cap-shell-password-prompt.patch (0.7 kB) - added by barnaby on 09/23/07 19:57:23.
patch for capistrano

Change History

09/23/07 19:57:23 changed by barnaby

  • attachment cap-shell-password-prompt.patch added.

patch for capistrano

09/30/07 15:23:20 changed by minam

  • status changed from new to closed.
  • resolution set to fixed.

(In [7696]) Fix cap shell to properly recognize sudo prompt (closes #9637)