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/tclUnixFCmd.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/tclUnixFCmd.c')
| -rw-r--r-- | unix/tclUnixFCmd.c | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index 75fc727..e450589 100644 --- a/unix/tclUnixFCmd.c +++ b/unix/tclUnixFCmd.c @@ -10,7 +10,7 @@   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES.   * - * RCS: @(#) $Id: tclUnixFCmd.c,v 1.72 2009/02/03 23:10:57 nijtmans Exp $ + * RCS: @(#) $Id: tclUnixFCmd.c,v 1.73 2009/08/02 12:08:17 dkf Exp $   *   * Portions of this code were derived from NetBSD source code which has the   * following copyright notice: @@ -1341,7 +1341,6 @@ GetGroupAttribute(  	*attributePtrPtr = Tcl_NewStringObj(utf, -1);  	Tcl_DStringFree(&ds);      } -    endgrent();      return TCL_OK;  } @@ -1396,7 +1395,6 @@ GetOwnerAttribute(  	*attributePtrPtr = Tcl_NewStringObj(utf, Tcl_DStringLength(&ds));  	Tcl_DStringFree(&ds);      } -    endpwent();      return TCL_OK;  } @@ -1483,7 +1481,6 @@ SetGroupAttribute(  	Tcl_DStringFree(&ds);  	if (groupPtr == NULL) { -	    endgrent();  	    if (interp != NULL) {  		Tcl_AppendResult(interp, "could not set group for file \"",  			TclGetString(fileName), "\": group \"", string, @@ -1497,7 +1494,6 @@ SetGroupAttribute(      native = Tcl_FSGetNativePath(fileName);      result = chown(native, (uid_t) -1, (gid_t) gid);	/* INTL: Native. */ -    endgrent();      if (result != 0) {  	if (interp != NULL) {  	    Tcl_AppendResult(interp, "could not set group for file \"", @@ -1545,7 +1541,7 @@ SetOwnerAttribute(  	string = Tcl_GetStringFromObj(attributePtr, &length);  	native = Tcl_UtfToExternalDString(NULL, string, length, &ds); -	pwPtr = TclpGetPwNam(native); /* INTL: Native. */ +	pwPtr = TclpGetPwNam(native);			/* INTL: Native. */  	Tcl_DStringFree(&ds);  	if (pwPtr == NULL) {  | 
