[Pidgin] #16087: can't log in password containing special character

Pidgin trac at pidgin.im
Mon Mar 3 17:37:23 EST 2014


#16087: can't log in password containing special character
--------------------------+----------------------
 Reporter:  hayhackerall  |      Owner:  bleeter
     Type:  patch         |     Status:  new
Milestone:                |  Component:  privacy
  Version:  2.10.9        |   Keywords:  password
--------------------------+----------------------
 Can't log in w/ password containing special character(s) (%, &)
 i think this code will solve this problem
 #include <sys/types.h>
 #include <pwd.h>
 #include <stddef.h>
 #include <string.h>
 struct passwd *
 getpwnam(const char *name)
 {
 struct passwd *ptr;
 setpwent();
 while ( (ptr = getpwent()) != NULL) {
 if (strcmp(name, ptr->pw_name) == 0)
 break; /* found a match */
 }
 endpwent();
 return(ptr); /* ptr is NULL if no match found */
 }

-- 
Ticket URL: <https://developer.pidgin.im/ticket/16087>
Pidgin <https://pidgin.im>
Pidgin


More information about the Tracker mailing list