command arguments confusion

Bug #35091 reported by Amnon Aaronsohn
8
Affects Status Importance Assigned to Milestone
gksu (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

gksudo doesn't stop processing options after it reaches the command in the argument list. For example, 'gksudo ls -l' doesn't run 'ls -l' because the -l is considered to be an argument to gksudo.

Revision history for this message
Amnon Aaronsohn (bla-cs) wrote : fix

Note that it could break applications that rely on the current behavior.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

From the manpage:

NOTE
       Note that <command> and all its arguments should be passed as one single argument to gksu just like one would to when using su.

Changed in gksu:
status: Unconfirmed → Rejected
Revision history for this message
Amnon Aaronsohn (bla-cs) wrote :

OK, so I think gksu should refuse to accept a command as multiple arguments.

Revision history for this message
Amnon Aaronsohn (bla-cs) wrote : patch

refuse to accept command as multiple arguments. show an error dialog and exit.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.