diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2009-08-02 12:08:16 (GMT) | 
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2009-08-02 12:08:16 (GMT) | 
| commit | 9386311d822bd3b657483cfa13154f19e37274a2 (patch) | |
| tree | fc1b9ef4b1a8267263d395626b6d210ae0f48a27 /unix/tclUnixFile.c | |
| parent | fc1e80e59d600db451912a8415a68049714a2aa2 (diff) | |
| download | tcl-9386311d822bd3b657483cfa13154f19e37274a2.zip tcl-9386311d822bd3b657483cfa13154f19e37274a2.tar.gz tcl-9386311d822bd3b657483cfa13154f19e37274a2.tar.bz2  | |
Stop calling endpwent() and endgrent(); unneeded. [Bug 1942222]
Diffstat (limited to 'unix/tclUnixFile.c')
| -rw-r--r-- | unix/tclUnixFile.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 8eabbbb..c8ac03a 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.54 2009/02/03 23:10:57 nijtmans Exp $ + * RCS: @(#) $Id: tclUnixFile.c,v 1.55 2009/08/02 12:08:17 dkf Exp $   */  #include "tclInt.h" @@ -578,15 +578,13 @@ TclpGetUserHome(      Tcl_DString ds;      const char *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);  }  | 
