summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-04 08:05:56 (GMT)
committerhobbs <hobbs>2000-04-04 08:05:56 (GMT)
commitd629aa94a6179c6ebf2844bd69030aca52dd7d73 (patch)
tree3eb21c1dfdcab1889714ea4a4597fbd0320d5ad5 /unix/tclUnixFCmd.c
parent2fcb38b7326ab3bf96de39eebb600bef826428d6 (diff)
downloadtcl-d629aa94a6179c6ebf2844bd69030aca52dd7d73.zip
tcl-d629aa94a6179c6ebf2844bd69030aca52dd7d73.tar.gz
tcl-d629aa94a6179c6ebf2844bd69030aca52dd7d73.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.
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c8
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;
}