bugGKSu - Bugs: bug #23320, Does gksu_sudo_full not reporting...

 
 

bug #23320: Does gksu_sudo_full not reporting failure

Submitted by:  None
Submitted on:  Thu 22 May 2008 04:53:39 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 22 May 2008 05:05:45 PM UTC, comment #1:

I completely forgot to include the failure case here.

this code works for cancel, correct and incorrect password, but when the user presses OK without entering any password into the field it returns as if the password was accepted.

sf <falun>
Thu 22 May 2008 04:53:39 PM UTC, original submission:

snippet of code:
std::cout << "testGKsu();" << std::endl;

GksuContext* context = gksu_context_new();

gksu_context_set_message(context, "Mumblefoo");
gksu_context_set_command(context, cmd);
gksu_context_set_grab(context, TRUE);

GError *suErrValue = NULL;
gboolean runResult =
gksu_sudo_full(context, NULL, NULL, NULL, NULL, &suErrValue);

if (suErrValue) {
std::cout << "suErrValue: " << suErrValue->message << std::endl;
}
std::cout << " runResult: " << runResult << std::endl;

output:

testGKSu();
runResult: 0
Program done.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by falun (Posted a comment)
  • -unavailable- added by falun
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 May 2008 05:01:58 PM UTCfalunCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup