1 2010-12-06 Corinna Vinschen <corinna@vinschen.de>
3 * cygpath.cc (get_device_name): Fix path length test.
5 2010-10-30 Dmitry Potapov <dpotapov@gmail.com>
7 * regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ
10 2010-09-06 Corinna Vinschen <corinna@vinschen.de>
12 * cygpath.cc (RtlEqualUnicodePathPrefix): New helper function.
13 (HARDDISK_PREFIX): Move.
14 (GLOBALROOT_PREFIX): Define.
15 (get_device_name): Take GLOBALROOT_PREFIX into account.
16 Improve check for path to allow filesystem access via block devices.
17 Potentially drop \\.\ prefix if resulting path is a valid DOS
19 (do_pathconv): Make sure to drop \\?\ prefix only if path is
20 actually a filesystem based path.
21 (print_version): Fix copyright.
23 2010-08-28 Corinna Vinschen <corinna@vinschen.de>
25 * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to
26 LOAD_WITH_ALTERED_SEARCH_PATH.
28 2010-08-28 Corinna Vinschen <corinna@vinschen.de>
30 * loadlib.h: New header implementing safe LoadLibrary calls.
31 Include throughout files using LoadLibrary function.
32 * cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via
33 GetModuleHandle, rather than using LoadLibrary.
34 * cygpath.cc (get_long_name): Ditto.
35 (do_sysfolders): Append .dll suffix in LoadLibrary call.
36 * ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES
37 to avoid loading malicious library code.
38 * locale.cc (print_locale_with_codeset): Change way to retrieve
41 2010-08-26 Corinna Vinschen <corinna@vinschen.de>
43 * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
44 harddisks, if available.
46 2010-08-21 Corinna Vinschen <corinna@vinschen.de>
48 * ldd.cc (report): Drop long pathname considerations which result in
49 invalid path, now that this is done in cygwin_conv_path.
51 2010-08-13 Corinna Vinschen <corinna@vinschen.de>
53 * mount.cc (from_fstab): Fix potentially fatal typo.
55 2010-08-11 Corinna Vinschen <corinna@vinschen.de>
57 * mount.cc (do_mount): Don't treat "bind" mount as remote mount.
58 (mount_entries): Drop the "bind" option from output.
59 * utils.sgml (mount): Match examples to actual mount output. Add
60 "bind" option and add example.
62 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
64 * mingw: Use sysroot, if present, for mingw_dir.
66 2010-07-21 Corinna Vinschen <corinna@vinschen.de>
68 * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.
69 (transform_chars): New function, copied from Cygwin.
70 (simple_nt_stat): New function to check file existance using native
71 NT function. Explain why.
72 (directory_exists): Call simple_nt_stat.
75 2010-07-05 Christopher Faylor <me+cygwin@cgf.cx>
77 * ldd.cc: Clean up formatting throughout.
80 (print_dlls): Reset head here. Record seen dll names so they will
81 not potentially be printed later.
82 (process_file): Remove clearing of head here.
84 2010-07-05 Corinna Vinschen <corinna@vinschen.de>
86 * dump_setup.cc (dump_file): Read requested content from setup.rc
87 file created by newer setup.exe.
89 2010-06-29 Corinna Vinschen <corinna@vinschen.de>
91 * utils.sgml (locale): Change stray local cygdrive prefix to Cygwin's
94 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
96 * utils.sgml (mount): Add description for "dos" and "ihash" mount
99 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
101 * path.cc: Include sys/cygwin.h if built for mount(1).
102 (struct opt): Add "dos" and "ihash" options.
103 (from_fstab_line): Call cygwin_internal rather than read_flags if
106 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
108 * mount.cc (oopts): Remove entirely.
109 (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
111 (print_version): Fix copyright date.
112 (main): Replace option processing loop with single call to
113 cygwin_internal (CW_CVT_MNT_OPTS).
115 2010-04-28 Corinna Vinschen <corinna@vinschen.de>
117 * locale.cc (print_lc_xxx_charset): Remove.
118 (enum type_t): Change according to the fact that nl_langinfo now returns
119 all locale category values.
120 (lc_ctype_names): Add new category members. Redefine for exclusive
122 (lc_numeric_names): Ditto.
123 (lc_time_names): Ditto.
124 (lc_collate_names): Ditto.
125 (lc_monetary_names): Ditto.
126 (lc_messages_names): Ditto.
127 (print_lc): Change switch according to new type_t values.
129 2010-03-27 Corinna Vinschen <corinna@vinschen.de>
131 * locale.cc (print_charmaps): Add EUC-CN and GB2312.
133 2010-03-24 Corinna Vinschen <corinna@vinschen.de>
135 * regtool.cc (find_key): Fix allocation size of "value".
137 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
139 * locale.cc (add_locale_alias_locales): Always use loc_num at function
140 start to avoid confusing bsearch.
142 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
144 * locale.cc: Revert accidental checkin of unfinished changes.
146 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
148 * locale.cc (print_locale_with_codeset): Drop redundant name parameter.
149 Simplify creating locale string. Add "@" in case of a modifier.
150 (print_locale): Drop name parameter in calls to
151 print_locale_with_codeset.
153 2010-02-25 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
155 * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.
157 2010-02-25 Corinna Vinschen <corinna@vinschen.de>
159 * utils.sgml (locale): Change description of -a and -av to match
162 2010-02-23 Corinna Vinschen <corinna@vinschen.de>
164 * locale.cc (printlocale): Remove.
165 (loc_t): New type to keep locale information for printing.
166 (print_codeset): New function to print codeset as on Linux.
167 (print_locale_with_codeset): New function to print single locale.
168 Print verbose style as the Linux locale(1) tool.
169 (print_locale): New function to print single locale plus its UTF-8
170 variation, if available.
171 (compare_locales): New helper function for bsearch and qsort on loc_t.
172 (add_locale): New function to store locale in loc_t array.
173 (add_locale_alias_locales): New function to store locales from
174 locale.alias file in loc_t.
175 (print_all_locales): Call add_locale instead of printlocale.
176 Call add_locale_alias_locales, sort locales alphabetically and print
179 2010-02-22 Christopher Faylor <me+cygwin@cgf.cx>
181 * strace.cc (mnemonic_table): Add "special" mask option.
182 (usage): Document it.
185 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
187 * cygpath.cc (do_pathconv): Fix erroneously printing native NT path
188 prefix introduced by previous patch.
190 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
192 * locale.cc (lc_time_names): Add "date_fmt" entry.
194 2010-02-19 Christopher Faylor <me+cygwin@cgf.cx>
196 * strace.cc (mnemonic_table): Add pthread mask option.
197 (usage): Document strace pthread mask option.
200 2010-02-19 Corinna Vinschen <corinna@vinschen.de>
202 * locale.cc (print_lc_mstrings): New function to print
203 semicolon-separated strings.
204 (enum type_t): New type is_sepstrings_linf.
205 (lc_time_names): Change type of era and alt_digits entry to
207 (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings
210 2010-02-17 Corinna Vinschen <corinna@vinschen.de>
212 * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.
213 * getlocale.c: Rename to ...
214 * locale.cc: Revamp to add full functionality of POSIX locale(1) tool,
215 as far as Cygwin supports it.
216 * utils.sgml (getlocale): Move and rename to ...
217 (locale): Accommodate new functionality.
219 2010-02-13 Ilguiz Latypov <ilatypov@infradead.org>
221 * cygpath.cc (do_pathconv): Fix potential crash.
223 2010-02-11 Corinna Vinschen <corinna@vinschen.de>
225 * getlocale.c (main): Rename local variable to avoid problems.
226 Avoid string comparisons, rather test language and sublanguage codes
227 wheere possible. Add more code to handle Serbian language/territory
228 state identical on all Windows versions. Fix handling for "@latin"
229 modifier in Belarusian locale.
230 * utils.sgml (getlocale): Try to make wording and example clearer.
232 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
234 * getlocale.c (usage): Change text slightly.
236 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
238 * getlocale.c (main): Restrict -a loop to avoid psudo language entries
241 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
243 * getlocale.c (main): Revamp -a loop to avoid duplicates and to print
244 locales with the correct, supported modifiers.
246 2010-01-25 Corinna Vinschen <corinna@vinschen.de>
248 * getlocale.c (main): Use setlocale and fetch string from Windows
249 using GetLocaleInfoW. Explain why.
251 2010-01-22 Corinna Vinschen <corinna@vinschen.de>
253 * Makefile.in (CYGWIN_BINS): Add getlocale.
254 * getlocale.c: New file.
255 * utils.sgml (getlocale): New section describing new getlocale tool.
257 2010-01-16 Corinna Vinschen <corinna@vinschen.de>
259 * cygpath.cc (get_mixed_name): Drop function. Replace with call to
260 convert_slashes throughout.
261 (do_sysfolders): Free allocated buffer.
262 (do_pathconv): Fix freeing last buffer.
264 2010-01-11 Corinna Vinschen <corinna@vinschen.de>
266 * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
268 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
270 * cygpath.cc: Throughout, free obsolete path buffers.
272 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
274 * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
275 Revert usage of argz functions when reading input from file and
276 simplify option usage. Allow only one option argument and use
277 the rest as filename argument to allow spaces in filenames. Restrict
278 processing special folder type options to one line.
280 2009-12-17 Christopher Faylor <me+cygwin@cgf.cx>
282 * ps.cc (main): Return 0 if pid found.
284 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
286 * regtool.cc: Throughout, convert all registry calls to wide char
287 calls and use string conversion according to current locale.
288 (longopts): Change "dword-le" to "dword-be", as was originally
290 (usage): Change usage accordingly.
291 (print_version): Simplify copyright dates in output.
292 (cmd_list): Handle REG_LINK like REG_SZ.
294 (main): Call setlocale.
295 * utils.sgml (regtool): Fix options and add missing descriptions for
298 2009-11-29 Corinna Vinschen <corinna@vinschen.de>
300 * setfacl.c (getaclentry): Allow to delete default entries for the
301 owner and owner group.
303 2009-11-27 Corinna Vinschen <corinna@vinschen.de>
305 * cygcheck.cc (dump_sysinfo): Fix typo in products.
307 2009-11-11 Corinna Vinschen <corinna@vinschen.de>
309 * getfacl.c (print_version): Fix copyright.
310 (main): Don't reuse local variables confusingly. Don't print any file
311 information if acl() fails. Improve error message. Always print a
312 trailing empty line. Set return code to 2 if accessing some file fails.
314 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
316 * path.cc (read_mounts): Skip unnecessary test if path has been
317 fetched from loaded cygwin1.dll.
319 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
321 * cygcheck.cc (cygwin_dll_path): New global variable.
322 (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path.
323 * strace.cc: Full ditto.
324 * path.cc (read_mounts): First use the path stored in cygwin_dll_path,
325 if available. Then fall back to fetching own path. Add comment.
326 Drop printing warnings since they look funny in strace output.
328 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
330 * path.cc (read_mounts): First get installation path from own path.
331 Check if cygwin1.dll exists in same directory. Only if not, try to
332 get installation path from setup registry key. Add ample warnings.
334 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
336 * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.
338 2009-10-31 Corinna Vinschen <corinna@vinschen.de>
340 * cygcheck.cc: Include cygprops.h.
341 (del_orphaned_reg): New option variable.
342 (unique_object_name_opt): Ditto.
343 (handle_reg_installation): New function.
344 (print_reg_installations): Ditto.
345 (del_orphaned_reg_installations): Ditto.
347 (handle_unique_object_name): Ditto.
348 (dump_sysinfo): Call print_reg_installations from here.
349 (usage): Add usage for new options --delete-orphaned-installation-keys,
350 --enable-unique-object-names, --disable-unique-object-names, and
351 --show-unique-object-names.
352 (longopts): Add new options --delete-orphaned-installation-keys,
353 --enable-unique-object-names, --disable-unique-object-names, and
354 --show-unique-object-names.
355 (main): Handle new options.
356 * utils.sgml (cygcheck): Change documentaion accordingly.
358 2009-10-28 Corinna Vinschen <corinna@vinschen.de>
360 * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWIN
361 environment variable.
362 (dump_sysinfo): Don't tweak CYGWIN environment variable, just call
365 2009-10-20 Corinna Vinschen <corinna@vinschen.de>
367 * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
369 2009-10-15 Corinna Vinschen <corinna@vinschen.de>
371 * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
373 (get_user_folder): Remove.
374 (do_sysfolders): Use get_special_folder instead of get_user_folder.
375 Fetch system paths as WCHAR and convert using my_wcstombs.
377 2009-10-12 Corinna Vinschen <corinna@vinschen.de>
379 * kill.cc (main): Skip to PID loop on invalid option to handle
382 2009-08-11 Corinna Vinschen <corinna@vinschen.de>
384 * mkgroup.c (enum_local_groups): Avoid error message if given group
385 name isn't found and return 0 to allow searching to proceed. Always
386 return 0 or 1, not -1.
387 (enum_groups): Avoid error message if given group name isn't found.
388 * mkpasswd.c (enum_users): Ditto.
390 2009-08-10 Dave Korn <dave.korn.cygwin@gmail.com>
392 * mingw: Add fallbacks to search for MinGW components in standard
393 install locations if not found in compiler's $prefix.
395 2009-08-09 Corinna Vinschen <corinna@vinschen.de>
397 * mount.cc (do_mount): Don't exit, just return.
399 2009-07-23 Corinna Vinschen <corinna@vinschen.de>
401 * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
404 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
406 * mount.cc (do_mount): Replace --no-executable flag with notexec
407 mount option in hint for remote filesystems.
408 * path.cc (getmntent): Fix typo (noexec -> notexec).
410 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
412 * Makefile.in (path-mount.o): Add a rule to build stripped down version
413 of path.cc for usage in mount.
414 (mount.exe): Add dependency to path-mount.o.
415 * mount.cc (force): Convert to bool value. Accommodate throughout.
416 (from_fstab): New function.
417 (do_mount_from_fstab): New function.
418 (longopts): Add --all option.
419 (opts): Add -a option.
420 (usage): Document -a/--all option.
421 (main): Handle -a option as well as single parameter.
422 * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
423 (mount_table): Remove static storage class.
424 (max_mount_entry): Ditto.
425 (root_here): Unused. Remove.
426 (from_fstab_line): Remove static.
427 * path.h (struct mnt_t): Define here rather than in path.cc.
428 (from_fstab_line): Declare.
429 (mount_table): Declare.
430 (max_mount_entry): Declare.
431 * utils.sgml (mount): Document -a/--all option and mounting of single
432 path from fstab files.
434 2009-07-15 Corinna Vinschen <corinna@vinschen.de>
436 * strace.cc (main): Open trace output file in UNIX mode.
438 2009-07-13 Corinna Vinschen <corinna@vinschen.de>
440 * cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.
442 2009-07-04 Christopher Faylor <me+cygwin@cgf.cx>
444 * cygwin-console-helper.cc: New file.
446 2009-06-10 Corinna Vinschen <corinna@vinschen.de>
448 * path.cc (oopts): Sort alphabetically, add missing "auto" and
450 (from_fstab_line): Handle mount points same as Cygwin itself. Use
451 "cygdrive prefix" as posix name of cygdrive prefix.
452 (from_fstab): Add auto entries for /usr/bin and /usr/lib. Add
453 MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
454 Use "cygdrive prefix" as posix name of default cygdrive prefix.
455 (getmntent): Allocate smaller buffers. Align output closer to output
458 2009-05-17 Corinna Vinschen <corinna@vinschen.de>
460 * cygpath.cc (codepage): New variable.
461 (long_options): Add --codepage option.
462 (options): Add -C option.
463 (usage): Add -C/--codepage description.
464 (my_wcstombs): New function. Use througout instead of wcstombs.
465 (do_options): Handle -C/--codepage option.
466 * utils.sgml (cygpath): Add description for new -C/--codepage option.
468 2009-05-16 Corinna Vinschen <corinna@vinschen.de>
470 * Makefile.in (cygpath.exe): Link against cygwin.a before linking
471 against ntdll.dll to avoid linking symbols defined in both DLLs
475 2009-05-15 Corinna Vinschen <corinna@vinschen.de>
477 * cygpath.cc (main): Only setlocale for LC_CTYPE category. Fallback
478 to UTF-8 if locale is "C".
479 * ldd.cc (main): Ditto.
480 * mkgroup.c (main): Ditto.
481 * mkpasswd.c (main): Ditto.
482 * passwd.c (main): Ditto.
484 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
485 Christopher Faylor <me+cygwin@cgf.cx>
487 * mount.cc (oopts): Sort. Add override option. Add dummy "auto"
488 option for consistency.
489 (mount_entries): Avoid adding auto-mounted entries to -m output.
491 * utils.sgml: Sort mount options. Add description of override option.
493 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
495 * Makefile.in: Link ps.exe agains ntdll.dll.
496 * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes
497 have to be enumerated. Workaround EnumProcessModules problem when
498 running under WOW64 and use NtQueryInformationProcess to fetch
501 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
503 * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generate
506 * mkgroup.c: Accommodate ctype changes.
511 2009-05-04 Christopher Faylor <me+cygwin@cgf.cx>
513 * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if
514 find_on_path doesn't find the app on the path.
516 2009-05-04 Corinna Vinschen <corinna@vinschen.de>
518 * cygcheck.cc (usage): Fix option order and print.
520 2009-04-22 Christopher Faylor <me+cygwin@cgf.cx>
522 * strace.cc (create_child): Set CYGWIN=noglob when starting new process
523 so that Cygwin will leave already-parsed the command line alonw.
525 2009-04-15 Corinna Vinschen <corinna@vinschen.de>
527 * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
528 given. Do backslash to slash conversion for mixed paths after
529 handling \\?\ prefix.
531 2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
533 * Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.
535 2009-04-07 Corinna Vinschen <corinna@vinschen.de>
537 * path.cc (readlink): Accommodate new UTF-16 symlinks.
539 2009-04-03 Kevin Buettner <kevinb@redhat.com>
541 * utils.sgml: Various syntactical and semantical fixes.
542 * cygcheck.cc (usage): Fix --find-package explanation.
544 2009-03-26 Yaakov Selkowitz <yselkowitz@cygwin.com>
546 * utils.sgml (passwd -R): Remove references to CYGWIN="server".
548 2009-03-24 Corinna Vinschen <corinna@vinschen.de>
550 * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
551 * strace.cc (proc_child): Ditto.
552 * ldd.cc: Remove now useless undef wcscasecmp.
554 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
556 * passwd.c (usage): Change description for -d option according to
559 * utils.sgml: Add missing description for passwd -d option.
561 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
563 * passwd.c (caller_is_admin): New function to test if calling user
564 is an administrator by inspecting user token.
565 (main): Drop fetching caller info from logonserver. Only fetch
566 server from environment when trying to change password for own
567 account. Drop admin check entirely in case of doing account
568 maintainance. Otherwise replace check for admin by result of
569 caller_is_admin call.
571 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
573 * passwd.c (main): Always get logonserver from environment and
574 use when fetching user info for caller.
576 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
578 * ldd.cc: Fix compiler warning.
580 * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
581 (main): Call setlocale. Fix a bug in fetching the logon server from
584 2009-03-18 Christopher Faylor <me+cygwin@cgf.cx>
588 2009-03-17 Christopher Faylor <me+cygwin@cgf.cx>
590 * ldd.cc (load_dll): Start helper program rather than ldd.exe.
591 (set_entry_point_break): Rename from get_entry_point.
592 (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing
593 specific dll name if we're looking at a dll.
594 (report): Always dump dlls on process exit. Don't allow thread
595 creation. Accommodate get_entry_point rename.
596 (start_process): Start process with DEBUG_ONLY_THIS_PROCESS.
597 (longopts): Eliminate "dll" option.
600 2009-03-17 Corinna Vinschen <corinna@vinschen.de>
601 Christopher Faylor <me+cygwin@cgf.cx>
603 * ldd.cc: Use wide character Win32 paths throughout.
604 (load_dll): Fix size expression (add fn) in realloc.
606 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
608 * ldd.cc (longopts): Add --dll option.
609 (get_module_filename): Generalized wrapper function which avoid path
611 (load_dll): Handle special-case of inspecting a DLL.
612 (start_process): Accept an output parameter "isdll". Detect when file
613 to start is a DLL and start a wrapper instead.
614 (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
615 everything before the DLL itself first appears. (This is not strictly
616 correct and should be fixed eventually)
617 (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let
618 captive ldd process terminate normally. Pass dll info to
619 print_dlls_and_kill_inferior.
620 (main): Handle special-case "--dll" option by loading the DLL and
623 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
625 * path.cc (from_fstab): Use wcstombs/mbstowcs instead of
626 WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
628 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
630 * wide_path.h (class wide_path): New class to convert Windows path
631 to WCHAR win32 path, including long path conversion if necessary.
632 * cygcheck.cc: Use class wide_path throughout to call Win32 functions
633 taking potentially long filenames.
634 (display_error): Use snprintf rather than sprintf.
635 (display_error_fmt): Ditto.
636 (dump_sysinfo): Use FindFirstFileW/FindNextFileW.
637 * cygpath.cc: Use class wide_path throughout to call Win32 functions
638 taking potentially long filenames.
639 (get_device_name): Raise buffer size to take long pathnames.
640 (get_short_paths): Convert to using GetShortPathNameW.
641 (get_short_name): Ditto.
642 (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW.
643 (get_long_name): Convert to using GetLongPathNameW.
644 (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX.
645 (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t
646 Win32 path name and drop long pathname prefix if possible.
647 (main): Call setlocale to accommodate wide char/multibyte conversions.
649 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
651 * ldd.cc: Rework to detect missing DLLs.
652 (start_process): Change to expect windows filename as input.
653 (tocyg): New function - convert cygwin fn to windows fn.
654 (print_dlls_and_kill_inferior): Accept extra argument denoting whether
655 to open input and look for nonexistent DLLs. Use tocyg to convert
656 filename and pass it to start_process.
657 (report): Flag when an DLL-not-found exception occurs and pass this
658 information to print_dlls_and_kill_inferior.
659 (filelist): New structure.
660 (saw_file): New function.
661 (dump_import_directory): Ditto.
663 (skip_dos_stub): Ditto.
664 (get_directory_index): Ditto.
665 (process_file): Ditto.
667 2009-03-09 Corinna Vinschen <corinna@vinschen.de>
669 * utils.sgml: Fix typo.
671 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
673 * cygcheck.cc (usage): Fix typo.
675 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
677 * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
678 as example cygdrive prefix. Remove reference to -u and -s options.
679 Add an example using the -o flag.
681 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
683 * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
686 2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
688 * Makefile.in: Add DESTDIR functionality.
690 2009-01-29 Corinna Vinschen <corinna@vinschen.de>
692 * cygcheck.cc (dump_sysinfo): Evaluate and print state of
693 obcaseinsensitive kernel flag.
695 2009-01-21 Corinna Vinschen <corinna@vinschen.de>
697 * passwd.c: Remove CYGWIN=server requirement from usage text.
699 2009-01-17 Corinna Vinschen <corinna@vinschen.de>
701 * Makefile.in: Fix copyright date.
702 * cygcheck.cc (scan_registry): Take additional parameter and add code
703 to avoid recursion in Wow6432Node subkey. Rename variable cygnus to
704 cygwin. Scan for "Cygwin" instead of for "cygnus" substring.
705 (dump_sysinfo): Drop unused calls to scan_registry. Drop scanning
708 2009-01-16 Corinna Vinschen <corinna@vinschen.de>
710 * cygcheck.cc (dump_sysinfo): Raise size of osname. Add Windows 7
711 and Windows 2008 R2 as recognized OSes. Update products array to
712 the latest documented list.
714 2009-01-09 Christopher Faylor <me+cygwin@cgf.cx>
716 * ldd.cc: New file. First stab at implementing ldd-like functionality
718 * Makefile.in (CYGWIN_BINS): Add ldd.
719 (ldd.exe): Use -lpsapi.
721 2009-01-05 Pierre Humblet <Pierre.Humblet@ieee.org>
723 * cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
725 2008-12-30 Pierre Humblet <Pierre.Humblet@ieee.org>
727 * cygcheck.cc (pretty_id): Quote the path for popen.
728 (dump_sysinfo_services): Ditto.
730 2008-12-16 Corinna Vinschen <corinna@vinschen.de>
732 * utils.sgml: Fix typo in passwd screen text.
734 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
736 * passwd.c (main): Put how to delete the registry password on its own
737 line in passwd -R output.
739 2008-12-13 Christopher Faylor <me+cygwin@cgf.cx>
741 * utils.sgml: Convert some backslashes to slashes.
743 2008-11-26 Corinna Vinschen <corinna@vinschen.de>
745 * passwd.c (longopts): Add --reg-store-pwd option.
746 (opts): Add -R option.
747 (usage): Add text for -R/--reg-store-pwd option.
748 (main): Fix size of local user and password string arrays.
750 * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
752 2008-10-29 Christopher Faylor <me+cygwin@cgf.cx>
754 * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything
757 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
759 * mingw: Set sawcfile when -xc* is detected. Extend list of detected
762 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
764 * mingw: Add more checks to allow more varied use.
766 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
768 * mingw: Use a better method to find where mingw directory lives.
770 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
772 * mingw: New front-end script to control building of MinGW files
773 without using the deprecated -mno-cygwin option.
774 * Makefile.in: Use mingw front-end.
776 2008-09-12 Christopher Faylor <me+cygwin@cgf.cx>
778 * cygcheck.cc (pathlike::check_existence): Remove class name from
780 (display_internet_error): Use proper format specifier for DWORD.
781 (environ): Remove unneeded declaration.
782 (main): Use brace around nested if to avoid an overly-helpful compiler
784 * dump_setup.cc (parse_filename): Reorganize nested if to avoid an
785 overly-helpful compiler warning.
786 * path.cc (GUID_shortcut): Use braces around part of initializer which
788 (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a
790 (struct opt): Make static.
791 * ps.cc (main): Reorganize nested if to avoid an overly-helpful
793 * regtool.cc: Make some anonymous structs static to avoid a compiler
795 * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
797 * strace.cc (add_child): Use proper format specifier for DWORD.
798 (remove_child): Ditto.
801 2008-08-27 Christopher Faylor <me+cygwin@cgf.cx>
803 * cygcheck.cc (nuke): Use malloc rather than alloca for environment
805 (load_cygwin): Ditto.
806 * dump_setup.cc (parse_filename): Cosmetic changes.
807 (get_packages): Ditto.
809 2008-08-25 Corinna Vinschen <corinna@vinschen.de>
811 * mkgroup.c (enum_local_groups): Don't skip printing groups when
812 print_current is set and group SID is not curr_pgrp.
813 (enum_groups): Ditto.
814 (main): Fix condition when SYSTEM group gets printed.
815 * mkpasswd.c (enum_users): Don't skip printing users when print_current
816 is set and user SID is not curr_user.
817 (main): Allow printing standard accounts even when print_current is set.
819 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
821 * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
822 if a group exists, rather than just allocating a buffer and going ahead.
824 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
826 * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
827 as argument when LookupAccountXXX failed.
828 (enum_groups): Ditto.
830 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
832 * mkgroup.c (enum_local_groups): Return failure if looking for a single
833 group succeeded. Add comment.
835 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
837 * mkgroup.c (main): Keep correctly track of optional arguments.
838 * mkpasswd.c (main): Ditto.
840 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
842 * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
843 Keep track of optional argumnts and fix up optind afterwards.
844 * mkpasswd.c (main): Ditto.
846 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
848 * cygcheck.cc (print_version): Update copyright dates.
850 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
852 * mkpasswd.c (main): Avoid printing system accounts when a single user
853 name has been requested.
855 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
857 * Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet
859 * mkgroup.c: Change all global variables and most functions to static.
860 (enum_local_groups): Add a print_current parameter to control whether
861 entries for everything should be printed or just the current user.
862 (enum_groups): Ditto.
863 (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL
864 deference when no command line arguments are specified. Accommodate
865 argument changes to above functions. Avoid printing SYSTEM account
866 when print_current is specified. Issue error when extra stuff is found
868 * mkpasswd.c: Change all global variables and most functions to static.
869 (enum_users): Add a print_current parameter to control whether entries
870 for everything should be printed or just the current user.
871 (main): Move call fetch_current_user_sid earlier to avoid a NULL
872 deference when no command line arguments are specified. Accommodate
873 argument change to above function. Avoid printing standard accounts
874 when print_current is specified. Issue error when extra stuff is found
877 2008-08-15 Corinna Vinschen <corinna@vinschen.de>
879 * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
880 group SID from user token.
881 (current_group): Move up in file. Move fetching primary group SID to
882 fetch_current_pgrp_sid.
883 (enum_local_groups): Check if current SID is the same as current user's
885 (enum_groups): Ditto.
886 (main): Call fetch_current_pgrp_sid before enumerating groups. Call
887 current_group only if current group hasn't been enumerated already.
888 * mkpasswd.c (fetch_current_user_sid): New function to fetch current
889 user SID from user token.
890 (current_user): Move fetching current user SID to
891 fetch_current_user_sid.
892 (enum_users): Check if current SID is the same as current user's SID.
893 (main): Call fetch_current_user_sid before enumerating users. Call
894 current_user only if current user hasn't been enumerated already.
896 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
898 * mount.cc (NT_MAX_PATH): Define.
899 (longopts): Rename mount-commands option to mount-entries.
900 (opts): Remove removed options.
901 (struct opt): Move up in file to allow using it in usage.
902 (usage): Change text for --mount-entries option. Remove
903 -X option. Add valid options output.
904 (main): Remove handling -b option.
905 (convert_spaces): New static function to convert spaces to "\040"
907 (mount_entries): Renamed from mount_commands. Rewrite to emit
908 /etc/fstab compatible output.
909 (show_cygdrive_info): Print "nouser" rather than "system".
910 * umount.cc (longopts): Remove remove-all-mounts,
911 remove-cygdrive-prefix, remove-system-mounts, system and user options.
912 (opts): Remove A, c, s, S, u options.
913 (usage): Remove text for all removed options.
914 (main): Remove handling for all removed options.
915 (remove_all_mounts): Remove.
916 (remove_all_system_mounts): Remove.
917 (remove_cygdrive_prefix): Remove.
918 * utils.sgml: Fix mount and umount documentation. Move description
919 of (cyg,not)exec options to mount table section.
921 2008-08-04 Christopher Faylor <me+cygwin@cgf.cx>
923 * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears
924 when cygwin1.dll is unloaded.
926 2008-07-30 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
928 * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
930 2008-07-27 Christopher Faylor <me+cygwin@cgf.cx>
932 * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with
935 2008-07-25 Christopher Faylor <me+cygwin@cgf.cx>
937 * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
938 (oopts): Use boolean constants for slightly increased clarity.
940 * configure.in: Remove apparently unneeded program_transfer_name code.
941 * configure: Regenerate.
943 2008-07-24 Corinna Vinschen <corinna@vinschen.de>
945 * utils.sgml: Remove useless text.
947 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
949 * mkgroup.c (main): Fix test for duplicate domain/machine request.
950 * mkpasswd.c (main): Ditto.
952 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
954 * mkgroup.c: Rework to allow per-domain/per-machine id_offset.
955 Add -b option to skip builtin groups.
956 (main): Simplify code.
957 * mkpasswd.c: Rework to allow per-domain/per-machine id_offset.
958 (main): Simplify code.
959 * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options.
960 Add mkgroup -b option.
962 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
964 * mkgroup.c: Consolidate variable names.
965 (enum_unix_groups): New function.
966 (print_special): Use LookupAccountSidW instead of LookupAccountSidA.
967 (current_group): Ditto.
968 (usage): Add -U option.
969 (longopts): Add --unix option.
970 (opts): Add -U option.
971 (main): Handle -U option. Call enum_unix_groups if set.
972 * mkpasswd.c: Consolidate variable names.
973 (current_user): Use LookupAccountSidW instead of LookupAccountSidA.
974 (enum_unix_users): New function.
975 (usage): Add -U option.
976 (longopts): Add --unix option.
977 (opts): Add -U option.
978 (main): Handle -U option. Call enum_unix_groups if set.
979 * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
981 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
983 * mkgroup.c (enum_groups): Create full qualified groupname using
984 domain or servername, depending on printing domain or machine accounts.
985 * mkpasswd.c (enum_users): Ditto for users.
987 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
989 * mkgroup.c (main): Remove special root group code. Only print
990 SYSTEM group in case of printing local machine or local domain groups.
992 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
994 * Makefile.in (cygcheck.exe): Link against ntdll.
995 * bloda.cc: Use statically linked functions throughout.
996 * cygpath.cc: Drop 9x considerations.
997 * mkgroup.c: Revamp. Redefine -l and -d options to take optional
998 machine and domain parameters. Redefine -c to work always, using
999 token information. Add -L, -D, -C to create unique groupnames in
1000 domain\group syntax. Add -S option to define domain\group separator
1001 char. Ignore -u and -s options.
1002 * mkpasswd.c: Revamp. Redefine -l and -d options to take optional
1003 machine and domain parameters. Redefine -c to work always, using
1004 token information. Add -L, -D, -C to create unique usernames in
1005 domain\user syntax. Add -S option to define domain\user separator
1006 char. Ignore -g and -s options. Prefer to take homedir from $HOME
1007 over $HOMEDRIVE/$HOMEPATH.
1008 * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options.
1009 (getmntent): Accomodate throughout.
1010 * ps.cc: Fix copyright dates.
1011 * utils.sgml: Fix text for mkgroup and mkpasswd.
1013 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
1015 * mount.cc (do_mount): Remove MOUNT_ENC code.
1016 (oopts): Remove "managed" option.
1017 (mount_commands): Drop "managed" handling.
1018 * path.cc (oopts): Remove "managed" option.
1019 (getmntent): Remove MOUNT_ENC code.
1021 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
1023 * utils.sgml: Add id's to all examples.
1025 2008-07-09 Corinna Vinschen <corinna@vinschen.de>
1027 * mkgroup.c: Use statically linked functions throughout, except for
1028 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1029 Use defines instead of constants throughout.
1030 (MAX_SID_LEN): Define.
1031 (load_netapi): Just load DsGetDcNameW pointer.
1034 (enum_local_users): Take server name and use in Net... call.
1035 (DBGSID): Define datastructure.
1036 (MAX_BUILTIN_SIDS): Define.
1037 (builtin_sid_list): Define global sid list.
1038 (builtin_sid_cnt): Define counter for global sid list.
1039 (enum_local_groups): Take server name and use in Net... and Lookup...
1040 calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to
1041 NetLocalGroupEnum. Check for duplicate builtin groups.
1042 (enum_users): Take server name and use in Net... call.
1043 (usage): Change text slightly.
1044 (print_version): Fix copyright.
1045 (main): Call enum_local_groups for domains as well.
1046 * mkpasswd.c: Use statically linked functions throughout, except for
1047 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1048 Use defines instead of constants throughout.
1049 (MAX_SID_LEN): Define.
1050 (load_netapi): Just load DsGetDcNameW pointer.
1051 (uni2ansi): Use wcstombs.
1052 (current_user): Replace "unused_by_nt/2000/xp" by
1054 (enum_users): Ditto.
1055 (print_version): Fix copyright.
1057 2008-05-22 Corinna Vinschen <corinna@vinschen.de>
1059 * setfacl.c (setfacl): Change from void to int. Return 2 in case of
1061 (main): Return with error code from setfacl.
1063 2008-05-15 Corinna Vinschen <corinna@vinschen.de>
1065 * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.
1069 2008-03-23 Corinna Vinschen <corinna@vinschen.de>
1071 * mount.cc (usage): Mark -s and -u as ignored.
1072 (print_version): Simplify printing copyright dates.
1073 (main): Remove default_flag. Dont set flags on -s and -u options.
1074 (mount_commands): Drop handling -s and -u options.
1076 2008-03-22 Corinna Vinschen <corinna@vinschen.de>
1078 * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
1079 * path.cc: Fetch mount points from fstab files instead of from
1080 registry. Use adapted functions copied from Cygwin DLL.
1081 (mnt_t): Drop issys member. Define as "mnt_t" instead of "struct mnt_t"
1083 (max_mount_entry): New variable.
1084 (unconvert_slashes): Move to earlier location in file. Make inline.
1086 (get_cygdrive0): Remove.
1087 (get_cygdrive): Remove.
1088 (skip_ws): New function.
1090 (conv_fstab_spaces): Ditto.
1091 (read_flags): Ditto.
1092 (from_fstab_line): Ditto.
1094 (from_fstab): Ditto.
1096 (read_mounts): Drop old registry code. Fetch
1097 "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key. Use
1098 rootdir extracted from module path as fallback. Call from_fstab for
1099 nouser and user mount points.
1100 (setmntent): Check max_mount_entry to test if read_mounts must be
1102 (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
1104 2008-03-16 Brian Dessent <brian@dessent.net>
1106 * path.cc: Include malloc.h for alloca.
1107 (is_symlink): Rewrite. Just read the whole file in memory rather
1108 than by parts. Account for an ITEMIDLIST if present, as well as
1109 the new style of Cygwin shortcut supporting targets > MAX_PATH.
1111 2008-03-12 Corinna Vinschen <corinna@vinschen.de>
1113 * cygpath.cc (do_sysfolders): Use cygwin_conv_path.
1114 (do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list.
1115 * dumper.cc (main): Use cygwin_conv_path. Allocate target path
1117 * mkpasswd.c (current_user): Use cygwin_conv_path.
1118 (enum_users): Ditto.
1119 * ps.cc (NT_MAX_PATH): Define.
1120 (main): Use cygwin_conv_path.
1121 * regtool.cc (find_key): Ditto. Allocate target path dynamically.
1124 2008-03-11 Brian Dessent <brian@dessent.net>
1126 * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
1129 2008-03-11 Brian Dessent <brian@dessent.net>
1131 * cygcheck.cc (dirname): New static function.
1132 (find_app_on_path): Use SYMLINK_MAX. Resolve symlink relative
1133 to link's location. Adjust to the fact that cygpath already
1134 normalizes its return value.
1135 * path.cc (rel_vconcat): Add cwd parameter, and use it instead
1136 of calling GetCurrentDirectory() if possible. Rename throughout.
1137 (vcygpath): Rename from cygpath and accept cwd and va_list. Pass
1138 cwd on to rel_vconcat().
1139 (cygpath_rel): New front end for vcygpath.
1141 * path.h (cygpath_rel): Declare.
1142 (SYMLINK_MAX): Define to 4095.
1144 2008-03-09 Brian Dessent <brian@dessent.net>
1146 * Makefile.in (install): Don't install the testsuite.
1148 2008-03-08 Brian Dessent <brian@dessent.net>
1150 * Makefile.in: Add a 'check' target that builds and runs
1151 testsuite.exe from path-testsuite.o and testsuite.o.
1152 * path.cc: Include testsuite.h.
1153 (struct mnt): Change to a mnt_t typedef and don't define
1154 mount_table when TESTSUITE is defined.
1155 (find2): Don't include when TESTSUITE is defined to avoid warning.
1156 (get_cygdrive0): Ditto.
1157 (get_cygdrive): Ditto.
1158 (read_mounts): Provide empty implementation when TESTSUITE is
1160 (vconcat): Use the isslash macro.
1161 (unconvert_slashes): New helper to convert to backslashses.
1162 (rel_vconcat): Handle relative paths more gracefully.
1163 (cygpath): Skip a leading "./" sequence. Avoid double-slashes.
1164 Normalize final output to backslashes and remove redundant path
1166 * testsuite.cc: New file implementing testsuite driver.
1167 * testsuite.h: New header implementing harness mount table and
1170 2008-03-08 Brian Dessent <brian@dessent.net>
1172 * Makefile.in: Reorganize considerably, using GNU make's
1173 static pattern rules and target-specific variables.
1175 2008-02-28 Corinna Vinschen <corinna@vinschen.de>
1177 * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
1178 for LocalService and NetworkService accounts. Change comments.
1180 2008-01-13 Corinna Vinschen <corinna@vinschen.de>
1182 * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
1183 first. Load kernel32.dll earlier. Make osname a buffer. Simplify
1184 Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up
1185 non-Vista version info. Exit early if not on NT.
1187 2007-12-29 Dave Korn <dave.korn@artimi.com>
1189 * bloda.cc (enum bad_app): Add BYTEMOBILE.
1190 (dodgy_app_detects[]): Add FILENAME entry to detect bmnet.dll.
1191 (big_list_of_dodgy_apps[]): Add description for BYTEMOBILE.
1193 2007-12-20 Brian Dessent <brian@dessent.net>
1195 * Makefile.in (cygcheck.exe): Don't link to ntdll.
1196 * bloda.cc (pNtQuerySystemInformation): Add.
1197 (pRtlAnsiStringToUnicodeString): Add.
1198 (get_process_list): Use function pointers for NT functions.
1199 (dump_dodgy_apps): Skip dodgy app check on non-NT platforms.
1200 Use GetProcAddress for NT-specific functions.
1202 2007-12-07 Corinna Vinschen <corinna@vinschen.de>
1204 * regtool.cc (opts): Add missing 'W'.
1206 2007-12-06 Corinna Vinschen <corinna@vinschen.de>
1208 * ps.cc: Include limits.h.
1209 (main): Set file name buffer size to PATH_MAX. Use progname or
1210 progname_long member of struct external_pinfo dependent of the value of
1211 the struct's version member.
1213 2007-08-31 Dave Korn <dave.korn@artimi.com>
1215 * mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum
1216 call so that it will automatically size returned buffer sufficiently.
1218 2007-08-03 Dave Korn <dave.korn@artimi.com>
1220 * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
1221 dependency-filtering $(wordlist ...) call appropriately. Link ntdll.
1222 (bloda.o): New rule to build bloda.o
1223 * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps().
1224 * bloda.cc: New file implements detection of applications from the
1225 Big List Of Dodgy Apps.
1227 2007-07-24 Corinna Vinschen <corinna@vinschen.de>
1229 * COPYING.dumper: New file.
1230 * dumper.cc: Change license to plain GPLv2 + later.
1232 * parse_pe.cc: Ditto.
1234 2007-07-23 Christopher Faylor <me+cygwin@cgf.cx>
1236 * strace.cc (create_child): Don't convert a path from cygwin format
1237 unless it has a slash.
1239 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1241 * strace.cc (usage): Add missing description for -q.
1243 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1245 * Makefile.in (kill.exe): Remove reliance on libiberty.
1246 * kill.cc (strsigno): New function patterned after libiberty but using
1247 newly exported cygwin array.
1249 2007-06-03 Christopher Faylor <me+cygwin@cgf.cx>
1251 * cygcheck.cc (pathlike): New class.
1252 (paths): Redefine as type pathlike.
1253 (display_error): Declare a few different ways to allow more flexible
1255 (display_error_fmt): New function for those cases where C++ just isn't
1257 (add_path): Rewrite to allocate pathlike paths. Always tack on a
1258 trailing slash since that's what everyone who uses it wants. NULL
1259 terminate the path list. Register "it's a system path" field.
1260 (init_path): Call add_path with info regarding whether path is a system
1262 (pathlike::check_existence): Move into pathlike class. Accept file and
1263 extension arguments to build up path on the fly. Modify other
1265 (find_on_path): Constify return value and appropriate arguments.
1266 Eliminate short-circuit for fully-qualified paths. Simplify loop which
1268 (already_did): Constify argument.
1269 (track_down): Ditto. Regularize some error messages.
1270 (find_app_on_path): Ditto.
1271 (cygcheck): Constify argument. Use 20th century string handling
1273 (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case".
1274 Accommodate change of paths to pathlike.
1275 * path.cc (isslash): Rename from SLASH_P and use throughout.
1276 (rel_vconcat): Front-end to vconcat which prepends cwd to path before
1277 passing along for conversion to native windows.
1278 (cygpath): Remove "./" test. Call rel_vconcat if filename appears to
1281 2007-05-29 Pedro Alves <pedro_alves@portugalmail.pt>
1283 * dumper.cc (dumper::prepare_core_dump): Record a phdr for each section.
1285 2007-05-29 Corinna Vinschen <corinna@vinschen.de>
1287 * cygpath.cc (do_options): Allow outputflag combined with other
1288 basic flags. Only check options_from_file_flag if reading options
1290 (main): Check for NULL argz vector. Don't free argz vector prematurely.
1291 Don't force flag combination in !options_from_file_flag case.
1293 2007-05-23 Corinna Vinschen <corinna@vinschen.de>
1295 * cygpath.cc: Include argz.h.
1296 (options_from_file_flag): Move from main to global static variable.
1298 (do_sysfolders): Rename from dowin and accommodate throughout.
1299 Don't exit from here.
1300 (do_pathconv): Rename from doit and accommodate throughout.
1301 (print_version): Change copyright.
1302 (do_options): New function, centralizing option processing.
1303 Rework checking options for correctness.
1304 (action): New function, centralizing calling worker functions.
1305 (main): Simplify. Move option processing to do_options. Move calling
1306 worker functions to action. Rework getting arguments from files.
1308 2007-03-30 Mark Mitchell <mark@codesourcery.com>
1310 * utils/cygpath.cc (get_long_path_name_w32impl): Close handles returned
1313 2007-03-30 Christopher Faylor <me@cgf.cx>
1315 * mount.cc (main): Turn dos file warnings off since we know what we're
1318 2007-02-22 Corinna Vinschen <corinna@vinschen.de>
1320 * ipcs.c (_POSIX2_LINE_MAX): Drop definition.
1322 2007-02-20 Corinna Vinschen <corinna@vinschen.de>
1324 * cygcheck.cc (dump_sysinfo): Add "not supported" to osname on 9x
1325 machines. Drop "not supported" for Vista. Drop "Longhorn" text
1328 2007-01-09 Christian Franke <franke@computer.org>
1330 * cygpath.cc (usage): Add -O and -F, remove tabs.
1331 (get_special_folder): New function.
1332 (get_user_folder): New function.
1333 (dowin): Add -O and -F, better -D, -P error handling.
1334 (main): Add -O and -F.
1335 * utils.sgml (cygpath): Document -O and -F.
1337 2006-12-21 Corinna Vinschen <corinna@vinschen.de>
1339 * dumper.cc: Include ansidecl.h before including bfd.h to woraround
1340 a problem with the order in which system include files are included.
1342 2006-12-11 Christopher Faylor <me@cgf.cx>
1344 * dumper.cc: Add an include to accommodate new include/elf usage.
1346 2006-12-10 Christopher Faylor <me+cygwin@cgf.cx>
1348 * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and
1349 pass POSIX path directly - this avoids a cygwin DLL warning.
1351 2006-10-21 Corinna Vinschen <corinna@vinschen.de>
1353 * regtool.cc (key_type): Drop.
1355 (value_type): Replace key_type. Use REG_xxx values directly.
1356 Accomodate change throughout.
1357 (longopts): Add --dword, --dword-le, --none, --qword and --hex options.
1358 (opts): Add -d, -D, -n, -Q and -x options.
1359 (types): Array to convert REG_xxx into strings.
1360 (hex): New variable to keep value of --hex option.
1361 (usage): Accomodate new options. Print only the necessary by default.
1362 Only be verbose in case of -h/--help option.
1363 (cmd_list): Use key separator from -K option when printing.
1364 Print value type when verbose option is given. Handle so far not
1365 handled REG_xxx types.
1366 (cmd_set): Avoid SEGV due to missing argument. Handle so far not
1367 handled REG_xxx types.
1368 (cmd_get): Handle --binary option type agnostic. Handle so far not
1369 handled REG_xxx types.
1370 (main): Handle new options.
1372 2006-10-19 Corinna Vinschen <corinna@vinschen.de>
1374 * regtool.cc (longopts): Add --wow32 option.
1375 (opts): Add -W option.
1376 (usage): Add text for --wow32/-W option.
1377 (main): Handle --wow32/-W option.
1378 * utils.sgml: Document the new -W option.
1380 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1382 * regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define
1383 WINVER to 0x0502 before including windows.h.
1385 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1387 * regtool.cc (KEY_WOW64_64KEY): Define.
1388 (longopts): Add --wow64 option.
1389 (opts): Add -w option.
1390 (wow64): New variable to control usage of KEY_WOW64_64KEY access flag.
1391 (usage): Add text for --wow64/-w option.
1392 (print_version): Fix copyright.
1393 (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx.
1394 (cmd_add): Use wow64 value in call to RegCreateKeyEx.
1395 (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function
1397 (cmd_remove): Load and use regDeleteKeyEx when wow64 is set.
1398 (main): Handle --wow64/-w option.
1399 * utils.sgml: Document the new -w option.
1401 2006-10-05 Igor Peshansky <pechtcha@cs.nyu.edu>
1403 * cygcheck.cc (get_word, get_dword): Move to path.cc.
1404 (LINK_EXTENSION): New macro.
1405 (check_existence): New static function.
1406 (find_on_path): Check for symbolic links if asked.
1407 (dll_info): New error handling.
1408 (track_down): Only call dll_info() for executables, display
1409 an error for symlinks, and print magic number for others.
1410 (find_app_on_path): New static function.
1411 (cygcheck, dump_sysinfo): Call find_app_on_path() instead of
1413 * path.cc (cmp_shortcut_header): New static function.
1414 (get_word, get_dword): Moved from cygcheck.cc.
1415 (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New
1417 (is_exe, is_symlink, readlink): New functions.
1418 * path.h (is_exe, is_symlink, readlink): Declare.
1419 (get_word, get_dword): Ditto.
1421 2006-09-12 Christopher Faylor <cgf@timesys.com>
1423 * Makefile.in: Fix -ntdll typo.
1425 2006-09-11 Eric Blake <ebb9@byu.net>
1427 * cygcheck.cc (main): Restore POSIXLY_CORRECT before displaying user's
1430 2006-08-03 Corinna Vinschen <corinna@vinschen.de>
1432 * path.cc (vconcat): Don't convert backslahes to slashes.
1433 (cygpath): Return native path with all backslashes.
1435 2006-08-02 Corinna Vinschen <corinna@vinschen.de>
1437 * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.
1438 * cygpath.cc: Include DDK headers.
1439 (RtlAllocateUnicodeString): New static inline function.
1440 (get_device_name): New static function to evaluate DOS path from
1442 (get_device_paths): New function to do the same for path lists.
1443 (doit): Call get_device_paths/get_device_name where appropriate.
1445 2006-07-30 Ilya Bobir <ilya@po4ta.com>
1447 * cygpath.cc (get_long_name): Fallback to get_long_path_name_w32impl.
1449 2006-07-27 Corinna Vinschen <corinna@vinschen.de>
1451 * cygpath.c (get_long_name): Cover the case that GetLongPathName
1452 doesn't return valid information for non-existant files. Just return
1453 incoming filename in that case.
1455 2006-07-03 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
1457 * Makefile.in: Build setmetamode.exe.
1458 * setmetamode.c: New file.
1460 2006-05-24 Christopher Faylor <cgf@timesys.com>
1462 * configure.in: Update to newer autoconf.
1463 (thanks to Steve Ellcey)
1464 * configure: Regenerate.
1465 * aclocal.m4: New file.
1467 2006-05-24 Christopher Faylor <cgf@timesys.com>
1469 * strace.cc (proc_child): Propagate return code from child process.
1473 2006-03-03 Christian Franke <franke@computer.org>
1475 * regtool.cc (options): Add 'binary'.
1476 (usage): Document 'load|unload|save' and '-b'.
1477 (find_key): Add 'options' parameter, add load/unload.
1478 (cmd_set): Add KT_BINARY case.
1479 (cmd_get): Add hex output in KT_BINARY case.
1480 (cmd_load): New function.
1481 (cmd_unload): New function.
1482 (set_privilege): New function.
1483 (cmd_save): New function.
1484 (commands): Add load, unload and save.
1486 * utils.sgml (regtool): Document it.
1488 2006-02-17 Corinna Vinschen <corinna@vinschen.de>
1490 * cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrect
1492 (doit): Create mixed filename after converting to short or long pathname
1495 2006-02-17 Jerry D. Hedden <jerry@hedden.us>
1497 * ps.cc (main): Set aflag if -p option is given.
1499 2006-02-16 Jerry D. Hedden <jerry@hedden.us>
1501 * ps.cc (longopts): Add --process option.
1502 (opts): Add -p option.
1503 (usage): Mention -p/--process option.
1504 (main): Handle -p option.
1505 * utils.sgml: Describe -p/--process option.
1507 2006-02-15 Igor Peshansky <pechtcha@cs.nyu.edu>
1509 * regtool.cc (usage): Clarify help for "-K".
1511 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1513 * cygcheck.cc (find_on_path): Update copyright text.
1515 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1517 * cygcheck.cc (find_on_path): Create copy of rv on successful access
1518 check, since rv can be reused in subsequent calls.
1520 2006-01-19 Christopher Faylor <cgf@timesys.com>
1522 * cygcheck.cc (common_paths): Add "patch".
1524 2006-01-19 Christopher Faylor <cgf@timesys.com>
1526 * cygcheck.cc (init_paths): Record first_nonsys_path.
1527 (find_on_path): Start on first nonsys path when !search_sysdirs.
1529 2006-01-18 Christopher Faylor <cgf@timesys.com>
1531 * Makefile.in (sysconfdir): Remove unneeded variable.
1533 * mkgroup.c: Replace ` with ' throughout.
1534 * mkpasswd.c: Ditto.
1538 2006-01-18 Dave Korn <dave.korn@artimi.com>
1540 * cygpath.cc (dowin): Remove stray debugging printf statement.
1542 2006-01-17 Corinna Vinschen <corinna@vinschen.de>
1544 * Makefile.in: Replace etcdir with sysconfdir.
1546 2006-01-13 Brian Dessent <brian@dessent.net>
1548 * Makefile.in (cygcheck.exe): Do not link against libwininet.a.
1549 * cygcheck.cc (pInternetCloseHandle): Define global function pointer.
1550 (display_internet_error): Use it.
1551 (package_grep): Attempt to load wininet.dll at runtime. Call WinInet
1552 API through function pointers throughout.
1554 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1556 * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.
1558 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1560 * cygcheck.cc (dump_sysinfo): Convert osname to const and remove casts
1561 in subsequent assignments. Recognize Longhorn/Vista and report as not
1562 yet supported. Recognize when running under WOW64 and report native
1563 CPU type. Slightly rearrange \n printing.
1565 2006-01-12 Christopher Faylor <cgf@timesys.com>
1567 * cygcheck.cc: Replace ` with ' throughout.
1569 2006-01-05 Christopher Faylor <cgf@timesys.com>
1571 * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent
1574 2005-12-29 Christopher Faylor <cgf@timesys.com>
1576 * strace.cc (nprocesses): Make static global.
1577 (quiet): New variable.
1578 (strace_active): Ditto.
1579 (add_child): Increment nprocesses here. Don't add a child if it is
1580 already added (windows bug?). Report on child if not quiet.
1581 (get_child): Just return NULL if child not found.
1582 (remove_child): Report on child if not quiet.
1583 (attach_process): Don't complain if given a windows process. Use
1584 windows pid in error.
1585 (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about.
1586 Handle _STRACE_CHILD_PID - attach to reported child when we get this.
1587 (proc_child): Move nprocesses to file scope.
1588 Report on exceptions.
1589 (longopts): Implement "--quiet".
1590 (opts): Implement "-q".
1591 (main): Manipulate quiet flag.
1592 * utils.sgml (strace): Add words describing '-q'.
1594 2005-12-29 Christopher Faylor <cgf@timesys.com>
1596 * cygcheck.cc (common_apps): Add crontab, vi, vim.
1598 2005-12-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1600 * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".
1602 2005-12-14 Christopher Faylor <cgf@timesys.com>
1604 * cygcheck.cc (common_apps): Add a few more binaries to look for.
1606 2005-12-05 Christopher Faylor <cgf@timesys.com>
1608 * strace.cc (show_usecs): Renamed from 'usecs'.
1609 (main): Use show_usecs rather than usecs. Toggle delta if '-u' is
1611 (handle_output_debug_string): Avoid printing microsecond timestamp if
1613 * utils.sgml (strace): Add words to describe '-u'.
1615 2005-11-22 Brian Dessent <brian@dessent.net>
1617 * Makefile.in: Link cygcheck with libwininet.a.
1618 * cygcheck.cc: Add includes.
1619 (grep_packages): New global variable.
1620 (display_internet_error): New function.
1621 (safe_chars): New global variable.
1623 (package_grep): New function.
1624 (usage): Reword --help output for clarity. Document new argument.
1625 (longopts): Add 'package-query' option.
1626 (opts): Add 'p' option, reorder to be consistent with 'longopts'.
1627 (main): Accommodate new option.
1628 * utils.sgml (cygcheck): Update --help output. Document new -p option.
1630 2005-09-22 Corinna Vinschen <corinna@vinschen.de>
1632 Align error message handling to mkpasswd's error messages throughout.
1633 * mkgroup.c (print_win_error): Create macro calling ...
1634 (_print_win_error): ... this function created from former
1635 print_win_error. Move up in source.
1636 (PDOMAIN_CONTROLLER_INFOW): Define return type of DsGetDcNameW.
1637 (dsgetdcname): New function pointer for DsGetDcNameW.
1638 (load_netapi): Get DsGetDcNameW address.
1639 (main): If DsGetDcNameW is available, use it.
1640 * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of
1642 (dsgetdcname): New function pointer for DsGetDcNameW.
1643 (load_netapi): Get DsGetDcNameW address.
1644 (main): If DsGetDcNameW is available, use it. Rename local variable
1645 domain_name_specified to domain_specified as in mkgroup.c.
1647 2005-09-08 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1649 * regtool.cc: Extend copyright-years.
1650 (print_version): Ditto.
1651 (cmd_list): Don't depend on terminating '\0' being present on
1653 (cmd_get): Don't attempt to read more than present, but keep
1654 extra space for terminating '\0'. Really output REG_BINARY.
1656 (cmd_set): Include trailing '\0' in string's length.
1658 2005-08-18 Corinna Vinschen <corinna@vinschen.de>
1660 * passwd.c (longopts): Add --logonserver option.
1661 (opts): Add -d option.
1662 (GetPW): Add server parameter which is given to Net functions.
1666 (usage): Add description for -d/--logonserver option.
1667 (main): Add option handling for -d/--logonserver. Use LOGONSERVER
1668 environment variable content for server to contact, unless
1669 -d/--logonserver option is given. If both is missing, use NULL.
1671 2005-08-16 Brian Dessent <brian@dessent.net>
1673 * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.
1674 Avoid extraneous cygrunsrv invocation if 'verbose' is true.
1676 2005-08-03 Corinna Vinschen <corinna@vinschen.de>
1678 * mount.cc (longopts): Fix typo which disallows --options option.
1680 2005-07-19 Christopher Faylor <cgf@timesys.com>
1681 Eric Blake <ebb9@byu.net>
1683 * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
1685 2005-07-05 Eric Blake <ebb9@byu.net>
1687 * cygcheck.cc (track_down, cygcheck): Return true on success.
1688 (main): Reflect cygcheck failures in exit status.
1690 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
1692 * parse_pe.c (exclusion::sort_and_check): Remove crude cast.
1694 2005-05-30 Corinna Vinschen <corinna@vinschen.de>
1696 * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
1697 Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server
1698 and Datacenter Server. Report when running in terminal server session.
1700 2005-05-27 Christopher Faylor <cgf@timesys.com>
1702 * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with
1704 * strace.cc (load_cygwin): Ditto.
1706 2005-05-22 Brian Dessent <brian@dessent.net>
1708 * cygcheck.cc (dump_sysinfo_services): Add new function that uses
1709 new cygrunsrv options to dump service info.
1710 (dump_sysinfo): Call dump_sysinfo_services if running under NT.
1711 Change 'Cygnus' to 'Cygwin' in output.
1713 2005-05-20 Christopher Faylor <cgf@timesys.com>
1715 * cygcheck.cc (load_cygwin): Remove debugging statement.
1717 2005-05-20 Christopher Faylor <cgf@timesys.com>
1719 * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not
1721 (nuke): Fix off by one error in allocation of environment variable.
1722 (load_cygwin): Always set PATH even if cygwin environment is empty.
1724 2005-05-16 Christopher Faylor <cgf@timesys.com>
1726 * cygcheck.cc (cygwin_internal): Define as a "C" function.
1727 * strace.cc (cygwin_internal): Ditto.
1729 * cygpath.cc (print_version): Update copyright.
1731 2005-05-15 Christopher Faylor <cgf@timesys.com>
1733 * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.
1735 2005-05-15 Corinna Vinschen <corinna@vinschen.de>
1737 * cygcheck.cc (load_cygwin): Don't touch $PATH for now.
1738 (print_version): Fix copyright.
1739 * strace.cc (print_version): Ditto.
1741 2005-05-13 Christopher Faylor <cgf@timesys.com>
1743 * mount.cc (mount_commands): Display "-X" option when appropriate.
1745 2005-05-08 Christopher Faylor <cgf@timesys.com>
1747 * cygcheck.cc (nuke): New function.
1748 (load_cygwin): New function.
1749 (main): Use load_cygwin to load argv/envp from cygwin environment, if
1752 2005-05-08 Christopher Faylor <cgf@timesys.com>
1754 * strace.cc (attach_process): Don't call load_cygwin(). Assume that
1755 it's already happened.
1757 (main): Set argv from cygwin environment, if it exists.
1759 2005-05-01 Christopher Faylor <cgf@timesys.com>
1761 * mount.cc (usage): Clarify action of -m option.
1763 2005-04-29 Dave Korn <dave.korn@artimi.com>
1765 * path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'
1766 flags to mnt_opts string if present in mount flags.
1768 2005-04-20 Brian Dessent <brian@dessent.net>
1770 * utils.sgml (mount): Clarify setting cygdrive prefix for user
1773 2005-03-24 Brian Dessent <brian@dessent.net>
1775 * cygcheck.cc (init_paths): Use full path instead of "." for the
1776 current directory. Do not add "." if present in $PATH.
1777 (dump_sysinfo): Skip placeholder first value of paths[].
1779 2005-03-07 Christopher Faylor <cgf@timesys.com>
1781 * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't
1782 pad signal name with spaces.
1784 2005-03-07 Corinna Vinschen <corinna@vinschen.de>
1786 * strace.cc (handle_output_debug_string): Fix compiler warning.
1788 2005-03-06 Christopher Faylor <cgf@timesys.com>
1790 * cygpath.cc (usage): Pass in one more copy of program_name to printf
1793 2005-02-27 Christopher Faylor <cgf@timesys.com>
1795 * regtool.cc (opts): The argument to 'K' is not optional.
1796 (main): Revert previous change. Just let getopt deal with missing
1799 2005-02-27 Christopher Faylor <cgf@timesys.com>
1801 * regtool.cc (main): Avoid a SEGV when nothing follows -K.
1803 2005-02-26 Christopher Faylor <cgf@timesys.com>
1805 * kill.cc (getsig): Avoid buffer overflow when generating a signal name.
1807 * strace.cc (handle_output_debug_string): Make error a little more specific.
1809 2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
1811 * cygpath.cc (usage): Clarify help output to indicate acceptance
1812 of multiple file names as arguments.
1814 2005-01-16 Christopher Faylor <cgf@timesys.com>
1816 * ps.cc (main): Eliminate use of PID_ZOMBIE.
1817 * strace.cc (main): Recognize new option for displaying hex value of
1819 (handle_output_debug_string): Prepend output with hex value of strace
1820 message if -H is specified.
1822 2005-01-11 Pierre Humblet <pierre.humblet@ieee.org>
1824 * mkpasswd.c (print_win_error): Transform into macro.
1825 (_print_win_error): Upgrade former print_win_error by
1827 (current_user): Call _print_win_error.
1828 (enum_users): Print name in case of lookup failure.
1829 (enum_local_groups): Ditto.
1831 2004-11-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1833 * cygcheck.cc (eprintf): New function.
1835 2004-11-16 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1837 * cygcheck.cc (find_on_path): Clear show_error and/or print_failed
1838 parameters to display_error.
1839 (rva_to_offset): Ditto.
1841 (track_down): Ditto.
1843 2004-11-13 Pierre Humblet <pierre.humblet@ieee.org>
1845 * kill.cc (forcekill): Do not pass negative pids to
1846 cygwin_internal. Check if sig == 0. Improve error messages.
1847 (main): Make pid a long long and distinguish between pids, gpids
1848 (i.e. negative pids) and Win9x pids.
1850 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1852 * cygcheck.cc: Change "keyeprint" to "display_error" throughout.
1854 2004-11-11 Christopher Faylor <cgf@timesys.com>
1856 * cygcheck.cc (main): Allow a '-l' without an additional argument.
1858 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1860 * cygcheck.cc (keyeprint): New optional parameters: show_error and
1863 2004-10-31 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1865 * cygcheck.cc (get_dword): Fix errormessage.
1866 (cygwin_info): Ditto.
1867 (track_down): Ditto.
1868 (check_keys): Ditto.
1870 2004-10-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1872 * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
1875 2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1877 * cygcheck.cc (dump_sysinfo): Add leading newline before legend for
1880 2004-10-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1882 * cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
1883 ``unk''. Use single puts. Add leading newline. Line up equal-signs.
1885 2004-10-20 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1887 * cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list.
1888 Change ``Used'' to ``Free'' in helptext-title for drive-list.
1890 2004-10-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1892 * cygcheck.cc (pretty_id): Don't let i become negative. Fix
1895 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1897 * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
1899 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1900 Christopher Faylor <cgf@timesys.com>
1902 * cygcheck.cc (pretty_id): Allocate space for trailing '\0' in uid and
1905 2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1906 Christopher Faylor <cgf@timesys.com>
1908 * cygcheck.cc (pretty_id): Don't exit on id error. Fix size
1911 2004-10-14 Christopher Faylor <cgf@timesys.com>
1912 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1914 * cygcheck.cc (pretty_id): Correct column calculations. Abort if id is
1917 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1919 * cygcheck.cc (add_path): Don't leak memory when path is already in
1922 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1924 * cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount
1927 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1929 * cygcheck.cc (dump_sysinfo): Don't warn about empty path components,
1932 2004-10-06 Corinna Vinschen <corinna@vinschen.de>
1934 * strace.cc (_impure_ptr): Remove.
1936 2004-10-06 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1938 * cygcheck.cc (dump_sysinfo): Warn about empty path components.
1940 2004-10-04 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1942 * cygcheck.cc (pretty_id): Close pipe.
1944 2004-09-23 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1946 * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
1949 2004-09-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1950 Corinna Vinschen <corinna@vinschen.de>
1952 * dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
1954 2004-09-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1956 * getfacl.c (main): Correct layout when nopt is set.
1958 2004-07-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1960 * mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
1962 (load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
1963 (enum_local_groups,enum_groups): Add disp_groupname parameter.
1964 Load info for disp_groupname if specified.
1965 (usage): Add description of "-g/--group" option.
1966 (longopts,opts): Add "-g/--group" option.
1967 (main): Process "-g/--group" option.
1968 * utils.sgml (mkgroup): Add description of "-g/--group" option
1970 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1972 * dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
1973 instead of _raw_size.
1974 (dumper::write_core_dump): Likewise.
1975 * parse_pe.cc (select_data_section): Likewise.
1977 2004-05-29 John Paul Wallington <jpw@gnu.org>
1979 * ssp.c (usage): Add missing linefeed.
1981 2004-05-27 Christopher Faylor <cgf@alum.bu.edu>
1983 * kill.cc (listsig): Fix "kill -l" segv. NSIG includes Signal 0, so we
1984 need to avoid calling strtosigno with NSIG - 1.
1986 2004-03-21 Christopher Faylor <cgf@redhat.com>
1988 * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
1990 2004-03-15 Christopher Faylor <cgf@redhat.com>
1992 * cygpath.cc (usage): Don't issue helpful message if -i is used.
1993 (from Igor Pechtchanski)
1995 2004-03-13 Rob Siklos <rob2@siklos.ca>
1997 * kill.cc (get_debug_priv): New function.
1998 (forcekill): Call get_debug_priv before trying to kill process.
2000 2004-02-24 Christopher Faylor <cgf@redhat.com>
2002 * cygpath.cc (long_options): Add "mode" option.
2004 (usage): Report on new option.
2005 (report_mode): New function.
2006 (main): Implement -M option.
2008 2004-02-20 Christopher Faylor <cgf@redhat.com>
2010 * Makefile.in (build_dumper): Detect missing iconv library.
2012 * cygpath.cc (dowin): Report on filename conversion errors.
2015 * strace.cc (main): Use symbolic constant for _STRACE_ALL when setting
2018 2004-02-14 Corinna Vinschen <corinna@vinschen.de>
2020 * ssp.c (opts): Add leading '+' to force posixly correct behaviour.
2022 2004-02-11 Corinna Vinschen <corinna@vinschen.de>
2024 * strace.cc (opts): Add leading '+' to force posixly correct
2026 (main): Revert POSIXLY_CORRECT manipulations.
2028 2004-02-10 Christopher Faylor <cgf@redhat.com>
2030 * strace.cc (main): Guard against previous setting of POSIXLY_CORRECT.
2032 2004-02-10 Christopher Faylor <cgf@redhat.com>
2034 * strace.cc: Update copyrights.
2035 * cygcheck.cc: Update copyrights.
2037 2004-02-10 Christopher Faylor <cgf@redhat.com>
2039 * strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
2040 * cygcheck.cc (main): Ditto.
2042 2004-01-23 Christopher Faylor <cgf@redhat.com>
2044 * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
2046 2004-01-22 Corinna Vinschen <corinna@vinschen.de>
2048 * cygpath.cc (dowin): Revert accidental checkin from November.
2050 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
2052 * mkgroup.c (main): Print "root" group with local admins group sid
2055 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
2057 * Makefile.in: Add rules to build ipcrm and ipcs.
2058 * ipcrm.c: New file.
2061 2003-11-14 Corinna Vinschen <corinna@vinschen.de>
2063 * mkgroup.c: Avoid compiler warnings throughout.
2064 * mkpasswd.c: Ditto.
2067 2003-11-07 Mark Blackburn <marklist@fangorn.ca>
2069 * cygpath.cc (main): Allow multiple pathnames on command line.
2071 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2073 * passwd.c (PrintPW): Turn around meaning printed for "Password not
2074 required" option to be in line with Windows meaning.
2075 (main): Use more appropriate 1008 option when calling
2076 NetUserSetInfo to change flag values.
2078 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2080 * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).
2081 (version): Bump version number to 1.5.
2082 (longopts): Add -c, -C, -e, -E, -p, -P options.
2084 (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and
2085 UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress
2086 correct system password settings just because the account has admin
2088 (usage): Define as "noreturn" function. Restructure and rephrase
2089 output. Accommodate new options.
2090 (print_version): Fix copyright dates.
2091 (main): Accommodate new options for setting UF_PASSWD_CANT_CHANGE,
2092 UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
2094 2003-10-17 Christopher Faylor <cgf@redhat.com>
2096 * cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2098 2003-09-20 Christopher Faylor <cgf@redhat.com>
2100 * kill.cc (main): Allow negative pids (indicates process groups).
2102 2003-09-17 Christopher Faylor <cgf@redhat.com>
2104 * parse_pe.cc (exclusion::sort_and_check): Make error message a little
2105 more explicit and ignore (hopefully) harmless region overlap.
2107 2003-09-13 Christopher Faylor <cgf@redhat.com>
2109 * kill.c (forcekill): Wait for process to terminate even if
2110 TerminateProcess says it failed.
2112 2003-09-11 Christopher Faylor <cgf@redhat.com>
2114 * Makefile.in: Tweak mingw libz.a detection to make it more reliably
2115 detect when libz.a is not available.
2117 2003-09-11 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2119 * cygcheck.cc (dump_only): New global variable.
2120 (usage): Add "--dump-only" option, fix "--verbose" line.
2121 (longopts, opts): Add "--dump-only" option.
2122 (main): Process the "--dump-only" flag. Add new semantic check.
2123 Pass dump_only information to dump_setup().
2125 2003-09-11 Corinna Vinschen <corinna@vinschen.de>
2127 * getfacl (main): Remove extern declaration of optind.
2128 * setfacl (main): Remove extern declaration of optarg and optind.
2130 2003-09-10 Christopher Faylor <cgf@redhat.com>
2132 * Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
2133 * cygcheck.cc: Just include <getopt.h> rather than cygwin version.
2134 (pretty_id): Avoid compiler warnings.
2135 * cygpath.cc (usage): Ditto.
2137 2003-09-10 Christopher Faylor <cgf@redhat.com>
2139 * Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
2140 * path.cc: Include more path info in cygwin-specific includes since the
2141 cygwin directory is no longer included by default.
2143 2003-09-10 Christopher Faylor <cgf@redhat.com>
2145 * Makefile.in: More fixups to adjust for the fact that mingw_getopt.o
2148 2003-09-10 Christopher Faylor <cgf@redhat.com>
2150 * Makefile.in: Remove references to getopt since it is now part of
2153 2003-09-08 Christopher Faylor <cgf@redhat.com>
2155 * Makefile.in: Rename libz.h -> zlib.h.
2157 2003-09-07 Christopher Faylor <cgf@redhat.com>
2159 * Makefile.in: Detect existence of mingw zlib headers and libraries.
2160 Build cygcheck without package checking if they are unavailable.
2161 * dump_setup.cc: Generate dummy zlib macros when zlib is not available.
2162 (open_package_list): Use zlib functions to uncompress package lists.
2163 Return gzFile rather than FILE *.
2164 (check_package_files): Change fp to gzFile to accommodate zlib
2165 functions. Use gzgets to read from package file. Use gzclose to close
2167 (package_list): Ditto.
2168 (package_find): Ditto.
2170 2003-09-05 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2172 * dump_setup.cc (check_package_files): Don't fail on empty package.
2174 2003-09-01 AJ Reins <reinsaj@yahoo.com>
2176 * mount.cc (mount_commands): Ensure user mode is actually user mode and
2177 not the default system mode.
2179 2003-08-31 Christopher Faylor <cgf@redhat.com>
2181 * kill.cc (forcekill): Silence some compiler warnings.
2183 2003-08-31 Christopher Faylor <cgf@redhat.com>
2185 * Makefile.in: Oops. Put the '...' in the right place.
2187 2003-08-31 Christopher Faylor <cgf@redhat.com>
2189 * Makefile.in: Display "..." when not-verbose.
2191 * kill.cc (forcekill): Default to entered pid when pinfo fails. Issue
2192 some warnings when things don't work.
2194 2003-08-17 David Rothenberger <daveroth@acm.org>
2196 * dump_setup.cc (check_package_files): Strip leading / and ./ from
2199 2003-08-16 David Rothenberger <daveroth@acm.org>
2201 * dump_setup.cc (package_find): Don't stop searching on missing
2203 (package_list): Ditto.
2205 2003-08-16 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2207 * dump_setup.cc: (package_list): Make output terse unless
2208 verbose requested. Fix formatting.
2209 (package_find): Ditto.
2211 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2213 * cygcheck.cc (main): Fix some formatting and help text printing.
2215 2003-08-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2217 * cygcheck.cc (find_package,list_package): New global
2219 (usage): Add "--find-package" and "--list-package" options,
2221 (longopts, opts): Add "--find-package" and "--list-package"
2223 (main): Process the "--find-package" and "--list-package"
2224 flags. Add new semantic checks. Add calls to find_package()
2226 * dump_setup.cc: Fix header comment.
2227 (match_argv): Change return type to int to distinguish
2228 between real matches and default ones.
2229 (open_package_list): New static function.
2230 (check_package_files): Factor out opening the package list
2231 file into open_package_list().
2232 (get_packages): New static function.
2233 (dump_setup): Factor out getting a list of packages into
2235 (package_list, package_find): New global functions.
2237 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2239 * regtool.cc (usage): Add missing linefeed. Move example to --help
2240 text. Fix forward slash description.
2242 2003-08-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2244 * dump_setup.cc (check_package_files): Fix extra '/' in filename.
2245 Resize command buffer. Fix buffer overflow bug.
2247 2003-08-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2248 Christopher Faylor <cgf@redhat.com>
2250 * dump_setup.cc (dump_setup): Check for the existence of the package
2251 list file. Rework slightly to use static buffer for popen commands.
2253 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2254 Christopher Faylor <cgf@redhat.com>
2256 * dump_setup.cc (version_len): New static variable.
2257 (could_not_access,directory_exists): New static function.
2258 (file_exists): Ditto.
2259 (check_package_files): Ditto.
2260 (dump_setup): Check the contents of each package if check_files is true
2261 and output the result in the "Status" column. Flush output after each
2264 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2265 Christopher Faylor <cgf@redhat.com>
2267 * dump_setup.cc (dump_setup): Remove redundant null check. Add
2268 informative message if package info not found.
2270 2003-07-26 Christopher Faylor <cgf@redhat.com>
2272 * mount.cc (do_mount): Issue warning when using managed mount option on
2273 non-empty directory.
2275 2003-07-25 Christopher Faylor <cgf@redhat.com>
2277 * configure.in: Use 'install-sh -c'.
2278 * configure: Regenerate.
2280 2003-07-25 Christopher Faylor <cgf@redhat.com>
2282 * configure.in: Always use install-sh.
2283 * configure: Regenerate.
2285 2003-07-03 Christopher Faylor <cgf@redhat.com>
2287 * mount.cc (struct opt): Remove posix option.
2289 2003-07-03 Christopher Faylor <cgf@redhat.com>
2291 * mount.cc (longopts): Add long "options" keyword.
2292 (opts): Add -o option.
2293 (usage): Display -o option.
2295 (concat3): New function.
2296 (main): Handle -o flag.
2298 2003-06-12 Christopher Faylor <cgf@redhat.com>
2300 * cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2302 2003-06-12 Christopher Faylor <cgf@redhat.com>
2304 * cygpath.cc: Throughout, always return error when GetShortPathName
2307 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2309 * mkpasswd.c (usage) Remove extra newline from description output.
2311 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2313 * cygcheck.cc (usage) Add description output.
2314 * cygpath.cc (usage) Add description output.
2315 * dumper.cc (usage) Add newline to description output.
2316 * kill.cc (usage) Add description output.
2317 * mkgroup.c (usage) Grammatical change to description output.
2318 * mkpasswd.c (usage) Grammatical change to description output.
2319 * mount.cc (usage) Add description output.
2320 * passwd.c (usage) Add description output.
2321 * ps.cc (usage) Add description output.
2322 * regtool.cc (usage) Add description output.
2323 * setfacl.c (usage) Remove extra newline from description output.
2324 * ssp.c (usage) Add description output.
2325 * strace.cc (usage) Add description output.
2326 * umount.cc (usage) Add description output.
2328 2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
2330 * mkpasswd.c (current_user): print uid and gid as unsigned.
2331 (enum_users): Ditto. Do not free servername.
2332 (usage): Update to allow several domains and improve -p.
2333 (main): On Win9x limit uids to 1000. Only print specials
2334 when -l is specified. Add a loop to allow several domains
2335 and free servername in the loop.
2336 * mkgroup.c (enum_groups): Do not free servername.
2337 (usage): Update to allow several domains. Change uid to gid.
2338 (main): Only print specials when -l is specified. Add a
2339 loop to allow several domains and free servername in the loop.
2341 2003-03-24 Christopher Faylor <cgf@redhat.com>
2343 * cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable
2346 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
2348 * getfacl.c (username): Fix ambiguous printf calls.
2352 2003-03-04 Christopher Faylor <cgf@redhat.com>
2354 * Makefile.in (strace.exe): Include mingw_getopt.o in link line.
2355 * cygcheck.cc (print_version): Update copyright.
2356 * strace.cc (print_version): Ditto.
2357 (main): Allow cygwin paths for -o option.
2358 (create_child): Allow cygwin path as argv[0].
2359 * path.cc (path.cc): Allow UNC paths.
2361 2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
2363 * mkpasswd.cc (main): On Win95, output both a default line and a
2364 line for the current user (if known) with a pseudorandom uid. If
2365 the -u switch is given, produce a line for the specified user.
2366 * mkgroup.cc (main): On Win95 change the group name from "unknown" to
2369 2003-02-28 Christopher Faylor <cgf@redhat.com>
2371 * Makefile.in (cygcheck.o): Fix so that actual mingw include files are
2373 * cygcheck.cc (find_on_path): Translate from cygwin path when qualified
2375 (pretty_id): New function. Dump output of id command.
2376 (dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2378 2003-02-12 Christopher Faylor <cgf@redhat.com>
2380 * cygpath.cc (doit): Allocate more space for non-path filename.
2382 2003-02-07 Christopher Faylor <cgf@redhat.com>
2384 * dump_setup.cc (compar): Use case insensitive comparisons.
2385 (dump_setup): Calculate package_len based on already used "len". Don't
2386 bother with version_len.
2388 2003-02-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2390 * dump_setup.cc (dump_setup): Compute the longest package name
2391 and align columns properly.
2393 2003-02-06 Christopher Faylor <cgf@redhat.com>
2395 * cygcheck.cc (common_apps): Add some more apps.
2396 * path.cc (get_cygdrive): Correctly set system flag.
2398 2003-01-22 Corinna Vinschen <corinna@vinschen.de>
2400 * Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
2401 (MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2403 2003-01-15 Corinna Vinschen <corinna@vinschen.de>
2405 * mkgroup.c: Fix copyright date.
2406 * mkpasswd.c: Ditto.
2409 2003-01-09 Pierre Humblet <pierre.humblet@ieee.org>
2411 * setfacl.c (usage): Remove double ":" for mask and other.
2413 2003-01-07 Pierre Humblet <pierre.humblet@ieee.org>
2415 * mkpasswd.c (current_user): Create.
2416 (usage): Reorganize to support Win95/98/ME.
2417 (main): Add option for -c. Reorganize to parse options for
2418 Win95/98/ME and to call current_user. Add username in gecos field
2420 * mkgroup.c (enum_groups): Print gid with %u.
2421 (print_win_error): Create from passwd.cc.
2422 (current_group): Create.
2423 (usage): Reorganize to support Win95/98/ME.
2424 (main): Add option for -c. Reorganize to parse options for
2425 Win95/98/ME and to call current_group.
2427 2002-12-14 Pierre Humblet <pierre.humblet@ieee.org>
2429 * setfacl.c (main): Place a single : after other and mask.
2430 * getfacl.c (getaclentry): Allow both : and :: for other and mask.
2431 (main): Remove extraneous break.
2433 2002-11-25 Corinna Vinschen <corinna@vinschen.de>
2435 * mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.
2437 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2439 * setfacl.c (getperm): Set only `other' permission bits.
2440 (getaclentry): Set a_id to -1 by default.
2442 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2444 * getfacl.c (permstr): Use `other' permission bits for requesting
2447 2002-11-08 Corinna Vinschen <corinna@vinschen.de>
2449 * setfacl.c (usage): Add missing LF.
2451 2002-10-30 Christopher Faylor <cgf@redhat.com>
2453 * cygpath.cc (get_long_path_name_w32impl): Define similarly to
2455 (get_long_name): Correctly prototype GetLongPathName.
2456 (get_long_paths): Implement using get_long_name to cut down on code
2458 (doit): Do various things to make path output work predictably.
2460 2002-10-19 Christopher Faylor <cgf@redhat.com>
2462 * mount.cc (usage): Correctly report default mode.
2463 * strace.cc (main): Use strtoul as appropriate.
2465 2002-09-29 Christopher Faylor <cgf@redhat.com>
2467 * cygpath.cc (close_arg): Remove unused static.
2468 * mkgroup.c (enum_local_users): Avoid compiler warning.
2469 (enum_users): Ditto.
2470 * mkpasswd.c: Ditto throughout.
2471 * ssp.c: Ditto throughout.
2473 2002-09-18 Christopher Faylor <cgf@redhat.com>
2475 * cygcheck.cc: Include sys/time.h rather than time.h to avoid a
2478 2002-09-17 Christopher Faylor <cgf@redhat.com>
2480 * cygcheck.cc: Reorder includes to avoid compiler error.
2482 2002-09-15 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2484 * cygcheck.cc (print_version) Add final newline.
2485 * getfacl.c (print_version) Add final newline.
2486 * kill.cc (print_version) Add final newline.
2487 * mkgroup.c (print_version) Add final newline.
2488 * mkpasswd.c (print_version) Add final newline.
2489 * mount.cc (print_version) Add final newline.
2490 * passwd.c (print_version) Add final newline.
2491 * ps.cc (print_version) Add final newline.
2492 * regtool.cc (print_version) Add final newline.
2493 * setfacl.c (print_version) Add final newline.
2494 * ssp.c (print_version) Add final newline.
2495 * strace.cc (print_version) Add final newline.
2496 * umount.cc (print_version) Add final newline.
2498 2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2500 * cygpath.cc (options) New global variable.
2501 (main) Make short options global for easier change.
2502 (print_version) Add a missing newline.
2504 2002-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2506 * regtool.cc (find_key): Add support for custom key separator.
2507 (usage): Document it.
2509 2002-08-02 Corinna Vinschen <corinna@vinschen.de>
2511 * mkgroup.c (main): Don't print an entry for "Everyone".
2512 * mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
2513 (main): Don't print an entry for "Everyone".
2515 2002-07-06 Christopher Faylor <cgf@redhat.com>
2517 * configure.in: Check for libiconv.a.
2518 * configure: Regenerate.
2519 * Makefile.in: Add libiconv.a to libraries required for dumper.exe.
2521 2002-07-06 Christopher Faylor <cgf@redhat.com>
2523 * Makefile.in: Use MINGW stuff from Makefile.common.
2525 2002-07-01 Corinna Vinschen <corinna@vinschen.de>
2527 * mkgroup.c: Add function pointers for functions from advapi32.dll.
2528 (load_netapi): Load used functions from advapi32.dll.
2529 (main): Use function pointers instead of statically linked functions
2532 2002-07-01 Christopher Faylor <cgf@redhat.com>
2534 * mount.cc (main): Ensure that mount_already_exists() also gets default
2535 flag that is passed to do_mount.
2537 2002-06-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2539 * cygpath.cc (long_options): Add "dos" and "mixed", correct "close",
2540 "file" and "type" to use NULL flag.
2541 (usage): Clean up usage output (more), accomodate new options.
2542 (main): Add --dos and --mixed options; accomodate all output forms in
2543 --type. Make UNIXy output default.
2545 2002-06-18 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2547 * cygpath.cc (usage): Clean up usage output.
2548 (dowin): Correct output of -t mixed for -ADHPSW options.
2550 2002-06-14 Corinna Vinschen <corinna@vinschen.de>
2552 * passwd.c: Rearrange includes to avoid unnecessary warnings.
2553 (GetPW): Add parameter to (dis)allow printing of Windows username.
2554 Use defines instead of numerical constants where possible.
2555 Try avoiding impersonation problem. Rearrange to print Windows
2556 username only if it's different from Cygwin username.
2557 (ChangePW): Use defines instead of numerical constants where possible.
2558 (main): Call GetPW with additional parameter. Change error text.
2560 2002-06-14 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2562 * passwd.c (GetPW): Handle case of user-edited /etc/passwd
2563 with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2565 2002-06-09 Christopher Faylor <cgf@redhat.com>
2567 * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2570 2002-06-09 Christopher Faylor <cgf@redhat.com>
2572 * mount.cc (main): Use default system/user flag for cygdrive stuff,
2574 (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2575 * umount.cc (remove_cygdrive_prefix): Ditto.
2576 (main): Use default system/user flag for cygdrive stuff, too.
2578 2002-06-08 Christopher Faylor <cgf@redhat.com>
2580 * mount.cc (opts): Remove '-i' option.
2583 (longopts): Remove --import-old-mounts option.
2585 2002-06-07 David Peterson <chief@mail.idrive.com>
2586 Christopher Faylor <cgf@redhat.com>
2588 * cygpath.cc: Add option to output windows paths in different formats:
2590 (main): Process options.
2591 (doit): Check new options flags.
2593 2002-06-06 Egor Duda <deo@logos-m.ru>
2595 * regtool.cc (Fail): Be more verbose.
2596 (find_key): Add support for remote registry access.
2597 (usage): Document it.
2598 * utils.sgml: Document it.
2600 2002-06-06 Christopher Faylor <cgf@redhat.com>
2602 * strace.cc (main): Make toggle a local variable.
2604 2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
2606 * strace.cc (toggle): New global variable.
2607 (error): Use exit instead of ExitProcess so that stdio buffers get
2609 (create_child): Remove command line error checking.
2611 (dotoggle): New function.
2612 (usage): Add entry for new option -T|--toggle. Alphabetize.
2613 (longopts): Add new option -T|--toggle.
2615 (main): Handle new -T|--toggle option. Move all command line checking
2616 here from other functions.
2617 * utils.sgml: Update section for strace.
2619 2002-06-05 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2621 * strace.cc (version): New global variable.
2622 (usage): Accommodate stdout output.
2623 (print_version): New function.
2625 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2627 * ssp.c (version): New global variable.
2630 (run_program): Correct cmd_line typos to cmdline.
2631 (usage): New function. Standardize usage output. Add ssp.txt to
2633 (print_version): New function.
2634 (main): Accommodate getopt.
2636 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2638 * umount.cc (version): New global variable.
2639 (longopts): Accommodate new --version option.
2641 (usage): Standardize usage output.
2642 (print_version): New function.
2643 (main): Accommodate --help, --version options.
2645 2002-06-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2647 * regtool.cc (prog_name): New global variable.
2650 (usage): Standardize usage output. Rearrange/add descriptions.
2651 (print_version): New function.
2652 (main): Accommodate longopts and new --help, --version options. Add
2653 check for (_argv[optind+1] == NULL).
2655 2002-06-02 Christopher Faylor <cgf@redhat.com>
2657 * strace.cc (forkdebug): Make true by default.
2658 (attach_process): Use window pid if cygwin pid isn't available (yet).
2659 (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS,
2660 exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
2662 2002-05-30 Christopher Faylor <cgf@redhat.com>
2664 * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
2666 2002-05-29 Christopher Faylor <cgf@redhat.com>
2668 * mount.cc (main): Make -b the default.
2670 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2672 * ps.cc (main): Use uid or uid32 member of struct external_pinfo
2673 dependent of the value of the struct's version member.
2675 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2677 * ps.cc (main): Change print format for uid to unsigned. Use uid32
2678 member of struct external_pinfo instead of uid.
2680 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2682 * passwd.c (prog_name): New global variable.
2685 (usage): Standardize output. Accommodate new options.
2686 (print_version): New function.
2687 (main): Accommodate longopts and new --help, --version options.
2689 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2691 * ps.cc (usage): Fix typo.
2693 2002-05-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2695 * ps.cc (prog_name): New global variable.
2698 (usage): New function.
2699 (print_version): New function.
2700 (main): Accommodate longopts and new --help, --version options.
2702 2002-05-26 Christopher Faylor <cgf@redhat.com>
2704 * strace.cc (attach_process): Don't tell process to start stracing
2706 (proc_child): Do it here, instead, after first debug event. This
2707 should work around inexplicable races with DebugActiveProcess.
2708 (dostrace): Pass any pid argument to proc_child.
2710 2002-05-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2712 * getfacl.c (usage): Standardize usage output. Change return type to
2714 (print_version): New function.
2715 (longopts): Added longopts for all options.
2716 (main): Accommodate new help and version options.
2718 2002-05-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2720 * mount.cc (version): New global variable.
2721 (usage): Standardize usage output. Accommodate new version option.
2722 (print_version): New function.
2723 (longopts): Accommodate new version option.
2727 2002-05-22 Corinna Vinschen <corinna@vinschen.de>
2729 * cygpath.cc (usage): Change usage output slightly.
2731 2002-05-20 Joerg Schaible <joerg.schaible@gmx.de>
2733 * cygpath.cc (main): Add option l to support conversion to
2734 Windows long file names. Refactured code for capital options.
2735 Support of options from file for capital options.
2736 (dowin): New function. Refactured from main.
2737 (doit): Call long path conversion.
2738 (get_long_name): New function.
2739 (get_long_paths): New function.
2740 (get_long_path_name_w32impl): New function. Reimplementation
2741 of Windows API function GetLongPathName (only 98/Me/2000/XP or
2743 (get_short_name): Call GetShortPathName only once.
2744 (get_short_paths): Fix calculating buffer size.
2745 * utils.sgml: Update cygpath section for l option.
2747 2002-05-18 Christopher Faylor <cgf@redhat.com>
2749 * strace.cc (add_child): Use calloc since new requires working
2751 (remove_child): Ditto for delete/free.
2753 2002-05-15 Mark Blackburn <marklist@fangorn.ca>
2755 * cygpath.cc (get_short_paths): Fix more error checking.
2756 (get_short_name): Ditto.
2758 2002-05-14 Joerg Schaible <joerg.schaible@gmx.de>
2760 * cygpath.cc (main): Add option H to show the Windows' profiles
2761 directory. Support short names for options DPSW. Clean up
2763 * utils.sgml: Update cygpath section for H option and s support.
2765 2002-05-14 Mark Blackburn <marklist@fangorn.ca>
2767 * cygpath.cc (get_short_paths): Fix error checking.
2769 2002-05-13 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2771 * kill.cc (prog_name): New global variable.
2772 (usage): Standardize usage output. Add descriptions.
2773 (print_version): New function.
2774 (longopts): Accommodate new version option.
2778 2002-05-13 Christopher Faylor <cgf@redhat.com>
2780 * kill.cc (listsig): Display numeric id when given symbolic input.
2782 2002-05-13 Christopher Faylor <cgf@redhat.com>
2784 * kill.cc (usage): Show new options. Allow specification of output
2786 (main): Implement 'h' option.
2788 2002-05-13 Christopher Faylor <cgf@redhat.com>
2790 * Makefile.in (kill.exe): Add as a specific target.
2791 * kill.cc (longopts): New.
2793 (get_sig): Accept const char * parameter. Return -1 on unknown signal.
2794 (test_for_unknown_sig): New function.
2795 (listsig): New function.
2796 (main): Use getopt_long for option parsing. Implement -l, and -s
2797 options. Use test_for_unknown_sig() to test for signal validity.
2799 * mount.cc (longopts): Make static.
2802 2002-05-12 Christopher Faylor <cgf@redhat.com>
2804 * mount.cc (do_mount): Default to non-exec option for remote drives.
2805 Report warnings before attempting a mount.
2806 (longopts): Add no-executable option.
2807 (mount_commands): Ditto.
2809 (usage): Ditto. Indicate that system mount is now the default.
2810 (main): Accommodate no-executable option. Make system mount the
2812 * umount.cc (usage): Indicate that system umount is now the default.
2813 (main): Make system umount the default.
2815 2002-05-07 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2817 * dumper.cc (usage): Standardize usage output. Generalize to allow use
2819 (longopts): New struct. Added longopts for all options.
2820 (print_version): New function.
2821 (main): Change getopt to getopt_long. Accommodate new help and version
2824 2002-03-29 Corinna Vinschen <corinna@vinschen.de>
2826 * mkgroup.c (main): Change call to exit() to a return statement.
2827 * mkpasswd.c (main): Ditto.
2829 2002-03-27 Joshua Daniel Franklin joshuadfranklin@yahoo.com
2831 * mkpasswd.c (usage): Simplify usage output. Generalize to allow use
2832 for help. Correct '?' typo to 'h'.
2833 (longopts): Add version option.
2834 (opts): Add 'v' version option.
2835 (print_version): New function.
2836 (main): Accommodate new version option. Accommodate usage parameter
2839 2002-03-19 Christopher Faylor <cgf@redhat.com>
2841 * mkgroup.c (usage): Use one just fprintf + string concatenation for
2843 (print_version): Add void to function type and update copyright.
2845 2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2847 * mkgroup.c (usage): Simplify usage output. Generalize to allow use
2848 for help. Correct '?' typo to 'h'.
2849 (longopts): Add version option.
2850 (opts): Add 'v' version option.
2851 (print_version): New function.
2852 (main): Accommodate new version option. Accommodate usage parameter
2853 changes. Use usage to output help message.
2855 2002-03-15 Corinna Vinschen <corinna@vinschen.de>
2857 * mkgroup.c (main): When generating group 513, check for computer's
2858 primary domain instead of current user's domain.
2860 2002-03-14 Corinna Vinschen <corinna@vinschen.de>
2862 * mkgroup.c (main): When generating group 513, check for domain SID
2863 if computer name isn't mapped to a SID.
2865 2001-03-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2867 * kill.cc (usage): Move to top of file.
2871 2002-03-06 Christopher Faylor <cgf@redhat.com>
2873 * cygcheck.cc: Reformat.
2875 2002-03-06 Christopher Faylor <cgf@redhat.com>
2877 * cygcheck.cc (longopts): Use correct short option for --version.
2879 2002-03-06 Christopher Faylor <cgf@redhat.com>
2881 * cygpath.cc: Reformat.
2883 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2885 * cygpath.cc (print_version): New function.
2886 (main): Accommodate new version function. Initialize 'o' to prevent
2889 2002-02-27 Christopher Faylor <cgf@redhat.com>
2891 * cygcheck.cc (main): Eliminate non-GNU formatting glitch.
2893 2002-02-27 Christopher Faylor <cgf@redhat.com>
2895 * ssp.c (help_desk): Fix compiler warning.
2897 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2898 Christopher Faylor <cgf@redhat.com>
2900 Change appropriate globals to statics throughout.
2901 * cygcheck.cc (usage): Simplify usage output. Generalize to allow use
2903 (longopts): Add version option.
2904 (opts): Add 'V" version option.
2905 (print_version): New function.
2906 (main): Accommodate new version option. Accommodate usage parameter
2907 changes. Use usage to output help message.
2909 002-02-19 Christopher Faylor <cgf@redhat.com>
2911 * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is
2913 (libbfd): Use -B rather than -L so that bfd from build directory is
2917 2002-02-15 Christopher Faylor <cgf@redhat.com>
2919 * mount.cc (usage): Fix typo in output.
2921 2002-02-14 Christopher Faylor <cgf@redhat.com>
2923 * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
2925 2002-01-31 Corinna Vinschen <corinna@vinschen.de>
2927 * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
2930 2002-01-30 Corinna Vinschen <corinna@vinschen.de>
2932 * passwd.cc (ChangePW): Add parameter to differ between called for
2933 checking old password and called for changing password. If called
2934 for checking old password, return non-zero only if password is surely
2936 (main): Call ChangePW() with additional parameter.
2938 2002-01-29 Christopher Faylor <cgf@redhat.com>
2940 * dump_setup.cc (parse_filename): Don't consider '_' part of the
2943 2002-01-28 Christopher Faylor <cgf@redhat.com>
2945 * cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in
2946 sys/cygwin.h instead.
2947 * getfacl.c: Add include to remove warning.
2948 * mkgroup.c (main): Assign variables outside of parameter passing.
2949 This seems to eliminate some compiler warnings.
2951 2002-01-28 Christopher Faylor <cgf@redhat.com>
2953 * cygcheck.cc: Use specific cygwin includes, as required.
2955 2002-01-28 Christopher Faylor <cgf@redhat.com>
2957 * Makefile.in (MINGW_INCLUDES): Change cygwin include.
2958 * strace.cc: Use specific cygwin includes, as required.
2959 (load_cygwin): New function. Loads cygwin DLL, if necessary.
2960 (attach_process): Attaches strace to a running process.
2961 (dostrace): Accept pid argument. Attach to pid if supplied.
2962 (usage): Describe -p option. Correct system description.
2963 (longopts): Alphabetize.
2965 (main): Ditto. Handle -p option.
2967 2002-01-21 Christopher Faylor <cgf@redhat.com>
2969 * Makefile.in (CXXFLAGS): Ensure that important settings are preserved
2970 even when overriden by command line.
2972 2002-01-21 Christopher Faylor <cgf@redhat.com>
2974 * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
2975 * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning.
2976 (dump_sysinfo): Make variables unsigned to quiet g++ warnings.
2977 * strace.cc (version_string): Rename from SCCSid.
2978 (add_child): Remove unused variable.
2979 (version): Use version_string. Avoid use of fprintf.
2981 2002-01-21 DJ Delorie <dj@redhat.com>
2983 * Makefile.in: Use CXX instead of CC to compile C++ sources.
2985 2002-01-17 DJ Delorie <dj@redhat.com>
2987 * cygcheck.cc (already_did): Avoid default constructors, which may
2988 require exception support.
2990 2001-01-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2992 * cygpath.cc (main): Add options to show Desktop and Start
2993 Menu's Programs directory for current user or all users.
2994 Move bulk of DPWS options outside the getopt case statement.
2995 * utils.sgml: Update cygpath section for ADPWS options.
2997 2002-01-15 Joerg Schaible <joerg.schaible@gmx.de>
2999 * cygpath.cc (doit): Empty file ignored using option -i.
3001 2002-01-15 Mark Bradshaw <bradshaw@crosswalk.com>
3003 * mkpasswd.c (print_win_error): Add a new function.
3004 (enum_users): Use print_win_error.
3005 (enum_local_groups): Ditto.
3008 2001-12-26 Jonathan Kamens <jik@curl.com>
3010 * cygpath.cc (doit): Detect and warn about an empty path. Detect and
3011 warn about errors converting a path.
3012 (main): Set prog_name correctly -- don't leave an extra slash or
3013 backslash at the beginning of it.
3015 Fri Dec 14 14:04:37 2001 Jason Tishler <jason@tishler.net>
3017 * mkpasswd.c (enum_users): Change to unconditionally use
3018 the --path-to-home option, if supplied by the user. Use default
3019 --path-to-home option value, if appropriate.
3020 (usage): Change usage statement to reflect new semantics.
3021 (main): Remove defaulting of the --path-to-home option.
3023 Fri Dec 14 12:10:39 2001 Jason Tishler <jason@tishler.net>
3025 * mkpasswd.c (opts): Add indication that '-p' option requires an
3028 2001-12-11 Christopher Faylor <cgf@redhat.com>
3030 * Makefile.in: Add define to CXXFLAGS.
3032 2001-12-03 Christopher Faylor <cgf@redhat.com>
3034 * cygcheck.cc (usage): Add -c description.
3035 * cygpath.cc (usage): Alphabetize options.
3036 * strace.cc (usage): Ditto.
3038 2001-11-21 Christopher Faylor <cgf@redhat.com>
3040 * path.cc (cygpath): Don't consider cygdrive stuff when trying to derive
3043 2001-11-20 Mark Bradshaw <bradshaw@staff.crosswalk.com>
3045 * mkpasswd.c: include lmerr.h
3046 (main): New -u option to allow specifying a
3047 specific user. If specified, groups aren't displayed and
3048 output is limited to only the specified user.
3049 (enum_users): If specific user is specified, via -u option,
3050 display only that user's record. With -u use NetUserGetInfo
3051 instead of NetUserEnum.
3052 (load_netapi): Added netusergetinfo.
3054 2001-11-15 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3056 * strace.cc (main): Change getopt() to getopt_long().
3057 Add support for help and version info.
3058 Use new parse_mask() function for -m/--mask option.
3059 (longopts): Add long options structure.
3060 (opts): Move options string from getopts call to static var.
3061 (usage): Print usage information.
3062 (SCCSid): Version info.
3063 (version): New function for displaying version info.
3064 (parse_mask): New function supporting parsing of mnemonics,
3065 hex, and basic expressions in masks.
3066 (mnemonic2ul): New mnemonic parsing function.
3067 (tag_mask_mnemonic): New type.
3068 (mnemonic_table): New table of mnemonics for mnemonic2ul() to
3071 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3073 * cygcheck.cc (dump_sysinfo): Redefine output format slightly.
3074 Print correct build number on 9x/ME systems.
3076 2001-11-12 Christopher Faylor <cgf@redhat.com>
3078 * cygcheck.cc (main): Slight formatting tweak.
3080 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3082 * cygcheck.cc (dump_sysinfo): Add some more details.
3084 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3086 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string
3087 using OSVERSIONINFOEX information.
3089 2001-11-11 Christopher Faylor <cgf@redhat.com>
3093 2001-11-11 Christopher Faylor <cgf@redhat.com>
3095 * cygcheck.cc (scan_registry): Open registry with read-only access.
3096 (main): Reflect argument change for dump_setup.
3097 * dump_setup.cc (dump_setup): Add preliminary extra argument for future
3099 * path.cc (read_mounts): Open registry with read-only access.
3101 2001-11-11 Christopher Faylor <cgf@redhat.com>
3103 * cygcheck.cc (main): Display package info when '-s' is specified.
3104 * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort
3107 2001-11-11 Christopher Faylor <cgf@redhat.com>
3109 * dump_setup.cc: New file.
3110 * Makefile.in: Add info for dump_setup.o.
3111 * cygcheck.cc (main): Recognize '-c' option for checking setup
3113 * path.cc (cygpath): Read mount table if not loaded.
3115 2001-11-10 Christopher Faylor <cgf@redhat.com>
3117 * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.
3118 * path.cc: New file.
3119 * cygcheck.cc (init_paths): Use MS-DOS path syntax.
3120 (cygwin_info): Properly display cygwin version numbers. Prettify some
3122 (dump_sysinfo): Calculate max names of posix and ms-dos paths for
3125 2001-11-09 Corinna Vinschen <corinna@vinschen.de>
3127 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
3129 2001-11-04 Corinna Vinschen <corinna@vinschen.de>
3131 * getfacl.c (username): New function.
3133 (usage): Ditto. Add more user friendly help text.
3134 (main): Add -n and --help option. Print names instead of IDs
3135 unless -n option is given.
3136 * setfacl.c (getperm): Tolerate whitespace and comment chars in input.
3137 (getaclentry): Fix several input string misdetections.
3138 (getaclentries): Allow - as input file name to read from stdin.
3139 Tolerate whitespace and comment chars in input.
3140 (usage): Add more user friendly help text.
3141 (main): Add --help option.
3143 2001-11-04 Egor Duda <deo@logos-m.ru>
3145 * strace.cc (main): New option '-w'. Start traced process in separate
3146 window. New option '-S x'. Flush buffered output every x seconds.
3147 (create_child): Start child process in new window, when requested.
3148 When requested, periodically flush debugging output.
3150 2001-10-24 Christopher Faylor <cgf@redhat.com>
3152 * Makefile.in: Remove EXEEXT consideration. We always need .exe
3155 2001-10-20 Corinna Vinschen <corinna@vinschen.de>
3157 * mkgroup.c: Avoid compiler warnings.
3158 (print_special): New function.
3159 (main): Print special accounts by calling print_special().
3160 * mkpasswd.c: Avoid compiler warnings.
3161 (enum_users): Print additional U-domain\username info in gecos
3162 field when SIDs are printed.
3163 (print_special): New function.
3164 (main): Print special accounts by calling print_special().
3166 2001-10-15 Christopher Faylor <cgf@redhat.com>
3168 * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
3170 2001-10-13 Christopher Faylor <cgf@redhat.com>
3172 * Makefile.in: Allow stdinc searching for dumper.
3174 Tue Oct 9 21:59:00 2001 Christopher Faylor <cgf@cygnus.com>
3176 * Makefile.in (MINGW_INCLUDES): Accommodate changes in Makefile.common.
3178 Sun Oct 7 23:06:39 2001 Christopher Faylor <cgf@cygnus.com>
3180 * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor
3183 Fri Sep 21 20:40:30 2001 Christopher Faylor <cgf@cygnus.com>
3185 * Makefile.in (mingw_getopt.o): Ensure that newlib include directories
3188 Thu Sep 20 21:00:20 2001 Christopher Faylor <cgf@cygnus.com>
3190 * Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.
3192 Wed Sep 19 12:22:08 2001 Christopher Faylor <cgf@cygnus.com>
3194 * Makefile.in: Filter newlib includes from mingw compilation.
3196 2001-09-14 Egor Duda <deo@logos-m.ru>
3198 * dumper.cc (dumper::dumper): Print error code in case of error.
3199 (dumper::add_thread): Ditto.
3200 (dumper::collect_memory_sections): Ditto.
3201 (dumper::dump_memory_region): Ditto.
3202 (dumper::collect_process_information): Ditto.
3203 (print_section_name): Fix formatting.
3205 2001-09-13 Egor Duda <deo@logos-m.ru>
3207 * dumper.cc (main): Properly recognize negative pids (used by w9x).
3209 2001-09-09 Egor Duda <deo@logos-m.ru>
3211 * dumper.cc (main): Change command-line arguments format to be
3212 similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to
3213 CYGWIN environment variable to perform core dumping in case of
3217 Wed Sep 5 22:37:21 2001 Christopher Faylor <cgf@cygnus.com>
3219 * Makefile.in (dumper): Change logic for libbfd and libintl so that
3220 they will be found either in the build tree or the installed directory.
3221 * mkpasswd.c (enum_users): Add a comment as a password for NT.
3223 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3225 * mount.cc (mount_commands): Don't write /cygdrive/u mount points.
3227 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3229 * mount.cc (longopts): Add mount-commands to options list.
3230 (usage): Add mount-commands option.
3231 (mount_commands): New function. Write commands to recreate current
3234 Sat Sep 1 15:58:11 2001 Christopher Faylor <cgf@cygnus.com>
3236 * mount.cc (main): Eliminate excess arguments in printf.
3238 2001-08-30 Egor Duda <deo@logos-m.ru>
3240 * dumper.h: Update copyright notice.
3242 * dumper.cc: (dumper::print_core_section_list): New function.
3243 * dumper.h: (dumper::print_core_section_list): Declare it.
3244 * dumper.cc (print_section_name): New function.
3245 (dumper::collect_process_information): Augment debugging output.
3246 Stop debugee processing if it posts double exception.
3247 (usage): Fix typo in option name.
3249 Tue Aug 28 14:45:02 2001 Christopher Faylor <cgf@cygnus.com>
3251 * mount.cc (main): Issue correct warning for 'not enough arguments'.
3253 2001-08-14 Joerg Schaible <joerg.schaible@gmx.de>
3255 * cygpath.cc (main): Support -w for Windows (System) directories and
3256 return physical correct orthography for the Windows System dir.
3258 2001-07-14 Chris Genly <chgenly@alum.mit.edu>
3260 * regtool.cc (find_key): Handle keys with only one subkey.
3262 Wed Jun 27 22:46:10 2001 Christopher Faylor <cgf@cygnus.com>
3264 * regtool.cc (find_key): Revert previous change.
3266 Wed Jun 27 13:37:41 2001 Keith Starsmeare" <keith_starsmeare@yahoo.co.uk>
3268 * regtool.cc (find_key): Allow '/' as a synonym for '\\'.
3270 Fri Jun 15 00:49:21 2001 Christopher Faylor <cgf@cygnus.com>
3272 * mkpasswd.c (main): Output passwd file in binary mode so that there
3273 are no CRs in the file.
3274 * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive
3277 Tue May 1 10:50:48 2001 Christopher Faylor <cgf@cygnus.com>
3279 * mkpasswd.c (enum_users): Use /bin/bash as the default shell.
3282 Sat Apr 28 22:32:01 2001 Christopher Faylor <cgf@cygnus.com>
3284 * passwd.cc (ttymnam): New function.
3285 (main): Use ttynam() to report name of tty.
3287 2001-04-19 Egor Duda <deo@logos-m.ru>
3289 * dumper.cc (dumper::init_core_dump): Set architecture field in dump
3292 Mon Apr 16 15:08:00 2001 Corinna Vinschen <vinschen@redhat.com>
3294 * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
3296 (load_netapi): Load function pointers `netlocalgroupgetmembers'
3297 and `netgroupgetusers'.
3298 (enum_local_users): New function.
3299 (enum_local_groups): Call `enum_local_users' for each group if
3300 `print_users' is set.
3301 (enum_users): New function.
3302 (enum_groups): Call `enum_users' for each group if `print_users' is set.
3303 (usage): Add usage text for `-u/--users'.
3304 (longopts): Add option `--users'.
3305 (opts): Add option character `u'.
3306 (main): Set `print_users' according to option `-u/--users'.
3307 Call `enum_local_groups' and `enum_groups' with additional parameter
3310 2001-04-15 Michael A Chase <mchase@ix.netcom.com>
3312 * mount.cc (longopts): Add help to options list.
3313 (opts): Add 'h' to options string.
3314 * umount.cc (longopts): Add help to options list.
3315 (opts): Add 'h' to options string and change 'R' to 'A'.
3317 2001-04-13 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
3319 * mkgroup.c (enum_groups): Use RID + offset specified an additional
3321 (usage): Add description of -o option.
3322 (longopts, opts): Add specifications of -o/--id-offset option.
3323 (main): Add -o option. Invoke enum_groups with specified offset.
3324 * mkpasswd.c (enum_users): Just like mkgroup.c.
3325 (usage, longopts, opts): Ditto.
3326 (main): Add -o option. Invoke enum_users with specified offset only
3327 against domain accounts.
3329 2001-04-11 Egor Duda <deo@logos-m.ru>
3331 * mkgroup.c (uni2ansi): Use native method to convert from Unicode
3332 to multi-byte strings.
3333 * mkpasswd.c (uni2ansi): Ditto.
3334 (enum_users): Pass buffer size when converting string.
3335 (enum_local_groups): Ditto.
3336 * mkgroup.c (enum_groups): Ditto.
3337 (enum_local_groups): Ditto.
3339 Mon Apr 2 22:41:33 2001 Christopher Faylor <cgf@cygnus.com>
3341 * mount.cc (main): Use getopt_long for parsing arguments.
3342 (usage): Reformat, show long and short options.
3343 * umount.cc (main): Ditto, all of the above.
3345 Mon Apr 2 10:58:26 2001 Christopher Faylor <cgf@cygnus.com>
3347 * mount.cc (show_mounts): Change format string to more closely resemble
3348 UNIX when displaying mount table.
3350 Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
3352 * kill.cc (forcekill): Use dwProcessId when opening a process, not the
3355 Mon Mar 5 18:50:00 2001 Corinna Vinschen <vinschen@redhat.com>
3357 * getfacl.c: Add copyright hint.
3361 Tue Jan 09 10:26:23 2001 Tony Sideris <tonys1110@home.com>
3363 * regtool.cc (cmd_list): Add new registry display options.
3364 (cmd_list): Add code to implement -p, -k, and -l options.
3366 * regtool.cc (Fail): Add call to LocalFree to free memory allocated by
3369 Wed Jan 10 09:16:57 2001 Christopher Faylor <cgf@cygnus.com>
3371 * regtool.cc (translate): Ensure that 'c' is initialized.
3372 (cmd_set): Ditto for rv.