[Bugs] [Bug 1503983] New: Wrong usage of getopt shell command in hook-scripts

bugzilla at redhat.com bugzilla at redhat.com
Thu Oct 19 08:34:53 UTC 2017


            Bug ID: 1503983
           Summary: Wrong usage of getopt shell command in hook-scripts
           Product: GlusterFS
           Version: mainline
         Component: scripts
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: anoopcs at redhat.com
                CC: bugs at gluster.org

Description of problem:
getopt(1) shell command has the following optional argument defined in man page

. . .
-n, --name progname
       The name that will be used by the getopt(3) routines when it reports
       errors. Note that errors of getopt(1) are still reported as coming from
. . .

The way getopt shell command is used inside almost every hook scripts results
is generating wrong script name while reporting any errors during execution of

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

[1] http://man7.org/linux/man-pages/man1/getopt.1.html

You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

More information about the Bugs mailing list