From 37996169ed6f56dfb05e45f0c7a43a172d62bce7 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 7 Jun 2016 12:37:43 -0400 Subject: [PATCH] Don't keep parsing command options in sudo This commit is very similar to 3f6c485. It implements the fix to the same problem for `sudo` when the module makes an attempt to determine if the dialog needs to be shown or not. Signed-off-by: Juan Cruz Viotti --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index eb7a9ca..ea1b087 100644 --- a/index.js +++ b/index.js @@ -16,6 +16,8 @@ function Attempt(instance, end) { command.push('-n'); // Preserve user environment: command.push('-E'); + // Stop parsing command options: + command.push('--'); command.push(instance.command); command = command.join(' '); Node.child.exec(command,