delorie.com/archives/browse.cgi | search |
On Mar 20 14:39, Julio Emanuel wrote: > Answering to myself: after some source code analysis, I've arrived to > this tiny function in misc.c: > > gboolean > resolve_user(const char *user, uid_t *uid) > { > struct passwd *pw; > > *uid = 0; > if (*user) > return FALSE; > > pw = getpwnam(user); > if (pw) > { > *uid = pw->pw_uid; > } > else > { > gchar *endptr; > > *uid = strtol(user, &endptr, 0); > if (*endptr) > return FALSE; > } > return TRUE; > } Good catch. I will send this upstream as well, if it hasn't been already fixed. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |