LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File expect-5.43.0-passmass-prompt.patch of Package expect (Project home:non7top:epel5)

diff -up expect-5.43/example/passmass.orig expect-5.43/example/passmass
--- expect-5.43/example/passmass.orig	2011-10-17 15:28:42.200981681 +0200
+++ expect-5.43/example/passmass	2011-10-17 15:29:22.047976780 +0200
@@ -182,7 +182,7 @@ for {set i 0} {$i<$argc} {incr i} {
 	send "$program\r"
     }
 
-    expect "Old password*" {
+    expect -nocase -re "(old|unix) password:.*" {
 	send "$password(old)\r"
 	expect "Sorry*" {
 	    badhost $host "old password is bad?"