]> git.ipfire.org Git - thirdparty/coreutils.git/commit
expr: don't interpret argv[0] as an operand
authorJim Meyering <meyering@redhat.com>
Wed, 15 Oct 2008 07:19:29 +0000 (09:19 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 15 Oct 2008 13:34:58 +0000 (15:34 +0200)
commit514b7fbc0069bbd53087561020b1562ccbcd11ee
tree2e828748c2f5a4de5e79f6e79335b0cfe54f3f4d
parent555c219d9eff5b0b15be7c479a8efc81f59b0ffb
expr: don't interpret argv[0] as an operand

* src/expr.c (main): Given a first argument like -22 (negative, with
two or more digits), expr would decrement optind to 0 and then attempt
to evaluate argv[0].
src/expr.c