Corinna Vinschen
757ee9af8b
* pathnames.sgml: Add limitation of case sensitivity with CreateProcess.
2009-10-28 10:11:22 +00:00
Corinna Vinschen
641ba32982
* new-features.sgml (ov-new1.7-posix): Mention UTF-8 as "C" default
...
and the default locale "C.UTF-8".
* setup2.sgml (setup-locale-ov): Ditto.
2009-10-28 10:09:54 +00:00
Charles Wilson
73ddc92062
Correct pseudo-reloc size bug wrt error messages
2009-10-26 14:50:09 +00:00
Charles Wilson
654d34dda5
Sync pseudo-reloc.c with mingw64
2009-10-26 13:47:13 +00:00
Christopher Faylor
bfead37df4
* faq-setup.xml: Fix clean_setup.pl reference.
2009-10-26 11:57:33 +00:00
Christopher Faylor
b8263d5874
* faq-setup.xml: Change clean_setup.pl reference.
2009-10-26 11:25:16 +00:00
Charles Wilson
15c59df67f
Sync pseudo-reloc.c with mingw64
2009-10-25 23:37:48 +00:00
Corinna Vinschen
e83fef9d35
* fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.
2009-10-24 08:40:15 +00:00
Corinna Vinschen
1647bf67c1
* fhandler.cc (fhandler_base::open): Always create file with default
...
security descriptor and fix descriptor afterwards. Change comment to
explain why.
* security.cc (alloc_sd): Drop setting the SE_DACL_PROTECTED flag.
* wincap.cc: Remove has_dacl_protect throughout.
* wincap.h: Ditto.
2009-10-24 08:26:01 +00:00
Charles Wilson
060a658fe1
Sync pseudo-reloc.c with cygwin/lib/
2009-10-23 22:19:42 +00:00
Corinna Vinschen
959684bf05
* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
...
dummy file positions as on Linux.
2009-10-23 09:22:14 +00:00
Corinna Vinschen
aa0937c308
* cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
2009-10-20 15:26:33 +00:00
Corinna Vinschen
a4f31f1b1b
* registry.cc (reg_key::get_int): Add alternative implementation
...
taking WCHAR strings.
(reg_key::set_int): Ditto.
(reg_key::get_string): Ditto.
(reg_key::set_string): Ditto.
* registry.h (struct reg_key): Add prototypes for added methods.
2009-10-20 14:54:47 +00:00
Corinna Vinschen
c94a1006c6
* smallprint.cc (__small_vsprintf): Simplify UNICODE string handling
...
and allow empty strings.
2009-10-20 14:52:43 +00:00
Corinna Vinschen
cbea3f7d93
* fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status
...
code STATUS_NOT_SUPPORTED. Add matching comment.
2009-10-20 10:12:05 +00:00
Corinna Vinschen
8d648dc555
* syscalls.cc (internal_setlocale): Only convert $PATH if there is a
...
$PATH.
2009-10-19 19:47:15 +00:00
Corinna Vinschen
b3f5fb3718
* spawn.cc (av::fixup): Treat non-readable, but executable files as
...
Cygwin executables.
2009-10-19 08:33:00 +00:00
Corinna Vinschen
a6f3658d44
* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
...
not in a setuid condition.
2009-10-18 09:07:13 +00:00
Corinna Vinschen
175e39bb7f
* cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
...
using my_wcstombs.
(get_user_folder): Remove.
(do_sysfolders): Use get_special_folder instead of get_user_folder.
Fetch system paths as WCHAR and convert using my_wcstombs.
2009-10-15 11:40:02 +00:00
Corinna Vinschen
e710872955
* faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
...
clean_setup.pl script.
2009-10-15 08:46:58 +00:00
Eric Blake
4cd31fc8f9
Consistently use va_end.
...
* external.cc (cygwin_internal): Use va_end.
* fork.cc (child_copy): Likewise.
* libc/bsdlib.cc (warn, warnx, err, errx): Likewise.
* pinfo.cc (commune_request): Likewise.
* strace.cc (strace::prntf, strace_printf): Likewise.
2009-10-14 04:17:05 +00:00
Corinna Vinschen
bc3aedd061
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2009-10-13 12:08:22 +00:00
Corinna Vinschen
0191627a26
* include/sys/cygwin.h: Add new cygwin_getinfo_type
...
CW_SET_EXTERNAL_TOKEN.
Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED.
* cygheap.h (cyguser): New flags ext_token_is_restricted,
curr_token_is_restricted and setuid_to_restricted.
* external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN.
* sec_auth.cc (set_imp_token): New function.
(cygwin_set_impersonation_token): Call set_imp_token ().
* security.h (set_imp_token): New prototype.
* spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token
was enabled by setuid(). Do not create new window station in this case.
* syscalls.cc (seteuid32): Add handling of restricted external tokens.
Set HANDLE_FLAG_INHERIT for primary token.
(setuid32): Set setuid_to_restricted flag.
* uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was
enabled by setuid (). Initialize user.*_restricted flags.
2009-10-13 10:23:31 +00:00
Eric Blake
b8a35083c6
Improve clock_gettime and utimensat resolution.
...
* hires.h (hires_ms): Change initime_us to initime_ns, with 10x
more resolution.
(hires_ms::nsecs): New prototype.
(hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust.
* times.cc (systime_ns): New helper function.
(hires_ms::prime): Use it for more resolution.
(hires_ms::usecs): Change to...
(hires_ms::nsecs): ...with more resolution.
(clock_gettime): Use more resolution.
(systime): Rewrite in terms of systime_ns.
(timespec_to_filetime): Rewrite math to reflect true operation.
* fhandler_disk_file.cc (utimens_fs): Use higher resolution.
2009-10-13 02:26:33 +00:00
Corinna Vinschen
2fc007681e
* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
...
and CW_SETERRNO cases.
2009-10-12 19:26:08 +00:00
Corinna Vinschen
9e278ffd2c
* kill.cc (main): Skip to PID loop on invalid option to handle
...
negative pids there.
2009-10-12 16:01:44 +00:00
Corinna Vinschen
d358c9e9b0
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
...
if the original device had one, too. Add comment.
* fhandler_socket.cc (fhandler_socket::fstat): Always return a size of
0 on sockets.
2009-10-12 11:57:29 +00:00
Corinna Vinschen
220f363d20
* pathnames.sgml (pathnames-specialchars): Add control chars to the
...
list. Explain backslash exception.
2009-10-09 11:19:18 +00:00
Corinna Vinschen
9fa1c6420b
* path.cc (tfx_chars): Convert all ASCII control characters except
...
ASCII NUL as well. Change layout to make the conversions more clear.
Add comment.
2009-10-09 11:17:17 +00:00
Corinna Vinschen
1441f6a3d1
* include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".
2009-10-09 08:36:21 +00:00
Christopher Faylor
5391a40c89
* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
...
if we're exiting.
2009-10-08 15:56:14 +00:00
Eric Blake
80636211bc
* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
2009-10-08 11:13:45 +00:00
Charles Wilson
dc4e4aabba
Support pseudo-reloc version 2
2009-10-07 15:47:38 +00:00
Corinna Vinschen
dfbf36f8db
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
...
as well.
2009-10-07 08:20:49 +00:00
Corinna Vinschen
b4311a9067
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
...
* fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return
valid pgid if tty is controlling tty. Set errno to ENOTTY and
return -1 otherwise.
(fhandler_pty_master::tcgetpgrp): New function. Return 0 for
master side of pty if it's not the controlling tty of the process.
2009-10-07 07:52:30 +00:00
Charles Wilson
c8ee587a8e
Add cygwin wrapper for ExitProcess and TerminateProcess.
2009-10-06 21:51:17 +00:00
Christopher Faylor
a12518a37c
* exceptions.cc: Move global variable sigExeced...
...
* globals.cc: here.
* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded
declaration.
2009-10-06 03:39:38 +00:00
Dave Korn
3772467948
* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.
2009-10-04 17:48:05 +00:00
Corinna Vinschen
ef35acca22
* include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
...
_WIN32_WINNT >= 0x0500.
(DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN,
WRITE_RESTRICTED): Define.
(IsTokenRestricted): Declare for >= Win 2000.
2009-10-04 12:28:08 +00:00
Corinna Vinschen
960624f47e
* syscalls.cc (internal_setlocale): Add comment.
2009-10-04 11:32:07 +00:00
Dave Korn
26f19ec1ad
* faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.
2009-10-03 13:33:18 +00:00
Corinna Vinschen
0ca6c6b802
* dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. Just
...
call initial_setlocale from here.
* syscalls.cc (initial_setlocale): Set internal charset and revert
application locale to "C".
(setlocale): Don't set Cygwin's internal charset here.
2009-10-02 14:58:10 +00:00
Christopher Faylor
a37e07482c
* mkpasswd.c: Properly define __progname as __declspec(dllimport).
...
* mkgroup.c: Ditto.
2009-10-02 13:49:39 +00:00
Corinna Vinschen
45162575d2
* setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
...
Rephrase how the locale environment variables are evaluated.
2009-10-02 12:35:52 +00:00
Christopher Faylor
284c5ea0a5
* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.
...
(check_sanity_and_sync): to here.
* path.cc (has_dot_last_component): Rewrite to detect some corner cases that
were previously uncaught.
2009-10-02 06:04:57 +00:00
Corinna Vinschen
ffca4d278e
* new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N.
...
* pathnames.sgml (pathnames-unusual): Ditto.
* setup2.sgml (setup-locale-ov): Change description according to
latest changes.
(setup-locale-how): Rewrite.
(setup-locale-console): Enable section again. Change to reflect
recent changes.
(setup-locale-problems): Change to reflect recent changes.
2009-09-30 09:45:01 +00:00
Corinna Vinschen
4180b64df4
* fhandler_console.cc (beep): Move up to avoid forward declaration.
...
(fhandler_console::read): Just beep on characters invalid in current
charset. Add comment.
2009-09-30 09:23:45 +00:00
Eric Blake
1c0909882c
* syscalls.cc (rename): Fix regression in rename("dir","d/").
2009-09-30 02:11:05 +00:00
Keith Marshall
e97ad66a84
Make MinGW printf() "%p" format compatible with MSVCRT scanf().
2009-09-29 20:43:50 +00:00
Corinna Vinschen
4abcdf2717
* fhandler_socket.cc (fhandler_socket::recv_internal): Always call
...
WSARecv on SOCK_STREAM sockets.
2009-09-29 08:46:29 +00:00