summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * setpwd.cc (client_request_setpwd::serve): Explicitely erase passwordCorinna Vinschen2008-12-152-0/+7
| | | | buffer content after usage.
* * passwd.c (main): Put how to delete the registry password on its ownCorinna Vinschen2008-12-152-1/+7
| | | | line in passwd -R output.
* * fhandler_registry.cc (fhandler_registry::exists): Handle EACCES.Corinna Vinschen2008-12-152-2/+8
| | | | (fhandler_registry::open): Ditto.
* * cygwin.din: Export fgetwc, fgetws, fputwc, fputws, fwide, getwc,Corinna Vinschen2008-12-154-8/+31
| | | | | | | getwchar, putwc, putwchar, ungetwc. * posix.sgml: Move above functions (add missing) into "implemented SUSv3" section. * include/cygwin/version.h: Bump api minor number.
* * fhandler.h (class fhandler_registry): Declare dup method.Corinna Vinschen2008-12-153-8/+34
| | | | | | * fhandler_registry.cc (fhandler_registry::exists): Fix missing parenthesis. (fhandler_registry::dup): New method.
* * gcc.sgml: Use 'bash$' as Cygwin prompt throughout.Corinna Vinschen2008-12-154-11/+18
| | | | | * gdb.sgml: Ditto. * pathnames.sgml: Ditto. Fix the @ expansion example.
* * fhandler_disk_file.cc (readdir_get_ino): Don't complain about MS-DOS pathsChristopher Faylor2008-12-143-2/+7
| | | | since the function could be fed one by an internal call.
* * utils.sgml: Convert some backslashes to slashes.Christopher Faylor2008-12-132-5/+9
|
* * pathnames.sgml: Convert some backslashes to slashes.Christopher Faylor2008-12-132-10/+14
|
* * cygheap.cc (cygheap_user::~cygheap_user): Remove unneeded if 0'ed code.Christopher Faylor2008-12-136-153/+158
| | | | | | | | | * fhandler_registry.cc (fhandler_registry::exists): Recode goto as if/else to avoid a gcc4 compiler warning. (fhandler_registry::open): Ditto. Use one goto rather than two. * gentls_offsets: Fix compiler warning in generated output. * tlsoffsets.h: Regenerate. * mount.cc (fillout_mntent): slashify native paths returned via getmntent.
* * pathnames.sgml: New section for /proc/registry. Document registryCorinna Vinschen2008-12-122-9/+45
| | | | name encoding.
* * resolv.h: #include <netinet/in.h> for sockaddr_in typedef.Corinna Vinschen2008-12-092-0/+5
|
* Committed as obvious.Danny Smith2008-12-092-1/+5
| | | | | | 2008-12-08 Dmitry G. Gorbachev <d.g.gorbachev@gmail.com> * cpu_features.c (__cpu_features_init): Remove erroneous ';'.
* * fhandler_registry.cc (encode_regname): Add Parameter add_val.Corinna Vinschen2008-12-082-36/+163
| | | | | | | | | | | | | | | | | | | | Append "%val" if add_val is set. (decode_regname): Remove trailing "%val". Change returncode accordingly. (__DIR_hash): New class. (d_hash): New macro. (key_exists): New function. (fhandler_registry::exists): Remove encode of registry name before path compare, decode file part of path instead. Skip checks for keys if trailing "%val" detected. (fhandler_registry::fstat): Change check of return value of decode_regname (). (fhandler_registry::readdir): Allocate __DIR_hash. Record key names in hash table. Append "%val" if key with same name exists. Fix error handling of encode_regname (). Set dirent.d_type. (fhandler_registry::closedir): Delete __DIR_hash. (fhandler_registry::open): Don't open key if trailing "%val" detected by decode_regname (). (open_key): Ditto.
* 2008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2008-12-063-3/+8
| | | | | * include/w32api.h: Increment version to 3.13. * Makefile.in: Ditto.
* 2008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2008-12-063-232/+5
| | | | | * lib/glut.def: remove. * lib/glut32.def: ditto.
* * ntsec.sgml: Fix typo.Corinna Vinschen2008-12-042-2/+6
|
* * libc/minires.c (open_sock): Set non blocking and close on exec.Corinna Vinschen2008-12-032-48/+103
| | | | | | | (res_ninit): Set id pseudo-randomly. (res_nsend): Do not set close on exec. Initialize server from id. Flush socket. Tighten rules for answer acceptance. (res_nmkquery): Update id using current data.
* * ntsec.sgml: Revamp parts of the doc for clearness.Corinna Vinschen2008-12-032-61/+86
|
* * ntsec.sgml: Fix a few typos.Corinna Vinschen2008-12-022-2/+6
|
* * cygserver.sgml: Fix cross reference to the ntsec documentation.Corinna Vinschen2008-12-022-1/+5
|
* * cygserver.sgml: Document new feature to store hidden passwordsCorinna Vinschen2008-12-022-0/+13
| | | | for seteuid.
* * ntsec.sgml: Finishing up changes for 1.7.Corinna Vinschen2008-12-022-190/+422
|
* * fhandler_registry.cc (must_encode): Fix condition changed for testing.Corinna Vinschen2008-12-022-1/+5
|
* * fhandler_registry.cc (must_encode): New function.Corinna Vinschen2008-12-022-10/+102
| | | | | | | | | | (encode_regname): Ditto. (decode_regname): Ditto. (fhandler_registry::exists): Encode name before path compare. (fhandler_registry::fstat): Pass decoded name to win32 registry call. (fhandler_registry::readdir): Return encoded name to user. (fhandler_registry::open): Store decoded name into value_name. (open_key): Pass decoded name to win32 registry call.
* * ntsec.sgml: Further changes for 1.7. Switch from "NT" to "Windows".Corinna Vinschen2008-12-012-238/+97
| | | | | Add preliminary text. Try to be more clear in description. Remove useless chapters. Finish the permission related chapters.
* fix typoChristopher Faylor2008-11-301-1/+1
|
* * faq-using.xml: Remove assertion that lpr doesn't exit.Christopher Faylor2008-11-303-45/+9
| | | | * faq-what.xml: Remove ancient who's who data.
* * exceptions.c (sigpacket::process): Set tls on return since it is assumed toChristopher Faylor2008-11-292-0/+6
| | | | be set to a valid value by the caller.
* * include/cygwin/version.h: Bump api minor number to 189 to flag theChristopher Faylor2008-11-292-1/+7
| | | | implementation of dirent.d_type.
* * exceptions.cc (sigpacket::process): Rework previous change. tls could stillChristopher Faylor2008-11-282-14/+21
| | | | become NULL.
* * dir.cc (readdir_worker): Initialize dirent.d_type and __d_unused1.Corinna Vinschen2008-11-284-4/+35
| | | | | | | | * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set dirent.d_type based on FILE_ATTRIBUTE_*. * include/sys/dirent.h: Define _DIRENT_HAVE_D_TYPE (enables DT_* declarations). (struct dirent): Add d_type. Adjust __d_unused1 size to preserve layout.
* * exceptions.cc (sigpacket::process): Make sure that 'tls' is never NULL whenChristopher Faylor2008-11-282-8/+12
| | | | used.
* clarify entryChristopher Faylor2008-11-261-1/+1
|
* Remove unneeded whitespace.Christopher Faylor2008-11-2621-196/+242
| | | | | | | | | | | | | | | | * fhandler_fifo.cc (fhandler_fifo::open): Rework to cause errno to be set to ENXIO when opening a fifo write/nonblocking. * environ.cc (ucreqenv): Rename to ucenv. Move code from old ucenv here and conditionalize it on create_upcaseenv. (ucenv): Delete. (environ_init): Fix compiler warning by moving create_upcaseenv test to ucenv. Don't bother checking for child_proc_info when calling ucenv since it is assumed to be NULL at the point where the function is called. * path.cc (symlink_worker): Turn off MS-DOS path warnings when dealing with devices since the device handler passes in a translated MS-DOS path. * sec_auth.cc (lsaprivkeyauth): Avoid variable initialization which causes a compiler error. * fhandler_netdrive.cc: Update copyright.
* * Revert erroneous checkin.Christopher Faylor2008-11-262-7/+13
|
* update copyrightChristopher Faylor2008-11-261-1/+2
|
* * Makefile.in: Revert erroneous checkin.Christopher Faylor2008-11-262-10/+14
| | | | * Makefile.common: Tweak to work better with new utils/mingw front-end.
* * passwd.c (longopts): Add --reg-store-pwd option.Corinna Vinschen2008-11-263-17/+110
| | | | | | | | (opts): Add -R option. (usage): Add text for -R/--reg-store-pwd option. (main): Fix size of local user and password string arrays. Handle -R option. * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
* * Makefile.in (OBJS): Add setpwd.o.Corinna Vinschen2008-11-267-2/+125
| | | | | | | | | | | * README: Explain new service to store passwords in the LSA registry area. * bsd_helper.cc (get_token_info): Make externally available. * bsd_helper.h (get_token_info): Declare. * client.cc (client_request::handle_request): Add case for CYGSERVER_REQUEST_SETPWD request. * setpwd.cc: New file implementing the CYGSERVER_REQUEST_SETPWD request.
* * Makefile.in (DLL_OFILES): Add setlsapwd.o.Corinna Vinschen2008-11-2614-32/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cygserver.h (CYGWIN_SERVER_VERSION_API): Bump. (request_code_t): Define CYGSERVER_REQUEST_SETPWD request type. * cygserver_msg.h (client_request_msg::retval): Use default value of -1 for retval if msglen is 0. * cygserver_sem.h (client_request_sem::retval): Ditto. * cygserver_shm.h (client_request_shm::retval): Ditto. * cygserver_setpwd.h: New file. * external.cc (cygwin_internal): Implement new CW_SET_PRIV_KEY type. * sec_auth.cc (open_local_policy): Make externally available. Get ACCESS_MASK as argument. (create_token): Accommodate change to open_local_policy. (lsaauth): Ditto. (lsaprivkeyauth): New function fetching token by retrieving password stored in Cygwin or Interix LSA private data area and calling LogonUser with it. * security.h (lsaprivkeyauth): Declare. (open_local_policy): Declare. * setlsapwd.cc: New file implementing setting LSA private data password using LsaStorePrivateData or by calling cygserver if available. * syscalls.cc (seteuid32): Add workaround to get the original token when switching back to the original privileged user, even if setgroups group list is still active. Add long comment to explain why. Call lsaprivkeyauth first, only if that fails call lsaauth or create_token. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_SET_PRIV_KEY.
* * overview2.sgml: Reorganize and make minor wording changes.Christopher Faylor2008-11-252-14/+19
|
* * overview2.sgml: Clarify unix-specific automatic updates section.Christopher Faylor2008-11-252-11/+22
|
* * overview2.sgml: Add text that no automatic updates are provided.Corinna Vinschen2008-11-252-3/+11
|
* * fhandler_floppy.cc (fhandler_dev_floppy::raw_read): DropCorinna Vinschen2008-11-212-2/+10
| | | | | | initialization of bytes_to_read. Set bytes_to_read to len in non-buffered case. Call read_bytes correctly with bytes_to_read instead of len.
* * mmap.cc (MapView): Add NT status to debug output.Corinna Vinschen2008-11-212-2/+7
|
* * autoload.cc (GetSystemDEPPolicy): Define.Corinna Vinschen2008-11-126-3/+84
| | | | | | | | | | | | | (GetProcessDEPPolicy): Ditto. (SetProcessDEPPolicy): Ditto. * dcrt0.cc (disable_dep): New static function. (dll_crt0_0): Call disable_dep on platforms requiring it. Add longish comment to explain the circumstances. * wincap.h (wincaps::ts_has_dep_problem): New element. * wincap.cc: Implement above element throughout. (wincapc::init): Set ts_has_dep_problem to true on 2008 Terminal Servers. * winsup.h (WINVER): Set to 0x0601.
* * include/winbase.h (PROCESS_DEP_ENABLE,Corinna Vinschen2008-11-112-0/+28
| | | | | | PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION): Define for >= Vista SP1. (enum _DEP_SYSTEM_POLICY_TYPE): Ditto. (GetProcessDEPPolicy, GetSystemDEPPolicy, SetProcessDEPPolicy): Ditto.
* * mount.cc (mount_info::cygdrive_win32_path): Always upper caseCorinna Vinschen2008-11-113-3/+19
| | | | | | | DOS drive letter to accommodate case sensitivity. (cygdrive_getmntent): Ditto. * path.cc (path_conv::check): Invalidate wide_path after making path relative.
* * cygwinenv.sgml: Add description for upcaseenv option.Corinna Vinschen2008-11-112-0/+40
|