summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [85d1fa7d07]: Duplicate file extension check in [file executable] on ↵jan.nijtmans2021-04-151-1/+0
| | | | Windows. It looks like checking for "ps1" is a mistake.
* Revise buffer-sizes used in GetModuleFileNameW() calls. Available ↵jan.nijtmans2021-02-231-1/+1
| | | | buffer-size reported to GetModuleFileNameW() was not always accurate
* Remove EXECUTE flag for tclWinFile.c. More eol-spacing cleanup (keeping ↵jan.nijtmans2019-06-261-0/+0
| | | | tests-pref/* among other the same in multiple branches)
* fixed build with MSVC 6.0sebres2019-06-251-1/+0
|
* Add support for TIP #494 to registry and dde. Only effective when compiled ↵jan.nijtmans2018-10-301-0/+9
| | | | | against Tcl 9.0 headers. This way we can keep the source-code for those extensions 100% equal in all branches. Work-around for gcc warning in tclWinFile.c. Discovered by Travis CI.
* win: closes [3f7af0e21e13f1f5] - avoid "permissions denied" by `file ↵sebres2018-07-121-1/+2
| | | | delete`, if file stat (TclpObjStat) used internally in other worker, for example by usage of `file mkdir` etc.
* resolves some warnings by compiling with new gcc-versions (>= 7.x):sebres2018-06-081-2/+8
| | | | - '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] - passing argument 1 of 'Tcl_CreateExitHandler' from incompatible pointer type [-Wincompatible-pointer-types]
* win: searching for FQDN in user-name should be utf-8 safe (user-name could ↵sebres2018-05-281-2/+2
| | | | contain non-ascii utf-8 chars)
* minor indentation fix (no functional changes)sebres2018-05-251-4/+4
|
* avoid dual init of stubs (possible race condition, 8.5th only)sebres2018-05-251-19/+20
|
* optimized winapi-stubs loading (8.5th only); if user name specified without ↵sebres2018-05-251-78/+109
| | | | domain and equals the current user - try safest and fastest way to get current user-home path (without usage of netapi)
* [9e6b569963] win: if user specified without domain (and local user was not ↵sebres2018-05-241-8/+19
| | | | | | found), try to resolve user-home using current domain, so following code's are similar: file normalize ~$::tcl_platform(user)@$::env(USERDOMAIN) file normalize ~$::tcl_platform(user)
* win: TclpGetUserHome should return normalized path (also in case we find ↵sebres2018-05-241-10/+11
| | | | | domain and NetUserGetInfo returns path), PoC: file normalize ~$::tcl_platform(user)@$::env(USERDOMAIN)
* minor fix on comment (restored getFileSecurityProc back, because ↵sebres2018-03-221-1/+1
| | | | getNamedSecurityInfoProc not used)
* win: fixes check of file permissions (readable, writable, executable) - more ↵sebres2018-03-221-19/+40
| | | | | faster and stable solution without direct check of security permissions by optimal terms; additionally corrected executable extensions (missing .ps1/.cmd) in useWide case.
* (cherry-pick): Bugfix [5d7ea04580]. Treat .cmd and .ps1 files are executable ↵jan.nijtmans2016-07-081-1/+3
| | | | on Windows.
* Fix minor msvc compiler warning in tclWinFile.cjan.nijtmans2015-10-101-2/+1
|
* Fix [b42a851475]: file normalize ~user returns wrong directory on Windowsjan.nijtmans2015-10-061-7/+23
|
* Open linked folder shared on Windows - Patch [19ea026e43]oehhar2015-04-231-1/+1
|
* Improve documentation on the use of com ports (remove references to Windows ↵jan.nijtmans2014-11-131-2/+2
| | | | | 95, deprecate the use of postfix ':'). Allow lpt[5-9] just as com[5-9], and make sure that path normalization works as expected for ports > 4.
* Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well.jan.nijtmans2014-10-311-2/+2
|
* When translating a reserved devicename to native pathname, strip ':' ↵jan.nijtmans2014-10-311-1/+4
| | | | postfix. Possible fix for [dcc03414f5], but anyway a good idea.
* Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ↵jan.nijtmans2014-05-151-2/+61
| | | | ':' in filenames as well)
* [792641f95b]: Normalized win32 paths should never contain backslash.jan.nijtmans2014-04-101-9/+6
|
* Slightly more correct: If FindFirstFile() fails, the error should be "no ↵jan.nijtmans2013-03-201-1/+1
|\ | | | | | | such file or directory" (ENOENT) not "permission denied" (EACCES).
| * Slightly more correct: If FindFirstFile() fails, the error should be "no ↵jan.nijtmans2013-03-201-1/+1
| | | | | | | | such file or directory" (ENOENT) not "permission denied" (EACCES).
* | Handle the (unlikely) case that the file is deleted in between. Suggested by ↵jan.nijtmans2013-03-191-0/+4
|\ \ | |/ | | | | Harald Oehlmann (Thanks!)
| * Handle the (unlikely) case that the file is deleted in between. Suggested by ↵jan.nijtmans2013-03-191-0/+4
| | | | | | | | Harald Oehlmann (Thanks!)
* | [Bug 2893771]: file stat fails on locked files on win32.jan.nijtmans2013-03-191-5/+17
|\ \ | |/
| * make sure that [file stat] returns the right data, even for locked files.jan.nijtmans2013-03-191-0/+6
| |
| * [Bug 2893771]: file stat fails on locked files on win32.jan.nijtmans2013-03-191-5/+11
| |
* | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-1/+0
| |
* | [Bug 3603434] Make sure TclpObjNormalizePath() properly declares "a:/" todgp2013-02-051-0/+12
|\ \ | |/ | | be normalized, even when no "A:" drive is present on the system.
| * Fix for Bug 3603434.dgp2013-02-051-0/+12
| |
| * Backported [Bug 2882342]: correct struct _REPARSE_DATA_BUFFER in tcl 8.4jan.nijtmans2013-01-091-15/+16
| |
* | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-1/+1
| | | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
* | [Bug 3092089]: [file normalize] can remove path components.jan.nijtmans2013-01-081-5/+6
|\ \ | |/ | | [Bug 3587096] win vista/7: "can't find init.tcl" when called via junction.
| * [Bug 3092089]: [file normalize] can remove path components.jan.nijtmans2013-01-081-5/+6
| |\ | | | | | | [Bug 3587096] win vista/7: "can't find init.tcl" when called via junction.
| | * new attempt for better fixjan.nijtmans2013-01-081-11/+6
| | |
| | * suggested fix for Bug 3092089: [file normalize] can remove path component, jan.nijtmans2013-01-031-0/+6
| |/ |/| | | and for Bug 3587096: startup error message when exe in folder with junction with limited rights
| * tclStubInit.c: move up #undef, so it is clear that thisjan.nijtmans2012-04-041-3/+3
| | | | | | | | macro is conflicting with another definition in this file. Fix some other gcc warnings
| * [Bug 3288345] Wrong Tcl_StatBuf used on Cygwinjan.nijtmans2012-03-201-60/+0
| | | | | | (backported from Tcl 8.5)
* | xjan.nijtmans2012-03-151-62/+0
| |
* | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2012-03-121-2/+2
|\ \ | |/
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2012-03-121-2/+2
| |
| * 2974459,2879351,1951574,1852572,1661378,1613456 Revisions to the NativeAccess()dgp2012-02-021-24/+46
| |\ | |/ |/| | | | | | | routine that queries file permissions on Windows native filesystems. Meant to fix numerous bugs where [file writable|readable|executable] "lies" about what operations are possible, especially when the file resides on a Samba share. Patch cherrypicked off the fix-win-native-access branch.
* | merge to bugfix branchdgp2012-01-241-4/+0
|\ \
* | | Contributed patch aiming to fix [file writable] problems on Windows & Samba.dgp2012-01-111-20/+45
|/ /
* | [Bug 2935503] Windows: file mtime sets wrong time (VS2005+ only)jan.nijtmans2011-11-221-3/+0
|\ \ | |/
| * [Bug 2935503]: Windows: file mtime sets wrong timejan.nijtmans2011-11-221-0/+1
| |