[Heimdal-source-changes] [heimdal/heimdal] 6b285e: Avoid expr in non-portable comparison

GitHub noreply at github.com
Tors Mars 16 16:41:21 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: 6b285e67e547f8bd7c29ad92da91ca2e89210073
      https://github.com/heimdal/heimdal/commit/6b285e67e547f8bd7c29ad92da91ca2e89210073
  Author: Viktor Dukhovni <viktor at twosigma.com>
  Date:   2017-03-16 (Thu, 16 Mar 2017)

  Changed paths:
    M tests/kdc/check-iprop.in

  Log Message:
  -----------
  Avoid expr in non-portable comparison

The output of `wc -l` includes leading white-space, and at least
in FreeBSD 11, `expr 1 + "$foo"` fails when "$foo" (captured as
`wc -l` output) has leading whitespace.  Instead, just emit one
more line for "wc" to count.




More information about the Heimdal-source-changes mailing list