newlib/winsup/utils
Corinna Vinschen 79b1b77b1f cygpath: Avoid returning SysWOW64
On Cygwin 32 running under WOW64:

	When case-correcting the path fetched with -S, the underlying
	Windows function fetching the normalized path returns the real
	path C:\Windows\SysWOW64 instead of the path redirection
	enabled C:\Windows\System32 path.  This breaks using the result
	of `cygpath -S' to fetch the POSIX path of the network related
	files under SYSTEMROOT\drivers\etc.  This path is in fact under
	the *real* C:\Windows\System32 and only mapped into the 32 bit
	C:\Windows\System32 (aka C:\Windows\SysWOW64) via path redirection.
	Sounds messy?

	This patch checks if we're running under WOW64.  If so, it
	changes the path returned by GetSystemDirectoryW from "system32"
	to "Sysnative".  This in turn is changed to "System32" by
	NtQueryInformationFile, so we're back to what we need.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-01-21 18:40:30 +01:00
..
COPYING.dumper * dumper.cc: Change license to plain GPLv2 + later. 2007-07-24 19:08:23 +00:00
ChangeLog Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
ChangeLog-2000 * regtool.cc (translate): Ensure that 'c' is initialized. 2001-01-10 14:20:16 +00:00
ChangeLog-2015 Deprecate all winsup ChangeLog files 2016-01-07 21:16:01 +01:00
ChangeLog.64bit * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
Makefile.in * Makefile.in: Add rules to create and depend on tzmap.h. 2014-12-05 13:41:52 +00:00
aclocal.m4 winsup/ChangeLog: 2013-11-07 00:19:52 +00:00
autogen.sh ChangeLog: 2012-11-23 13:22:47 +00:00
bloda.cc Update copyrights 2013-01-21 16:28:27 +00:00
configure * configure.ac: Convert to new AC_INIT style. 2014-08-15 21:24:35 +00:00
configure.ac * configure.ac: Convert to new AC_INIT style. 2014-08-15 21:24:35 +00:00
cygcheck.cc cygcheck.cc: Fix missing commas in products array 2015-08-30 21:46:58 +02:00
cygpath.cc cygpath: Avoid returning SysWOW64 2016-01-21 18:40:30 +01:00
cygwin-console-helper.cc * cygwin-console-helper.cc: New file. 2009-07-05 00:01:26 +00:00
dump_setup.cc * dump_setup.cc (check_package_files): Accommodate postinstall 2015-02-17 23:36:23 +00:00
dumper.cc * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
dumper.h * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
getconf.c winsup/utils: add CPU cache variables to getconf(1) 2015-10-22 12:51:20 -05:00
getfacl.c Reapply POSIX ACL changes. 2015-11-18 22:27:54 +01:00
kill.cc Fix SEGV of kill -l 0 2015-11-26 22:31:01 +01:00
ldd.cc Fix potential hang in ldd if DLL encounters missing entry point 2015-07-20 18:32:24 +02:00
ldh.cc * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to 2010-08-28 12:12:53 +00:00
loadlib.h * Makefile.in: Move CFLAGS and CXXFLAGS so that they can be manipulated by 2012-11-28 03:22:36 +00:00
locale.cc * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
minidumper.cc * minidumper.cc (filter_minidump_type): New function. 2014-05-13 10:26:26 +00:00
mkgroup.c * mkgroup.c (MAX_SID_LEN): Remove. Instead, use SECURITY_MAX_SID_SIZE 2015-02-25 20:18:29 +00:00
mkpasswd.c * mkgroup.c (MAX_SID_LEN): Remove. Instead, use SECURITY_MAX_SID_SIZE 2015-02-25 20:18:29 +00:00
module_info.cc * Makefile.in (cygcheck.exe): Link against wininet.dll. 2013-11-19 11:14:36 +00:00
mount.cc * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
parse_pe.cc * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
passwd.c * passwd.c (GetPW): If server is NULL, and the user is not a local 2014-11-24 11:07:32 +00:00
path.cc Bind mounts require POSIX paths 2015-06-08 17:37:55 +02:00
path.h * Makefile.in (path-mount.o): Add a rule to build stripped down version 2009-07-22 10:20:26 +00:00
pldd.c * pldd.c: Fix typo in license header. 2012-02-24 21:53:28 +00:00
ps.cc cygwin: Fix copyright dates 2015-07-29 13:45:46 +02:00
regtool.cc * regtool.cc (longopts): Add --force option. 2015-02-03 15:14:57 +00:00
setfacl.c setfacl: Remove unused local variable 2015-12-25 21:41:52 +01:00
setmetamode.c Clean up whitespace. 2011-12-17 23:39:47 +00:00
ssp.c * Merge in cygwin-64bit-branch. 2013-04-23 09:44:36 +00:00
ssp.txt Cleanup formatting on some files. Remove excessive whitespace. 2000-10-28 05:00:00 +00:00
strace.cc strace: Handle ofile descriptor more carefully. 2015-08-03 12:02:17 +02:00
testsuite.cc Update copyrights 2013-01-21 16:28:27 +00:00
testsuite.h Update copyrights 2013-01-21 16:28:27 +00:00
tzmap-from-unicode.org Asia/Calcutta -> Asia/Kolkata (not on unicode.org) 2015-04-23 22:03:45 +02:00
tzmap.h Asia/Calcutta -> Asia/Kolkata (not on unicode.org) 2015-04-23 22:03:45 +02:00
tzset.c cygwin: Fix copyright dates 2015-07-29 13:45:46 +02:00
umount.cc Update copyrights 2013-01-21 16:28:27 +00:00
wide_path.h * cygpath.cc (do_pathconv): when -p option is given, generate wide 2013-06-26 13:10:35 +00:00