This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Remove unreachable code from passwd(1)


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=db8bda4b47d98bc40c8f582a96d72ebad6141629

commit db8bda4b47d98bc40c8f582a96d72ebad6141629
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sat Oct 22 21:20:28 2016 +0200

    Remove unreachable code from passwd(1)
    
    Fixed Coverity CID 66966
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/utils/passwd.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/winsup/utils/passwd.c b/winsup/utils/passwd.c
index 70778b8..8d91838 100644
--- a/winsup/utils/passwd.c
+++ b/winsup/utils/passwd.c
@@ -88,9 +88,6 @@ EvalRet (int ret, const char *user)
 	eprint (0, "You may not change the password for %s.", user);
       break;
 
-      eprint (0, "Bad password: Invalid.");
-      break;
-
     case NERR_PasswordTooShort:
       eprint (0, "Bad password: Too short.");
       break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]