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

 
 

bug #23320: Does gksu_sudo_full not reporting failure

Submitter:  None
Submitted:  Thu 22 May 2008 04:53:39 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-05-22 falun Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code