On Fri, Jan 11, 2013 at 5:32 PM, Zdenek Styblik
<zdenek.styb...@gmail.com> wrote:
[...]
> Anyway, I'll try to think of some elegant solution over the weekend.
>

Another solution is attached.

> Z.
>
>> ----- Original Message -----
>> From: "Zdenek Styblik" <zdenek.styb...@gmail.com>
>> To: "ipmitool-devel" <ipmitool-devel@lists.sourceforge.net>
>> Cc: "Ales Ledvinka" <aledv...@redhat.com>
>> Sent: Friday, January 11, 2013 1:32:37 PM
>> Subject: Code Review - ID: 3595612 - ask for password once only if used
>>
>> Hello,
>>
>> attached is a patch to prompt for password only once. As for now,
>> ipmitool prompts for password as many times as, eg. '-a', option has
>> been passed.
>>
>> Ales, please note, attached patch is different from the one you've
>> proposed. Is this workable? Another option would be to put the whole
>> getpass()-thing into if() statement. I gave it a bit of thought and
>> I'm not fond of proposed(original) patch. I don't mean it's bad. But
>> these two variants seem much simpler and cleaner(?).
>>
>> Z.

Attachment: ipmi_main.c-ask_for_passwd_once.diff
Description: Binary data

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to