diff options
author | dgp <dgp@users.sourceforge.net> | 2020-12-26 18:01:46 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-12-26 18:01:46 (GMT) |
commit | ad77faa0e48048e3c41fb0897324affebe14056e (patch) | |
tree | 39cefd3e70cc01d7bf9e446b02ca6674140c2fe7 /win | |
parent | 3665cff5961ee991aa1978a1b3af1c3ea3c40ba6 (diff) | |
parent | b5b121bedb44bb9c322dc93b41b99b66a0f91630 (diff) | |
download | tcl-ad77faa0e48048e3c41fb0897324affebe14056e.zip tcl-ad77faa0e48048e3c41fb0897324affebe14056e.tar.gz tcl-ad77faa0e48048e3c41fb0897324affebe14056e.tar.bz2 |
merge 8.6
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinFile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 6aacde6..fba82d7 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -268,7 +268,7 @@ WinLink( /* * Can't symlink files. */ - Tcl_SetErrno(ENOTDIR); + Tcl_SetErrno(EINVAL); } else if (tclWinProcs.createSymbolicLink(linkSourcePath, linkTargetPath, 0x2 /* SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE */)) { /* @@ -276,9 +276,9 @@ WinLink( */ return 0; + } else { + TclWinConvertError(GetLastError()); } - - TclWinConvertError(GetLastError()); } else { Tcl_SetErrno(ENODEV); } |