Received Thu 28 Jul 2005 7:11am +1000 from Karl Chen: > >>>>> On 2005-07-27 02:56 PDT, Graham Williams writes: > > >> For some wajig commands, wajig executes "sudo command1 | > >> sudo command 2...", which is impossible to authenticate > >> properly. Doing a "sudo -v" before any pipeline solves it. > > Graham> Thanks for the bug report Karl. Yes, this seems like > Graham> it could be a problem. I've had a look for places > Graham> where I might be doing such a pipe. Do you have any > Graham> examples where this arises? > > Well, there are a couple solutions. The following patch does a > `sudo -v' before every command requiring sudo, even if there is no > pipeline. But you could check for pipeline first if you wish. > > The additional advantage of doing it even without pipeline is that > if sudo authentication fails, currently wajig confuses it with a > failure in the invocation of the command.
Thanks Karl. I'll include this in the next release. Regards, Graham -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

