diff options
author | hobbs <hobbs@noemail.net> | 2000-04-04 08:05:56 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-04-04 08:05:56 (GMT) |
commit | ea82c57e1c07ff90e0ea164344bc7664d5456463 (patch) | |
tree | 3eb21c1dfdcab1889714ea4a4597fbd0320d5ad5 /unix/tclUnixFCmd.c | |
parent | eefedca8d5f352a112554c2ebfbe8d37bd40450e (diff) | |
download | tcl-ea82c57e1c07ff90e0ea164344bc7664d5456463.zip tcl-ea82c57e1c07ff90e0ea164344bc7664d5456463.tar.gz tcl-ea82c57e1c07ff90e0ea164344bc7664d5456463.tar.bz2 |
* unix/Makefile.in (MAN_INSTALL_DIR): patch to accept --mandir
correctly [Bug: 4085]
* unix/tclUnixFCmd.c (SetGroupAttribute):
* unix/tclUnixFCmd.c (SetOwnerAttribute): Added (uid_t) and (gid_t)
casts to avoid compiler warnings.
FossilOrigin-Name: 45165c0e6db05da01e3f68dc83608da8e8d68808
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r-- | unix/tclUnixFCmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c index f396d45..20998ca 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.5 2000/01/12 11:13:55 hobbs Exp $ + * RCS: @(#) $Id: tclUnixFCmd.c,v 1.6 2000/04/04 08:05:57 hobbs Exp $ * * Portions of this code were derived from NetBSD source code which has * the following copyright notice: @@ -1247,7 +1247,7 @@ SetGroupAttribute(interp, objIndex, fileName, attributePtr) } native = Tcl_UtfToExternalDString(NULL, fileName, -1, &ds); - result = chown(native, -1, (gid_t) gid); /* INTL: Native. */ + result = chown(native, (uid_t) -1, (gid_t) gid); /* INTL: Native. */ Tcl_DStringFree(&ds); endgrent(); @@ -1308,14 +1308,14 @@ SetOwnerAttribute(interp, objIndex, fileName, attributePtr) } native = Tcl_UtfToExternalDString(NULL, fileName, -1, &ds); - result = chown(native, uid, -1); /* INTL: Native. */ + result = chown(native, (uid_t) uid, (gid_t) -1); /* INTL: Native. */ Tcl_DStringFree(&ds); if (result != 0) { Tcl_AppendResult(interp, "could not set owner for file \"", fileName, "\": ", Tcl_PosixError(interp), (char *) NULL); return TCL_ERROR; - } + } return TCL_OK; } |