diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-12 14:15:48 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-12 14:15:48 (GMT) |
commit | 34d3a97939aecd8253f01b4c34c317a89f24bd56 (patch) | |
tree | 86a3e27e2d3f0f9c0ccaf33a915a5cefc9b04607 /generic | |
parent | 96d7deb99b09624805b33dd7febf0cf056b7fa03 (diff) | |
parent | c3c52cf7b01b43cdaf03d9069caccb9a22fde93f (diff) | |
download | tcl-34d3a97939aecd8253f01b4c34c317a89f24bd56.zip tcl-34d3a97939aecd8253f01b4c34c317a89f24bd56.tar.gz tcl-34d3a97939aecd8253f01b4c34c317a89f24bd56.tar.bz2 |
merge 8.6
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdAH.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 13d3df5..88cc17d 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -1596,14 +1596,19 @@ FileAttrIsOwnedCmd( int objc, Tcl_Obj *const objv[]) { +#ifdef __CYGWIN__ +#define geteuid() (short)(geteuid)() +#endif +#if !defined(_WIN32) Tcl_StatBuf buf; +#endif int value = 0; if (objc != 2) { Tcl_WrongNumArgs(interp, 1, objv, "name"); return TCL_ERROR; } -#if defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) value = TclWinFileOwned(objv[1]); #else if (GetStatBuf(NULL, objv[1], Tcl_FSStat, &buf) == TCL_OK) { |