Bug 814156 - help_msg should use argv[0] except of PACKAGE
help_msg should use argv[0] except of PACKAGE
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: virt-viewer (Show other bugs)
17
All Linux
unspecified Severity low
: ---
: ---
Assigned To: Daniel Berrange
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-19 06:16 EDT by Lubos Kocman
Modified: 2012-12-14 16:17 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 814150
Environment:
Last Closed: 2012-12-14 16:17:13 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Lubos Kocman 2012-04-19 06:16:16 EDT
+++ This bug was initially created as a clone of Bug #814150 +++

Description of problem:

remote-viewer and virt-viewer are both using following constant for the usage print

const char *help_msg = N_("Run '" PACKAGE " --help' to see a full list of available command line options");

Which leads to:

$ remote-viewer --hfsdafd
Unknown option --hfsdafd
Run 'virt-viewer --help' to see a full list of available command line options

$ virt-viewer --hfsdafd
Unknown option --hfsdafd
Run 'virt-viewer --help' to see a full list of available command line options

printing virt-viewer in both cases



Version-Release number of selected component (if applicable):

(this could be fixed in both fedora and rhel)

How reproducible:


Steps to Reproduce:
1.remote-viewer --hfsdafd

  
Actual results:

Unknown option --hfsdafd
Run 'virt-viewer --help' to see a full list of available command line options


Expected results:

Unknown option --hfsdafd
Run 'remote-viewer --help' to see a full list of available command line options


Additional info:

This is also worth a look

[lkocman@dhcp-29-219 kvm]$ remote-viewer sdfdsaf
Segmentation fault
Comment 1 Cole Robinson 2012-12-14 16:17:13 EST
The latter issue is fixed in F17 already, but the argv[0] bit persists. However both are fixed in F18, and since it's a minor bit, just closing as NEXTRELEASE

Note You need to log in before you can comment on or make changes to this bug.