summaryrefslogtreecommitdiff
path: root/expect-5.45-mkpasswd-dash.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:59:28 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:59:28 +0000
commit54c2e843134660a26a8923517d09519ce884c422 (patch)
treed338e64c26d86c31821227b5e62daf1144fdd1f1 /expect-5.45-mkpasswd-dash.patch
parent620ca363f3f7629f6b720c849aeb7a66a3e05ea0 (diff)
automatic import of expectopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'expect-5.45-mkpasswd-dash.patch')
-rw-r--r--expect-5.45-mkpasswd-dash.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/expect-5.45-mkpasswd-dash.patch b/expect-5.45-mkpasswd-dash.patch
new file mode 100644
index 0000000..fbdecde
--- /dev/null
+++ b/expect-5.45-mkpasswd-dash.patch
@@ -0,0 +1,13 @@
+diff -up expect5.45/example/mkpasswd.orig expect5.45/example/mkpasswd
+--- expect5.45/example/mkpasswd.orig 2011-03-16 13:23:23.125480017 +0100
++++ expect5.45/example/mkpasswd 2011-03-16 13:24:08.739353139 +0100
+@@ -202,7 +202,8 @@ if {[info exists user]} {
+ expect {
+ "assword*:" {
+ # some systems say "Password (again):"
+- send "$password\r"
++ send -- "$password\r"
++ # "--" because of passwords beginning with dash
+ exp_continue
+ }
+ }