/usr/bin/sudo: invalid option -- '-'

Bug #802191 reported by Michael Monreal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Haguichi
Fix Released
Wishlist
Stephen Brandt

Bug Description

Using haguichi-1.0.9-26.1.noarch on Fedora 15, when starting Haguichi I see the following on the console:

[mimox ~]$ haguichi
/usr/bin/sudo: invalid option -- '-'
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u
            user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
            [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...

I guess whatever sudo is used for will not work in this case?

Revision history for this message
Stephen Brandt (ztefn) wrote :

Hi Michael,

That's normal on systems with only plain sudo available. On startup Haguichi checks if the configured sudo command is still available by running "{configured sudo command} --help". Because sudo (unlike gksudo, gnomesu, kdesudo, etc) doesn't have the option --help, it's displaying the "invalid option" message.

Please be aware that without graphical sudo command on your system (i.e. Fedora), you need to set up the right permissions to start and stop the hamachi deamon in advance.

Changed in haguichi:
status: New → Won't Fix
Revision history for this message
Stephen Brandt (ztefn) wrote :

I've just committed a faster and cleaner way to check if a command exists on the system: http://bazaar.launchpad.net/~ztefn/haguichi/1.0/revision/202

Using this new method the reported message will not occur.

Changed in haguichi:
status: Won't Fix → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Stephen Brandt (ztefn)
milestone: none → 1.0.11
Stephen Brandt (ztefn)
Changed in haguichi:
status: Fix Committed → Fix Released
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.