summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-08-02 12:15:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-08-02 12:15:04 (GMT)
commit53b1f467a9e16c6358a0e6d06db9413e1bc4c2c8 (patch)
tree981b7fbb421ca3d018444e3dba62d9b733194fbf /unix/tclUnixFile.c
parent13b0e3a3115bdcc30872a5e276edcb35ef009537 (diff)
downloadtcl-53b1f467a9e16c6358a0e6d06db9413e1bc4c2c8.zip
tcl-53b1f467a9e16c6358a0e6d06db9413e1bc4c2c8.tar.gz
tcl-53b1f467a9e16c6358a0e6d06db9413e1bc4c2c8.tar.bz2
Stop calling endpwent() and endgrent(); unneeded. [Bug 1942222]
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index d11b43c..c3ad48b 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixFile.c,v 1.52 2007/12/13 15:28:42 dgp Exp $
+ * RCS: @(#) $Id: tclUnixFile.c,v 1.52.2.1 2009/08/02 12:15:04 dkf Exp $
*/
#include "tclInt.h"
@@ -567,15 +567,13 @@ TclpGetUserHome(
CONST char *native;
native = Tcl_UtfToExternalDString(NULL, name, -1, &ds);
- pwPtr = getpwnam(native); /* INTL: Native. */
+ pwPtr = TclpGetPwNam(native); /* INTL: Native. */
Tcl_DStringFree(&ds);
if (pwPtr == NULL) {
- endpwent();
return NULL;
}
Tcl_ExternalToUtfDString(NULL, pwPtr->pw_dir, -1, bufferPtr);
- endpwent();
return Tcl_DStringValue(bufferPtr);
}