summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * spawn.cc (spawn_guts): Remove long path prefix from win32 pathCorinna Vinschen2008-07-222-0/+19
| | | | before calling CreateProcess if path length is < MAX_PATH.
* * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen2008-07-229-928/+925
| | | | | | | | | | | | | | | | | | | | * bloda.cc: Use statically linked functions throughout. * cygpath.cc: Drop 9x considerations. * mkgroup.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique groupnames in domain\group syntax. Add -S option to define domain\group separator char. Ignore -u and -s options. * mkpasswd.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique usernames in domain\user syntax. Add -S option to define domain\user separator char. Ignore -g and -s options. Prefer to take homedir from $HOME over $HOMEDRIVE/$HOMEPATH. * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options. (getmntent): Accomodate throughout. * ps.cc: Fix copyright dates. * utils.sgml: Fix text for mkgroup and mkpasswd.
* * include/ctype.h: Declare __ctype_ptr__ to keep newlib build happy.Corinna Vinschen2008-07-222-0/+7
|
* * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen2008-07-211-0/+11
| | | | | | | | | | * bloda.cc: link against ntdll functions statically. * cygpath.cc (get_user_folder): Drop 9x code. (print_version): Fix copyright. * mkgroup.c: Remove 9x code. * mkpasswd.c: Ditto. * path.cc (oopts): Add new mount options. * ps.cc: Fix copyright.
* * autoload.cc (WNetGetProviderNameA): Define.Corinna Vinschen2008-07-193-34/+101
| | | | | | | | | | | | (WNetGetResourceParentA): Remove. * fhandler_netdrive.cc (struct net_hdls): New structure to keep WNet handles. Stored in dir->__handle throughout. (thread_netdrive): Rewrite to enumerate all servers in all accessible domains and workgroups. (fhandler_netdrive::readdir): Simplify toplevel code. Lowercase all server names in toplevel. (fhandler_netdrive::rewinddir): Close all WNet handles and free net_hdls structure.
* * fhandler.cc (fhandler_base::open): Rename x to fh. On Samba, alwaysCorinna Vinschen2008-07-182-17/+30
| | | | | create file with NULL security descriptor and set the permissions afterwards. Explain why.
* * cygwinenv.sgml: Move binmode option to list of removed options.Corinna Vinschen2008-07-182-15/+14
|
* * environ.cc (known): Remove "binmode" option.Corinna Vinschen2008-07-186-11/+11
| | | | | | | | * fhandler.cc (binmode): Remove. (fhandler_base::set_flags): Accommodate binmode removal. * path.h (path_conv::set_binary): Remove. * pipe.cc (pipe): Create pipes always as binary pipes. * winsup.h (binmode): Remove declaration.
* * mount.cc (do_mount): Remove MOUNT_ENC code.Corinna Vinschen2008-07-173-27/+10
| | | | | | | (oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
* * mount.cc (mount_info::from_fstab_line): Default to binary mount.Corinna Vinschen2008-07-172-1/+5
|
* * Revamp documentation for Cygwin 1.7, part 1.Corinna Vinschen2008-07-1716-755/+917
|
* * utils.sgml: Add id's to all examples.Corinna Vinschen2008-07-172-13/+17
|
* * path.cc (allow_winsymlinks): Revert default to create system bitCorinna Vinschen2008-07-162-1/+6
| | | | symlinks for speed.
* Add case-sensitivity.Corinna Vinschen2008-07-1622-490/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unconditionally handle mount points case-sensitive. Unconditionally handle virtual paths case-sensitive. Unconditionally handle registry paths case-insensitive. Otherwise, accommodate case-sensitivity of given path throughout. * cygheap.cc (cygheap_root::set): Get additional caseinsensitive parameter and store it. * cygheap.h (struct cygheap_root_mount_info): Add member caseinsensitive. * dlfcn.cc (get_full_path_of_dll): Drop PC_NOFULL parameter from call to path_conv::check. * environ.cc (pcheck_case): Remove. (check_case_init): Remove. (known): Drop "check_case" option. * exceptions.cc (open_stackdumpfile): Add comment. * fhandler.cc (fhandler_base::get_default_fmode): Call pathmatch instead of strcasematch. * fhandler_disk_file.cc: Accommodate case-sensitivity of given path throughout. (__DIR_mounts::check_mount): Unconditionally check virtual paths case-sensitive. (fhandler_disk_file::link): Drop case clash handling. (fhandler_disk_file::open): Ditto. (fhandler_disk_file::readdir_helper): Drop managed mount code. * mount.cc: Remove managed mount code and datastructures. (struct opt): Remove "managed" option. Add "posix=0" and "posix=1" options. (fillout_mntent): Remove "managed" output. Add "posix" output. * path.cc (struct symlink_info): Remove case_clash member and case_check method. (pcheck_case): Remove. (path_prefix_p): Take additional bool parameter "caseinsensitive". (pathnmatch): Ditto. (pathmatch): Ditto. (mkrelpath): Ditto. (fs_info::update): Set caseinsensitive flag according to file system name and FILE_CASE_SENSITIVE_SEARCH flag. Add comment. (tfx_chars_managed): Remove. (transform_chars): Drop "managed" parameter. Always use tfx_chars. (get_nt_native_path): Drop "managed" parameter. Make sure drive letters are always upper case. (getfileattr): Change second parameter to denote caseinsensitivity. (path_conv::check): Initialize caseinsensitive to OBJ_CASE_INSENSITIVE. Set caseinsensitive according to global obcaseinsensitive flag, file system case sensitivity and MOUNT_NOPOSIX mount flag. Drop case_clash and all the related code. (symlink_worker): Drop case clash handling. (symlink_info::set): Drop setting case_clash. (symlink_info::case_check): Remove. (cwdstuff::set): Add comment. (etc::init): Take path_conv instead of PUNICODE_STRING as parameter to allow case sensitivity. * path.h (enum pathconv_arg): Drop PC_SYM_IGNORE. (enum case_checking): Remove. (enum path_types): Drop PATH_ENC, add PATH_NOPOSIX flag. (struct fs_info): Add caseinsensitive flag and accessor methods. (class path_conv): Add caseinsensitive member and define objcaseinsensitive method. Drop case_clash member and isencoded method. (pathmatch): Change prototype according to above change. (pathnmatch): Ditto. (path_prefix_p): Ditto. (get_nt_native_path): Ditto. (class etc): Ditto. (fnunmunge): Remove prototype. * shared.cc (shared_info::init_obcaseinsensitive): Initialize obcaseinsensitive flag from obcaseinsensitive registry value. (shared_info::initialize): Call init_obcaseinsensitive here by the first process creating the shared memory. * shared_info.h (mount_item::fnmunge): Remove. (shared_info::obcaseinsensitive): Rename from obcaseinsensitivity. (shared_info::init_obcaseinsensitive): Declare. * syscalls.cc (try_to_bin): Add comment. * include/sys/mount.h (MOUNT_ENC): Remove flag. (MOUNT_NOPOSIX): Add flag.
* * cyglsa-config: Always create a /bin/cyglsa directory and copy theCorinna Vinschen2008-07-162-13/+26
| | | | LSA DLL there. Register this copy in the registry.
* * fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff.Corinna Vinschen2008-07-155-40/+25
| | | | | | | | | | | | | | Just initialize drive data. * mtinfo.h (MTINFO_MAGIC): Remove. (MTINFO_VERSION): Remove. (class mtinfo): Remove magic and version members. * shared.cc (shared_info::initialize): Move call to get_session_parent_dir so that the dir creation is only called once. Move call to mt.initialize so that it's called only by the first process creating the shared memory. * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add obcaseinsensitivity member.
* * cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined.Corinna Vinschen2008-07-154-2/+11
| | | | | * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Fix comment.
* * fhandler.cc (fhandler_base::fpathconf): On _PC_POSIX_PERMISSIONSCorinna Vinschen2008-07-142-1/+6
| | | | and _PC_POSIX_SECURITY, return true for NFS, too.
* Throughout drop allow_ntsec and allow_smbntsec handling.Corinna Vinschen2008-07-1413-56/+51
| | | | | | | | | | | | | | | | * environ.cc (set_ntsec): Remove. (set_smbntsec): Remove. (known): Remove ntsec and smbntsec options. * external.cc (check_ntsec): Return true if no filename is given. * mount.cc (oopts): Add "acl" and "noacl" options. Set MOUNT_NOACL flag accordingly. (fillout_mntent): Handle MOUNT_NOACL flag. * path.h (enum path_types): Add PATH_NOACL. * security.cc (allow_ntsec): Remove. (allow_smbntsec): Remove. * security.h (allow_ntsec): Drop declaration. (allow_smbntsec): Drop declaration. * include/sys/mount.h (MOUNT_NOACL): Define.
* * miscfuncs.cc (cygwin_strncasecmp): Fix bug which results inCorinna Vinschen2008-07-142-6/+10
| | | | | prematurely truncated strings. Simplify target length argument to sys_mbstowcs.
* * autoload.cc (GetExtendedTcpTable): Define.Corinna Vinschen2008-07-144-20/+68
| | | | | | | | | * fhandler_socket.cc (address_in_use): Take const struct sockaddr pointer as argument. Implement additional AF_INET6 table check. (fhandler_socket::bind): Drop AF_INET test before calling address_in_use. * net.cc (ipv4_getnameinfo): Return EAI_FAMILY instead of 1 if called with unsupported af_family.
* * include/iphlpapi.h (GetExtendedTcpTable): Add prototype.Corinna Vinschen2008-07-144-0/+49
| | | | | | | * include/iprtrmib.h (TCP_TABLE_CLASS, MIB_TCPROW_OWNER_PID, MIB_TCPTABLE_OWNER_PID, MIB_TCP6ROW_OWNER_PID, MIB_TCP6TABLE_OWNER_PID): Define. * lib/iphlpapi.def (GetExtendedTcpTable): Export.
* * cyglsa.c: Don't include ntddk.h.Corinna Vinschen2008-07-135-12/+40
| | | | | | | | | | | | | (RtlInitEmptyUnicodeString): Use Visual-C compatible "__inline" instead of "inline". (uni_alloc): Change second argument to USHORT. (printf): Move definition of ap to make Visual-C++ happy. (LsaApLogonUserEx): Compute size of datastructure returned to LSA on 64 bit systems correctly to avoid heap corruption. * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Accommodate newer Microsoft toolchains. Add more comment. * mslsa.def: Export LsaApLogonUserEx instead of LsaApLogonUser.
* Fix usage of recently fixed Interlocked* functions.Eric Blake2008-07-122-10/+15
| | | | | * winbase.h (ilockincr, ilockdecr, ilockexch, ilockcmpexch): Add volatile qualifier, to match Interlocked* functions.
* * select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.Corinna Vinschen2008-07-112-4/+10
|
* * cyglsa.c (LsaApLogonUserEx): Accommodate the fact that authinf->domainCorinna Vinschen2008-07-112-13/+19
| | | | | | and authinf->username are now of type WCHAR. Change sam_username and sam_u size to be deifned in terms of MAX_DOMAIN_NAME_LEN instead of INTERNET_MAX_HOST_NAME_LENGTH.
* Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH toCorinna Vinschen2008-07-117-90/+135
| | | | | | | | | | | | | | | | | | | | | | | | | MAX_DOMAIN_NAME_LEN throughout. * cyglsa.h (CYG_LSA_MAGIC): New value. (cyglsa_t): Define username and domain as WCHAR arrays. * errno.cc (errmap): Add mapping for ERROR_NONE_MAPPED. * sec_auth.cc: Drop 'w' prefix from WCHAR string variable names where appropriate. (extract_nt_dom_user): Prefer resolving by SID before resolving by domain\name pair. (cygwin_logon_user): Don't print cleartext password in debug output. Change comment. (get_user_groups): Revert calls to LookupAccountNameW to use NULL server instead of explicit server name, according to MSDN. (get_user_local_groups): Ditto. (get_server_groups): Fetch domain and user name from usersid per LookupAccountSidW instead of calling extract_nt_dom_user. (lsaauth): Fetch domain and user name from usersid per LookupAccountSidW instead of calling extract_nt_dom_user. * sec_helper.cc (cygpriv): Convert to wchar_t pointer array. (privilege_luid): Convert first parameter to PWCHAR. (privilege_name): Return wchar_t pointer. (set_privileges): Accommodate debug output. * security.h (privilege_luid): Change prototype accordingly.
* * cyglsa.c: Revamp debugging output.Corinna Vinschen2008-07-103-110/+237
| | | | | | | | (LsaApInitializePackage): Open debugging output file here. (LsaApLogonUserEx): Replace LsaApLogonUser. Add debugging output. Create machine name for accounting. Add (disabled) code to fetch a token from GetAuthDataForUser/ConvertAuthDataToToken. * cyglsa.din: Relace LsaApLogonUser with LsaApLogonUserEx.
* * cyglsa.h (SECURITY_STRING): Define.Corinna Vinschen2008-07-103-7/+94
| | | | | | | | | | (enum _SECPKG_NAME_TYPE): Define. (struct _SECPKG_CALL_INFO): Define. (struct _LSA_SECPKG_FUNCS): Extend to full size. Define unused functions lazily. (cygprf_t): Define. * sec_auth.cc (lsaauth): Use actual primary group if no admins group. Add (disabled) code to fetch token from profil data.
* * sec_auth.cc (verify_token): Allow builtin groups missing in a tokenCorinna Vinschen2008-07-092-2/+12
| | | | and it's still valid. Explain why.
* * mkgroup.c: Use statically linked functions throughout, except forCorinna Vinschen2008-07-093-341/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout. Use defines instead of constants throughout. (MAX_SID_LEN): Define. (load_netapi): Just load DsGetDcNameW pointer. (psx_dir): Remove. (uni2ansi): Remove. (enum_local_users): Take server name and use in Net... call. (DBGSID): Define datastructure. (MAX_BUILTIN_SIDS): Define. (builtin_sid_list): Define global sid list. (builtin_sid_cnt): Define counter for global sid list. (enum_local_groups): Take server name and use in Net... and Lookup... calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to NetLocalGroupEnum. Check for duplicate builtin groups. (enum_users): Take server name and use in Net... call. (usage): Change text slightly. (print_version): Fix copyright. (main): Call enum_local_groups for domains as well. * mkpasswd.c: Use statically linked functions throughout, except for DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout. Use defines instead of constants throughout. (MAX_SID_LEN): Define. (load_netapi): Just load DsGetDcNameW pointer. (uni2ansi): Use wcstombs. (current_user): Replace "unused_by_nt/2000/xp" by just "unused". (enum_users): Ditto. (print_version): Fix copyright.
* * autoload.cc (DsGetDcNameW): Replace DsGetDcNameA.Corinna Vinschen2008-07-097-129/+118
| | | | | | | | | | | | | | | | | | * dcrt0.cc (child_info_spawn::handle_spawn): Drop artificial supplementary group list from calling setgroups in parent. * grp.cc (internal_getgroups): Drop 9x-only code. Reformat. * sec_auth.cc (get_logon_server): Do everything in WCHAR only. (get_user_groups): Ditto. Use wlogonserver in LookupAccountNameW calls, too. (is_group_member): Get logon server as first argument and use in call to NetLocalGroupGetMembers. (get_user_local_groups): Get logon server as first argument and use in calls to NetLocalGroupEnum and LookupAccountNameW. Revamp to work more correctly in domain environments. (get_server_groups): Accommodate aforementioned changed function calls. * security.h (get_logon_server): Change prototype accordingly. * uinfo.cc (cygheap_user::env_logsrv): Accommodate changed get_logon_server call.
* * grp.cc (internal_getgroups): Also add integrity-enabled groups.Corinna Vinschen2008-07-092-1/+6
|
* * sec_auth.cc (verify_token): Disable code which returns false ifCorinna Vinschen2008-07-092-0/+17
| | | | | the token contains additional groups not requested by setgroups. Explain why.
* * fhandler_socket.cc (fhandler_socket::bind): Don't run explicitCorinna Vinschen2008-07-085-7/+50
| | | | | | | | | | local socket test in SO_REUSEADDR case on systems supporting enhanced socket security. Explain why. Only call address_in_use for AF_INET sockets. * net.cc (cygwin_setsockopt): Don't call setsockopt to set SO_REUSEADDR on systems supporting enhanced socket security. Add comment. * wincap.h (wincaps::has_enhanced_socket_security): New element. * wincap.cc: Implement above element throughout.
* * net.cc (ipv6_inited): Make NO_COPY.Corinna Vinschen2008-07-082-1/+5
|
* 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Danny Smith2008-07-072-3/+8
| | | | | * include/ctype.h (_imp____mb_cur_max): Correct spelling. (_imp____mb_cur_max_dll): Likewise.
* * include/stdio.h (swprintf, vswprintf): Guard with #ifndef ↵Danny Smith2008-07-043-5/+17
| | | | | | __STRICT_ANSI__ * include/wchar.h (swprintf, vswprintf): Likewise.
* * path.cc (path_conv::is_binary): Fix test. Add comment.Corinna Vinschen2008-07-022-2/+8
|
* Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80Keith Marshall2008-07-013-6/+24
|
* * Makefile.in: Temporarily add ability to generate pdfs.Christopher Faylor2008-07-012-1/+13
|
* * effectively.sgml: Correct subject-verb agreement, missing verbChristopher Faylor2008-06-272-35/+40
| | | | (typo), preposition and (definite vs indefinite) article use.
* 2008-06-25 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-06-252-3/+11
| | | | | | | * include/winbase.h (GetProcessHandleCount, GetSystemRegistryQuota, GetThreadIOPendingFlag): Modified to rely on _WIN32_WINNT 0x0501 instead of 0x0502. Bug reported by Thomas Denk.
* 2008-06-25 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-06-252-7/+14
| | | | | | | * include/winbase.h (InterlockedIncrement, InterlockedDecrement, InterlockedCompareExchange, InterlockedExchange, InterlockedCompareExchangePointer, InterlockedExchangeAdd, InterlockedExchangePointer): Modified from PLONG to LONG volatile *.
* * net.cc (cygwin_bindresvport_sa): Fix usage of last_used_bindresvport.Corinna Vinschen2008-06-242-2/+6
|
* * include/limits.h (PATH_MAX): Add comment.Corinna Vinschen2008-06-213-1/+8
| | | | | * include/cygwin/config.h (__FILENAME_MAX__): Define as 4096. Add comment.
* Committed as obvious.Danny Smith2008-06-203-2/+8
| | | | | | * lib/ddk/hal.def (HalTranslateBusAddress): Correct suffix. * lib/ddk/ntoskrnl.def (MmAllocateContiguousMemory): Correct suffix. Bug reported by Brian Hawley.
* * faq-using.xml: Add more words about multiple cygwins.Christopher Faylor2008-06-202-1/+70
|
* * fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.Corinna Vinschen2008-06-192-2/+6
|
* * strsig.cc (strsignal): Return non-const buffer to allow building with recentChristopher Faylor2008-06-192-3/+12
| | | | newlib change.