Comment 3 for bug 1718668

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

So it checks for something not meant to be the way it is [1]
I'd assume the action to actually check is wrong.

That depends on the var "posixly", maybe that changed.
It is defined as:
  bool posixly = !!getenv ("POSIXLY_CORRECT");
  /* See comment in getopt.c:
     glibc gets a LSB-compliant getopt.
     Standalone applications get a POSIX-compliant getopt. */
#if defined __GETOPT_PREFIX || !(__GLIBC__ >= 2 || defined __MINGW32__)
  /* Using getopt from gnulib or from a non-glibc system. */
  posixly = true;
#endif

Need to check those defines on build

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