]> git.ipfire.org Git - thirdparty/libtool.git/commit
ltmain.in: Fix infinite loop for error messages
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 14 Nov 2024 19:05:12 +0000 (21:05 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Wed, 20 Nov 2024 15:36:29 +0000 (17:36 +0200)
commit270b7bb2dbd3e25c0b7aa6f318f9d83c1ffa7f76
tree4918468148e6381f6d70f396923ddba586e6ad70
parent0a8c7b00ed094f9ca283fc09a06887386c9d7d85
ltmain.in: Fix infinite loop for error messages

If an invalid argument is passed to options '--mode' or '--reorder-cache'
after a valid command, error messages will print infinitely:

  $ libtool --help --mode=MODE
  libtool:   error: invalid argument 'MODE' for --mode
  libtool:   error: invalid argument 'MODE' for --mode
  libtool:   error: invalid argument 'MODE' for --mode
  ...

* build-aux/ltmain.in: Remove 'break' in case statement to fix infinite
  loop, and add shift for option '--reorder-cache' to allow more options
  to be processed.
build-aux/ltmain.in