63a89e8464* setlsapwd.cc (setlsapwd): Simplify code. Only try to call cygserver if opening local policy fails. Don't treat removing non-existant private data as error.
Corinna Vinschen
2008-12-15 18:07:35 +0000
faded04e6c* setpwd.cc (client_request_setpwd::serve): Don't treat removing non-existant private data as error.
Corinna Vinschen
2008-12-15 18:05:50 +0000
12406f25fb* gcc.sgml: Use 'bash$' as Cygwin prompt throughout. * gdb.sgml: Ditto. * pathnames.sgml: Ditto. Fix the @ expansion example.
Corinna Vinschen
2008-12-15 09:37:50 +0000
ec4eb70c33* fhandler_disk_file.cc (readdir_get_ino): Don't complain about MS-DOS paths since the function could be fed one by an internal call.
Christopher Faylor
2008-12-14 06:01:46 +0000
2b0c1c0d44* utils.sgml: Convert some backslashes to slashes.
Christopher Faylor
2008-12-13 22:43:54 +0000
693862058a* pathnames.sgml: Convert some backslashes to slashes.
Christopher Faylor
2008-12-13 21:14:44 +0000
9fe25af7a6* cygheap.cc (cygheap_user::~cygheap_user): Remove unneeded if 0'ed code. * 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.
Christopher Faylor
2008-12-13 21:05:31 +0000
a1631dba6c2008-12-12 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2008-12-12 19:47:05 +0000
c43663737c2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston
2008-12-12 17:21:08 +0000
db48463a7f2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston
2008-12-12 17:16:03 +0000
f570da95082008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston
2008-12-12 17:11:33 +0000
7851320a412008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston
2008-12-12 17:07:37 +0000
cf2f4a6aefCommitted as obvious.
Danny Smith
2008-12-09 02:42:21 +0000
d27ebea923* fhandler_registry.cc (encode_regname): Add Parameter add_val. 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.
Corinna Vinschen
2008-12-08 11:45:18 +0000
448832a927* mips/idt32.ld: Set arch to mips:isa32r2 from mips:isa32. Update comment.
Adam Nemet
2008-12-06 16:29:01 +0000
4864a38c342008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2008-12-06 02:25:28 +0000
8310aa78b22008-12-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2008-12-06 02:19:57 +0000
8f2a0718d2* mips/idt64.ld: Set arch to mips:isa64r2 from mips:isa64. Update comment.
Adam Nemet
2008-12-05 19:51:33 +0000
e1984134be* libc/minires.c (open_sock): Set non blocking and close on exec. (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.
Corinna Vinschen
2008-12-03 16:37:53 +0000
5c1cf8812finclude/elf/ * common.h (STT_IFUNC): Define. elfcpp/ * elfcpp.h (enum STT): Add STT_IFUNC. bfd/ * syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION. Remove redundant flag BFD_FORT_COMM_DEFAULT_VALUE. Renumber flags to remove gaps. (bfd_print_symbol_vandf): Return 'i' for BSF_INDIRECT_FUNCTION. (bfd_decode_symclass): Likewise. * elf.c (swap_out_syms): Translate BSF_INDIRECT_FUNCTION into STT_IFUNC. (elf_find_function): Treat STT_IFUNC in the same way as STT_FUNC. (_bfd_elf_is_function_type): Likewise. * elf32-arm.c (arm_elf_find_function): Likewise. (elf32_arm_adjust_dynamic_symbol): Likewise. (elf32_arm_swap_symbol_in): Likewise. (elf32_arm_additional_program_headers): Likewise. * elf32-i386.c (is_indirect_symbol): New function. (elf_i386_check_relocs): Also generate dynamic relocs for relocations against STT_IFUNC symbols. (allocate_dynrelocs): Likewise. (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (is_indirect_symbol): New function. (elf64_x86_64_check_relocs): Also generate dynamic relocs for relocations against STT_IFUNC symbols. (allocate_dynrelocs): Likewise. (elf64_x86_64_relocate_section): Likewise. * elfcode.h (elf_slurp_symbol_table): Translate STT_IFUNC into BSF_INDIRECT_FUNCTION. * elflink.c (_bfd_elf_adjust_dynamic_reloc_section): Add support for STT_IFUNC symbols. (get_ifunc_reloc_section_name): New function. (_bfd_elf_make_ifunc_reloc_section): New function. * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs field. * bfd-in2.h: Regenerate. gas/ * config/obj-elf.c (obj_elf_type): Add support for STT_IFUNC type. * doc/as.texinfo: Document new feature. * NEWS: Mention new feature. gas/testsuite/ * gas/elf/type.s: Add test of STT_IFUNC symbol type. * gas/elf/type.e: Update expected disassembly. * gas/elf/elf.exp: Update grep of symbol types. ld/ * NEWS: Mention new feature. * pe-dll.c (process_def_file): Replace use of redundant BFD_FORT_COMM_DEFAULT_VALUE with 0. * scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn sections. ld/testsuite/ * ld-mips-elf/reloc-1-n32.d: Updated expected output for reloc descriptions. * ld-mips-elf/reloc-1-n64.d: Likewise. * ld-i386/ifunc.d: New test. * ld-i386/ifunc.s: Source file for the new test. * ld-i386/i386.exp: Run the new test.
Nick Clifton
2008-12-03 14:50:56 +0000
5875a5e7d5* ntsec.sgml: Revamp parts of the doc for clearness.
Corinna Vinschen
2008-12-03 11:47:27 +0000
f5e7a77023* ntsec.sgml: Fix a few typos.
Corinna Vinschen
2008-12-02 19:29:37 +0000
fcbc8f1968* cygserver.sgml: Fix cross reference to the ntsec documentation.
Corinna Vinschen
2008-12-02 17:39:39 +0000
798afebc20* cygserver.sgml: Document new feature to store hidden passwords for seteuid.
Corinna Vinschen
2008-12-02 17:32:38 +0000
e39e660c54* ntsec.sgml: Finishing up changes for 1.7.
Corinna Vinschen
2008-12-02 17:07:40 +0000
ea7630b0ff* Makefile.def: configure-target-boehm-gc depends on all-target-libstdc++-v3. * Makefile.in: Regenerate.
Andreas Schwab
2008-12-02 16:43:06 +0000
651d8393c8* fhandler_registry.cc (must_encode): New function. (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.
Corinna Vinschen
2008-12-02 11:40:13 +0000
c4f3555ecb* config.sub, config.guess: Update from upstream sources.
Ben Elliston
2008-12-02 03:21:45 +0000
54e01333f7* plugin-api.h: Fix syntax error when compiling with C++.
Cary Coutant
2008-12-01 19:05:46 +0000
d973def200* ntsec.sgml: Further changes for 1.7. Switch from "NT" to "Windows". Add preliminary text. Try to be more clear in description. Remove useless chapters. Finish the permission related chapters.
Corinna Vinschen
2008-12-01 18:34:44 +0000
83448783d5fix typo
Christopher Faylor
2008-11-30 22:42:24 +0000
51aa4c032b* faq-using.xml: Remove assertion that lpr doesn't exit. * faq-what.xml: Remove ancient who's who data.
Christopher Faylor
2008-11-30 22:37:45 +0000
4ff5152887* exceptions.c (sigpacket::process): Set tls on return since it is assumed to be set to a valid value by the caller.
Christopher Faylor
2008-11-29 02:41:38 +0000
412ec1f444* include/cygwin/version.h: Bump api minor number to 189 to flag the implementation of dirent.d_type.
Christopher Faylor
2008-11-29 01:39:53 +0000
6e40cdfc86* aoutx.h (NAME): Add case statements for bfd_mach_mips14000, bfd_mach_mips16000. * archures.c (bfd_architecture): Add .#defines for bfd_mach_mips14000, bfd_mach_mips16000. * bfd-in2.h: Regenerate. * cpu-mips.c: Add enums I_mips14000, I_mips16000. (arch_info_struct): Add refs to R14000, R16000. * elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips14000, bfd_mach_mips16000. (mips_mach_extensions): Map R14000, R16000 to R10000.
Thiemo Seufer
2008-11-28 18:02:17 +0000
3ba3b001a22008-11-28 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2008-11-28 17:15:47 +0000
d92ed436e3* exceptions.cc (sigpacket::process): Rework previous change. tls could still become NULL.
Christopher Faylor
2008-11-28 16:41:54 +0000
fa421c7a75* dir.cc (readdir_worker): Initialize dirent.d_type and __d_unused1. * 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.
Corinna Vinschen
2008-11-28 09:04:35 +0000
65ebf94e53* exceptions.cc (sigpacket::process): Make sure that 'tls' is never NULL when used.
Christopher Faylor
2008-11-28 02:56:09 +0000
27171a8cfa2008-11-27 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston
2008-11-27 21:01:40 +0000
8f337bfef92008-11-27 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston
2008-11-27 20:57:46 +0000
e707c2c9e22008-11-27 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston
2008-11-27 20:50:31 +0000
bad5c314f72008-11-27 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2008-11-27 20:45:37 +0000
7cd48a9bc4Merge from GCC: 2008-11-21 Kai Tietz <kai.tietz@onevision.com>
Joseph Myers
2008-11-27 17:22:10 +0000
311b675614Merge from GCC:
Joseph Myers
2008-11-27 17:14:58 +0000
8ba027ecb9* cr16.h (R_CR16_GOT_REGREL20, R_CR16_GOTC_REGREL20 and R_CR16_GLOB_DAT): New relocations.
Swami Reddy M R
2008-11-27 11:35:39 +0000
14535fc5382008-11-26 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston
2008-11-26 19:59:25 +0000
15c509b515clarify entry
Christopher Faylor
2008-11-26 17:21:20 +0000
025c1fac6eRemove unneeded whitespace. * 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.
Christopher Faylor
2008-11-26 17:21:04 +0000
f43f75a09d* Revert erroneous checkin.
Christopher Faylor
2008-11-26 16:42:27 +0000
b73c50e86aupdate copyright
Christopher Faylor
2008-11-26 16:42:00 +0000
81fa789153* Makefile.in: Revert erroneous checkin. * Makefile.common: Tweak to work better with new utils/mingw front-end.
Christopher Faylor
2008-11-26 16:40:29 +0000
d865502063* passwd.c (longopts): Add --reg-store-pwd option. (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.
Corinna Vinschen
2008-11-26 10:19:09 +0000
d4db08d7a6* Makefile.in (OBJS): Add setpwd.o. * 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.
Corinna Vinschen
2008-11-26 10:18:53 +0000
51303cbd0c* Makefile.in (DLL_OFILES): Add setlsapwd.o. * 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.
Corinna Vinschen
2008-11-26 10:18:10 +0000
4163e9fbdbinclude/ PR 7047 * bfdlink.h (struct bfd_elf_version_expr): Delete "symbol". Add "literal". bfd/ PR 7047 * configure.in: Bump version. * configure: Regenerate. * elflink.c (_bfd_elf_link_assign_sym_version): Continue matching against version nodes when a global match is a wildcard. Similarly continue matching on local wildcard matches, rather than only continuing for "*". Have any global wildcard match override a local wildcard match. Correct logic hiding unversioned symbol. (bfd_elf_size_dynamic_sections): Update for changes to struct bfd_elf_version_expr. ld/ PR 7047 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Update for changes to struct bfd_elf_version_expr. * ldlang.c (lang_vers_match, version_expr_head_hash): Likewise. (version_expr_head_eq, lang_finalize_version_expr_head): Likewise. (lang_register_vers_node): Likewise. (lang_new_vers_pattern): Likewise. Ensure "literal" is set when no glob chars found in "pattern". (realsymbol): Correct backslash quote logic. * ld.texinfo (VERSION): Warn about global wildcards.
Alan Modra
2008-11-26 01:04:12 +0000
b94518ea98* overview2.sgml: Reorganize and make minor wording changes.
Christopher Faylor
2008-11-25 16:39:58 +0000
06c4c61863* overview2.sgml: Add text that no automatic updates are provided.
Corinna Vinschen
2008-11-25 09:54:50 +0000
a11451b353* libc/stdio/gets.c (_gets_r): Lock stdin here and call __sgetc_r instead of _getchar_r.
Corinna Vinschen
2008-11-25 09:33:43 +0000
de33833d1f* cris.h (R_CRIS_32_TPREL): Correct comment. (R_CRIS_DTPMOD): Open up for use elsewhere than the fourth GOT entry.
Hans-Peter Nilsson
2008-11-25 03:08:13 +0000
6818a5c5392008-11-24 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2008-11-24 22:08:02 +0000
0aca33c8232008-11-24 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2008-11-24 21:27:33 +0000
0ef912dfc42008-11-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2008-11-24 21:16:06 +0000
9aa929ef17Fix typo.
Jeff Johnston
2008-11-24 21:14:29 +0000
df913771a72008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston
2008-11-24 20:42:33 +0000
b45d16228b2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston
2008-11-24 20:11:42 +0000
99abc9526e* fhandler_floppy.cc (fhandler_dev_floppy::raw_read): Drop 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.
Corinna Vinschen
2008-11-21 13:46:17 +0000
b007725e34* mmap.cc (MapView): Add NT status to debug output.
Corinna Vinschen
2008-11-21 10:52:10 +0000
d5567b8d752008-11-20 Ken Werner <ken.werner@de.ibm.com>
Jeff Johnston
2008-11-20 20:23:24 +0000
75cc619bb32008-11-20 Ken Werner <ken.werner@de.ibm.com> Patrick Mansfield <patmans@us.ibm.com> Joel Schopp <jschopp@austin.ibm.com>
Jeff Johnston
2008-11-20 20:20:51 +0000
01eb6cd6d92008-11-20 Ken Werner <ken.werner@de.ibm.com> Patrick Mansfield <patmans@us.ibm.com> Joel Schopp <jschopp@austin.ibm.com>
Jeff Johnston
2008-11-20 20:12:34 +0000
0e9810262d2008-11-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston
2008-11-19 21:05:31 +0000
8ee939ea9f2008-11-19 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2008-11-19 20:56:22 +0000
e231c7dae92008-11-19 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2008-11-19 20:04:09 +0000
34ff0a4e6f2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston
2008-11-19 19:48:31 +0000