[Python-checkins] python/dist/src/Modules pwdmodule.c, 1.37,
1.37.14.1
bwarsaw at users.sourceforge.net
bwarsaw at users.sourceforge.net
Tue Jan 20 16:23:48 EST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv5483
Modified Files:
Tag: release23-maint
pwdmodule.c
Log Message:
pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error
messages.
Index: pwdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pwdmodule.c,v
retrieving revision 1.37
retrieving revision 1.37.14.1
diff -C2 -d -r1.37 -r1.37.14.1
*** pwdmodule.c 6 Dec 2002 12:48:51 -0000 1.37
--- pwdmodule.c 20 Jan 2004 21:23:46 -0000 1.37.14.1
***************
*** 108,112 ****
return NULL;
if ((p = getpwuid(uid)) == NULL) {
! PyErr_SetString(PyExc_KeyError, "getpwuid(): uid not found");
return NULL;
}
--- 108,113 ----
return NULL;
if ((p = getpwuid(uid)) == NULL) {
! PyErr_Format(PyExc_KeyError,
! "getpwuid(): uid not found: %d", uid);
return NULL;
}
***************
*** 128,132 ****
return NULL;
if ((p = getpwnam(name)) == NULL) {
! PyErr_SetString(PyExc_KeyError, "getpwnam(): name not found");
return NULL;
}
--- 129,134 ----
return NULL;
if ((p = getpwnam(name)) == NULL) {
! PyErr_Format(PyExc_KeyError,
! "getpwnam(): name not found: %s", name);
return NULL;
}
More information about the Python-checkins
mailing list