1 |
commit: 62501cdddf09cd92689fb5e8f87c4369fd636cf5 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 8 20:53:12 2022 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 8 20:53:12 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=62501cdd |
7 |
|
8 |
Error out if --root has no option argument |
9 |
|
10 |
* bin/eselect.in: Error out if --root has no option argument. |
11 |
|
12 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
13 |
|
14 |
ChangeLog | 2 ++ |
15 |
bin/eselect.in | 1 + |
16 |
2 files changed, 3 insertions(+) |
17 |
|
18 |
diff --git a/ChangeLog b/ChangeLog |
19 |
index d40ac8d..ac7c78b 100644 |
20 |
--- a/ChangeLog |
21 |
+++ b/ChangeLog |
22 |
@@ -1,5 +1,7 @@ |
23 |
2022-01-08 Ulrich Müller <ulm@g.o> |
24 |
|
25 |
+ * bin/eselect.in: Error out if --root has no option argument. |
26 |
+ |
27 |
* configure.ac: Update version to 1.4.19. |
28 |
* Tagged 1.4.19 release. |
29 |
|
30 |
|
31 |
diff --git a/bin/eselect.in b/bin/eselect.in |
32 |
index 3422197..4caa87e 100755 |
33 |
--- a/bin/eselect.in |
34 |
+++ b/bin/eselect.in |
35 |
@@ -150,6 +150,7 @@ while [[ ${1##--} != "$1" ]]; do |
36 |
action=${1##--} |
37 |
;; |
38 |
root=*|root) |
39 |
+ [[ ${1#*=} == "$1" ]] && die -q "Option $1 requires an argument" |
40 |
# set ROOT and recalculate EROOT |
41 |
ROOT=${1#*=} |
42 |
EROOT="${ROOT%${EPREFIX:+/}}${EPREFIX}" |