[28674] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit [krb5-1.13]: Fix input race condition in t_skew.py

daemon@ATHENA.MIT.EDU (Tom Yu)
Tue Dec 16 14:28:44 2014

Date: Tue, 16 Dec 2014 14:25:52 -0500
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201412161925.sBGJPqsK020554@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/e41ed9c9fe0ed84733c645072ea2d838a07f812a
commit e41ed9c9fe0ed84733c645072ea2d838a07f812a
Author: Greg Hudson <ghudson@mit.edu>
Date:   Wed Nov 5 14:12:35 2014 -0500

    Fix input race condition in t_skew.py
    
    In two of the kinit tests run by t_skew.py, we expect kinit to exit
    before reading the password.  If we supply a password input for those
    commands, we can fail with a broken pipe exception if the master
    process tries to write the password after the slave process exits.
    
    Also correctly check the output of the last kinit invocation.
    
    (cherry picked from commit 2457bf66c466321dd36cd3c76bc36bb589d31587)
    
    ticket: 8034
    version_fixed: 1.13.1
    status: resolved

 src/tests/t_skew.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tests/t_skew.py b/src/tests/t_skew.py
index aa91471..17649fc 100644
--- a/src/tests/t_skew.py
+++ b/src/tests/t_skew.py
@@ -40,7 +40,7 @@ realm.kinit(realm.user_princ, password('user'),
 out = realm.kinit(realm.user_princ, password('user'), expected_code=1)
 if 'Clock skew too great in KDC reply' not in out:
     fail('Expected error message not seen in kinit skew case')
-out = realm.kinit(realm.user_princ, password('user'), flags=['-T', fast_cache],
+out = realm.kinit(realm.user_princ, None, flags=['-T', fast_cache],
                   expected_code=1)
 if 'Clock skew too great while' not in out:
     fail('Expected error message not seen in kinit FAST skew case')
@@ -50,8 +50,8 @@ realm.run_kadminl('modprinc +requires_preauth user')
 out = realm.kinit(realm.user_princ, password('user'), expected_code=1)
 if 'Clock skew too great while' not in out:
     fail('Expected error message not seen in kinit skew case (preauth)')
-realm.kinit(realm.user_princ, password('user'), flags=['-T', fast_cache],
-            expected_code=1)
+out = realm.kinit(realm.user_princ, None, flags=['-T', fast_cache],
+                  expected_code=1)
 if 'Clock skew too great while' not in out:
     fail('Expected error message not seen in kinit FAST skew case (preauth)')
 
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post