[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch development updated: ltmain.in: Fix infinite loop for error messa
From: |
Ileana Dumitrescu |
Subject: |
branch development updated: ltmain.in: Fix infinite loop for error messages |
Date: |
Thu, 14 Nov 2024 14:23:47 -0500 |
This is an automated email from the git hooks/post-receive script.
ildumi pushed a commit to branch development
in repository libtool.
The following commit(s) were added to refs/heads/development by this push:
new 7fd72bec ltmain.in: Fix infinite loop for error messages
7fd72bec is described below
commit 7fd72bec1a83a7e0d60919abdfcb34bcc803b7d8
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Thu Nov 14 21:05:12 2024 +0200
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 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 9d891127..4d7fc293 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -474,7 +474,6 @@ libtool_parse_options ()
# Catch anything else as an error
*) func_error "invalid argument '$1' for $_G_opt"
exit_cmd=exit
- break
;;
esac
shift
@@ -512,10 +511,10 @@ libtool_parse_options ()
*) func_error "invalid argument '$1' for $_G_opt"
func_error "absolute paths are required for
$_G_opt"
exit_cmd=exit
- break
;;
esac
fi
+ shift
;;
--silent|--quiet)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch development updated: ltmain.in: Fix infinite loop for error messages,
Ileana Dumitrescu <=