1 2011-01-10 Jon TURNEY <jon.turney@dronecode.org.uk>
3 * cygcheck.cc (main): don't imply -d from -s option to cygcheck
5 2010-12-11 Corinna Vinschen <corinna@vinschen.de>
7 * setfacl.c (strchrnul): New function.
8 (getaclentry): Rewrite.
10 2010-12-06 Corinna Vinschen <corinna@vinschen.de>
12 * cygpath.cc (get_device_name): Fix path length test.
14 2010-10-30 Dmitry Potapov <dpotapov@gmail.com>
16 * regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ
19 2010-09-06 Corinna Vinschen <corinna@vinschen.de>
21 * cygpath.cc (RtlEqualUnicodePathPrefix): New helper function.
22 (HARDDISK_PREFIX): Move.
23 (GLOBALROOT_PREFIX): Define.
24 (get_device_name): Take GLOBALROOT_PREFIX into account.
25 Improve check for path to allow filesystem access via block devices.
26 Potentially drop \\.\ prefix if resulting path is a valid DOS
28 (do_pathconv): Make sure to drop \\?\ prefix only if path is
29 actually a filesystem based path.
30 (print_version): Fix copyright.
32 2010-08-28 Corinna Vinschen <corinna@vinschen.de>
34 * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to
35 LOAD_WITH_ALTERED_SEARCH_PATH.
37 2010-08-28 Corinna Vinschen <corinna@vinschen.de>
39 * loadlib.h: New header implementing safe LoadLibrary calls.
40 Include throughout files using LoadLibrary function.
41 * cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via
42 GetModuleHandle, rather than using LoadLibrary.
43 * cygpath.cc (get_long_name): Ditto.
44 (do_sysfolders): Append .dll suffix in LoadLibrary call.
45 * ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES
46 to avoid loading malicious library code.
47 * locale.cc (print_locale_with_codeset): Change way to retrieve
50 2010-08-26 Corinna Vinschen <corinna@vinschen.de>
52 * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
53 harddisks, if available.
55 2010-08-21 Corinna Vinschen <corinna@vinschen.de>
57 * ldd.cc (report): Drop long pathname considerations which result in
58 invalid path, now that this is done in cygwin_conv_path.
60 2010-08-13 Corinna Vinschen <corinna@vinschen.de>
62 * mount.cc (from_fstab): Fix potentially fatal typo.
64 2010-08-11 Corinna Vinschen <corinna@vinschen.de>
66 * mount.cc (do_mount): Don't treat "bind" mount as remote mount.
67 (mount_entries): Drop the "bind" option from output.
68 * utils.sgml (mount): Match examples to actual mount output. Add
69 "bind" option and add example.
71 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
73 * mingw: Use sysroot, if present, for mingw_dir.
75 2010-07-21 Corinna Vinschen <corinna@vinschen.de>
77 * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.
78 (transform_chars): New function, copied from Cygwin.
79 (simple_nt_stat): New function to check file existance using native
80 NT function. Explain why.
81 (directory_exists): Call simple_nt_stat.
84 2010-07-05 Christopher Faylor <me+cygwin@cgf.cx>
86 * ldd.cc: Clean up formatting throughout.
89 (print_dlls): Reset head here. Record seen dll names so they will
90 not potentially be printed later.
91 (process_file): Remove clearing of head here.
93 2010-07-05 Corinna Vinschen <corinna@vinschen.de>
95 * dump_setup.cc (dump_file): Read requested content from setup.rc
96 file created by newer setup.exe.
98 2010-06-29 Corinna Vinschen <corinna@vinschen.de>
100 * utils.sgml (locale): Change stray local cygdrive prefix to Cygwin's
103 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
105 * utils.sgml (mount): Add description for "dos" and "ihash" mount
108 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
110 * path.cc: Include sys/cygwin.h if built for mount(1).
111 (struct opt): Add "dos" and "ihash" options.
112 (from_fstab_line): Call cygwin_internal rather than read_flags if
115 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
117 * mount.cc (oopts): Remove entirely.
118 (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
120 (print_version): Fix copyright date.
121 (main): Replace option processing loop with single call to
122 cygwin_internal (CW_CVT_MNT_OPTS).
124 2010-04-28 Corinna Vinschen <corinna@vinschen.de>
126 * locale.cc (print_lc_xxx_charset): Remove.
127 (enum type_t): Change according to the fact that nl_langinfo now returns
128 all locale category values.
129 (lc_ctype_names): Add new category members. Redefine for exclusive
131 (lc_numeric_names): Ditto.
132 (lc_time_names): Ditto.
133 (lc_collate_names): Ditto.
134 (lc_monetary_names): Ditto.
135 (lc_messages_names): Ditto.
136 (print_lc): Change switch according to new type_t values.
138 2010-03-27 Corinna Vinschen <corinna@vinschen.de>
140 * locale.cc (print_charmaps): Add EUC-CN and GB2312.
142 2010-03-24 Corinna Vinschen <corinna@vinschen.de>
144 * regtool.cc (find_key): Fix allocation size of "value".
146 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
148 * locale.cc (add_locale_alias_locales): Always use loc_num at function
149 start to avoid confusing bsearch.
151 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
153 * locale.cc: Revert accidental checkin of unfinished changes.
155 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
157 * locale.cc (print_locale_with_codeset): Drop redundant name parameter.
158 Simplify creating locale string. Add "@" in case of a modifier.
159 (print_locale): Drop name parameter in calls to
160 print_locale_with_codeset.
162 2010-02-25 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
164 * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.
166 2010-02-25 Corinna Vinschen <corinna@vinschen.de>
168 * utils.sgml (locale): Change description of -a and -av to match
171 2010-02-23 Corinna Vinschen <corinna@vinschen.de>
173 * locale.cc (printlocale): Remove.
174 (loc_t): New type to keep locale information for printing.
175 (print_codeset): New function to print codeset as on Linux.
176 (print_locale_with_codeset): New function to print single locale.
177 Print verbose style as the Linux locale(1) tool.
178 (print_locale): New function to print single locale plus its UTF-8
179 variation, if available.
180 (compare_locales): New helper function for bsearch and qsort on loc_t.
181 (add_locale): New function to store locale in loc_t array.
182 (add_locale_alias_locales): New function to store locales from
183 locale.alias file in loc_t.
184 (print_all_locales): Call add_locale instead of printlocale.
185 Call add_locale_alias_locales, sort locales alphabetically and print
188 2010-02-22 Christopher Faylor <me+cygwin@cgf.cx>
190 * strace.cc (mnemonic_table): Add "special" mask option.
191 (usage): Document it.
194 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
196 * cygpath.cc (do_pathconv): Fix erroneously printing native NT path
197 prefix introduced by previous patch.
199 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
201 * locale.cc (lc_time_names): Add "date_fmt" entry.
203 2010-02-19 Christopher Faylor <me+cygwin@cgf.cx>
205 * strace.cc (mnemonic_table): Add pthread mask option.
206 (usage): Document strace pthread mask option.
209 2010-02-19 Corinna Vinschen <corinna@vinschen.de>
211 * locale.cc (print_lc_mstrings): New function to print
212 semicolon-separated strings.
213 (enum type_t): New type is_sepstrings_linf.
214 (lc_time_names): Change type of era and alt_digits entry to
216 (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings
219 2010-02-17 Corinna Vinschen <corinna@vinschen.de>
221 * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.
222 * getlocale.c: Rename to ...
223 * locale.cc: Revamp to add full functionality of POSIX locale(1) tool,
224 as far as Cygwin supports it.
225 * utils.sgml (getlocale): Move and rename to ...
226 (locale): Accommodate new functionality.
228 2010-02-13 Ilguiz Latypov <ilatypov@infradead.org>
230 * cygpath.cc (do_pathconv): Fix potential crash.
232 2010-02-11 Corinna Vinschen <corinna@vinschen.de>
234 * getlocale.c (main): Rename local variable to avoid problems.
235 Avoid string comparisons, rather test language and sublanguage codes
236 wheere possible. Add more code to handle Serbian language/territory
237 state identical on all Windows versions. Fix handling for "@latin"
238 modifier in Belarusian locale.
239 * utils.sgml (getlocale): Try to make wording and example clearer.
241 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
243 * getlocale.c (usage): Change text slightly.
245 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
247 * getlocale.c (main): Restrict -a loop to avoid psudo language entries
250 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
252 * getlocale.c (main): Revamp -a loop to avoid duplicates and to print
253 locales with the correct, supported modifiers.
255 2010-01-25 Corinna Vinschen <corinna@vinschen.de>
257 * getlocale.c (main): Use setlocale and fetch string from Windows
258 using GetLocaleInfoW. Explain why.
260 2010-01-22 Corinna Vinschen <corinna@vinschen.de>
262 * Makefile.in (CYGWIN_BINS): Add getlocale.
263 * getlocale.c: New file.
264 * utils.sgml (getlocale): New section describing new getlocale tool.
266 2010-01-16 Corinna Vinschen <corinna@vinschen.de>
268 * cygpath.cc (get_mixed_name): Drop function. Replace with call to
269 convert_slashes throughout.
270 (do_sysfolders): Free allocated buffer.
271 (do_pathconv): Fix freeing last buffer.
273 2010-01-11 Corinna Vinschen <corinna@vinschen.de>
275 * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
277 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
279 * cygpath.cc: Throughout, free obsolete path buffers.
281 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
283 * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
284 Revert usage of argz functions when reading input from file and
285 simplify option usage. Allow only one option argument and use
286 the rest as filename argument to allow spaces in filenames. Restrict
287 processing special folder type options to one line.
289 2009-12-17 Christopher Faylor <me+cygwin@cgf.cx>
291 * ps.cc (main): Return 0 if pid found.
293 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
295 * regtool.cc: Throughout, convert all registry calls to wide char
296 calls and use string conversion according to current locale.
297 (longopts): Change "dword-le" to "dword-be", as was originally
299 (usage): Change usage accordingly.
300 (print_version): Simplify copyright dates in output.
301 (cmd_list): Handle REG_LINK like REG_SZ.
303 (main): Call setlocale.
304 * utils.sgml (regtool): Fix options and add missing descriptions for
307 2009-11-29 Corinna Vinschen <corinna@vinschen.de>
309 * setfacl.c (getaclentry): Allow to delete default entries for the
310 owner and owner group.
312 2009-11-27 Corinna Vinschen <corinna@vinschen.de>
314 * cygcheck.cc (dump_sysinfo): Fix typo in products.
316 2009-11-11 Corinna Vinschen <corinna@vinschen.de>
318 * getfacl.c (print_version): Fix copyright.
319 (main): Don't reuse local variables confusingly. Don't print any file
320 information if acl() fails. Improve error message. Always print a
321 trailing empty line. Set return code to 2 if accessing some file fails.
323 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
325 * path.cc (read_mounts): Skip unnecessary test if path has been
326 fetched from loaded cygwin1.dll.
328 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
330 * cygcheck.cc (cygwin_dll_path): New global variable.
331 (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path.
332 * strace.cc: Full ditto.
333 * path.cc (read_mounts): First use the path stored in cygwin_dll_path,
334 if available. Then fall back to fetching own path. Add comment.
335 Drop printing warnings since they look funny in strace output.
337 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
339 * path.cc (read_mounts): First get installation path from own path.
340 Check if cygwin1.dll exists in same directory. Only if not, try to
341 get installation path from setup registry key. Add ample warnings.
343 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
345 * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.
347 2009-10-31 Corinna Vinschen <corinna@vinschen.de>
349 * cygcheck.cc: Include cygprops.h.
350 (del_orphaned_reg): New option variable.
351 (unique_object_name_opt): Ditto.
352 (handle_reg_installation): New function.
353 (print_reg_installations): Ditto.
354 (del_orphaned_reg_installations): Ditto.
356 (handle_unique_object_name): Ditto.
357 (dump_sysinfo): Call print_reg_installations from here.
358 (usage): Add usage for new options --delete-orphaned-installation-keys,
359 --enable-unique-object-names, --disable-unique-object-names, and
360 --show-unique-object-names.
361 (longopts): Add new options --delete-orphaned-installation-keys,
362 --enable-unique-object-names, --disable-unique-object-names, and
363 --show-unique-object-names.
364 (main): Handle new options.
365 * utils.sgml (cygcheck): Change documentaion accordingly.
367 2009-10-28 Corinna Vinschen <corinna@vinschen.de>
369 * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWIN
370 environment variable.
371 (dump_sysinfo): Don't tweak CYGWIN environment variable, just call
374 2009-10-20 Corinna Vinschen <corinna@vinschen.de>
376 * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
378 2009-10-15 Corinna Vinschen <corinna@vinschen.de>
380 * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
382 (get_user_folder): Remove.
383 (do_sysfolders): Use get_special_folder instead of get_user_folder.
384 Fetch system paths as WCHAR and convert using my_wcstombs.
386 2009-10-12 Corinna Vinschen <corinna@vinschen.de>
388 * kill.cc (main): Skip to PID loop on invalid option to handle
391 2009-08-11 Corinna Vinschen <corinna@vinschen.de>
393 * mkgroup.c (enum_local_groups): Avoid error message if given group
394 name isn't found and return 0 to allow searching to proceed. Always
395 return 0 or 1, not -1.
396 (enum_groups): Avoid error message if given group name isn't found.
397 * mkpasswd.c (enum_users): Ditto.
399 2009-08-10 Dave Korn <dave.korn.cygwin@gmail.com>
401 * mingw: Add fallbacks to search for MinGW components in standard
402 install locations if not found in compiler's $prefix.
404 2009-08-09 Corinna Vinschen <corinna@vinschen.de>
406 * mount.cc (do_mount): Don't exit, just return.
408 2009-07-23 Corinna Vinschen <corinna@vinschen.de>
410 * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
413 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
415 * mount.cc (do_mount): Replace --no-executable flag with notexec
416 mount option in hint for remote filesystems.
417 * path.cc (getmntent): Fix typo (noexec -> notexec).
419 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
421 * Makefile.in (path-mount.o): Add a rule to build stripped down version
422 of path.cc for usage in mount.
423 (mount.exe): Add dependency to path-mount.o.
424 * mount.cc (force): Convert to bool value. Accommodate throughout.
425 (from_fstab): New function.
426 (do_mount_from_fstab): New function.
427 (longopts): Add --all option.
428 (opts): Add -a option.
429 (usage): Document -a/--all option.
430 (main): Handle -a option as well as single parameter.
431 * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
432 (mount_table): Remove static storage class.
433 (max_mount_entry): Ditto.
434 (root_here): Unused. Remove.
435 (from_fstab_line): Remove static.
436 * path.h (struct mnt_t): Define here rather than in path.cc.
437 (from_fstab_line): Declare.
438 (mount_table): Declare.
439 (max_mount_entry): Declare.
440 * utils.sgml (mount): Document -a/--all option and mounting of single
441 path from fstab files.
443 2009-07-15 Corinna Vinschen <corinna@vinschen.de>
445 * strace.cc (main): Open trace output file in UNIX mode.
447 2009-07-13 Corinna Vinschen <corinna@vinschen.de>
449 * cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.
451 2009-07-04 Christopher Faylor <me+cygwin@cgf.cx>
453 * cygwin-console-helper.cc: New file.
455 2009-06-10 Corinna Vinschen <corinna@vinschen.de>
457 * path.cc (oopts): Sort alphabetically, add missing "auto" and
459 (from_fstab_line): Handle mount points same as Cygwin itself. Use
460 "cygdrive prefix" as posix name of cygdrive prefix.
461 (from_fstab): Add auto entries for /usr/bin and /usr/lib. Add
462 MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
463 Use "cygdrive prefix" as posix name of default cygdrive prefix.
464 (getmntent): Allocate smaller buffers. Align output closer to output
467 2009-05-17 Corinna Vinschen <corinna@vinschen.de>
469 * cygpath.cc (codepage): New variable.
470 (long_options): Add --codepage option.
471 (options): Add -C option.
472 (usage): Add -C/--codepage description.
473 (my_wcstombs): New function. Use througout instead of wcstombs.
474 (do_options): Handle -C/--codepage option.
475 * utils.sgml (cygpath): Add description for new -C/--codepage option.
477 2009-05-16 Corinna Vinschen <corinna@vinschen.de>
479 * Makefile.in (cygpath.exe): Link against cygwin.a before linking
480 against ntdll.dll to avoid linking symbols defined in both DLLs
484 2009-05-15 Corinna Vinschen <corinna@vinschen.de>
486 * cygpath.cc (main): Only setlocale for LC_CTYPE category. Fallback
487 to UTF-8 if locale is "C".
488 * ldd.cc (main): Ditto.
489 * mkgroup.c (main): Ditto.
490 * mkpasswd.c (main): Ditto.
491 * passwd.c (main): Ditto.
493 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
494 Christopher Faylor <me+cygwin@cgf.cx>
496 * mount.cc (oopts): Sort. Add override option. Add dummy "auto"
497 option for consistency.
498 (mount_entries): Avoid adding auto-mounted entries to -m output.
500 * utils.sgml: Sort mount options. Add description of override option.
502 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
504 * Makefile.in: Link ps.exe agains ntdll.dll.
505 * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes
506 have to be enumerated. Workaround EnumProcessModules problem when
507 running under WOW64 and use NtQueryInformationProcess to fetch
510 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
512 * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generate
515 * mkgroup.c: Accommodate ctype changes.
520 2009-05-04 Christopher Faylor <me+cygwin@cgf.cx>
522 * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if
523 find_on_path doesn't find the app on the path.
525 2009-05-04 Corinna Vinschen <corinna@vinschen.de>
527 * cygcheck.cc (usage): Fix option order and print.
529 2009-04-22 Christopher Faylor <me+cygwin@cgf.cx>
531 * strace.cc (create_child): Set CYGWIN=noglob when starting new process
532 so that Cygwin will leave already-parsed the command line alonw.
534 2009-04-15 Corinna Vinschen <corinna@vinschen.de>
536 * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
537 given. Do backslash to slash conversion for mixed paths after
538 handling \\?\ prefix.
540 2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
542 * Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.
544 2009-04-07 Corinna Vinschen <corinna@vinschen.de>
546 * path.cc (readlink): Accommodate new UTF-16 symlinks.
548 2009-04-03 Kevin Buettner <kevinb@redhat.com>
550 * utils.sgml: Various syntactical and semantical fixes.
551 * cygcheck.cc (usage): Fix --find-package explanation.
553 2009-03-26 Yaakov Selkowitz <yselkowitz@cygwin.com>
555 * utils.sgml (passwd -R): Remove references to CYGWIN="server".
557 2009-03-24 Corinna Vinschen <corinna@vinschen.de>
559 * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
560 * strace.cc (proc_child): Ditto.
561 * ldd.cc: Remove now useless undef wcscasecmp.
563 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
565 * passwd.c (usage): Change description for -d option according to
568 * utils.sgml: Add missing description for passwd -d option.
570 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
572 * passwd.c (caller_is_admin): New function to test if calling user
573 is an administrator by inspecting user token.
574 (main): Drop fetching caller info from logonserver. Only fetch
575 server from environment when trying to change password for own
576 account. Drop admin check entirely in case of doing account
577 maintainance. Otherwise replace check for admin by result of
578 caller_is_admin call.
580 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
582 * passwd.c (main): Always get logonserver from environment and
583 use when fetching user info for caller.
585 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
587 * ldd.cc: Fix compiler warning.
589 * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
590 (main): Call setlocale. Fix a bug in fetching the logon server from
593 2009-03-18 Christopher Faylor <me+cygwin@cgf.cx>
597 2009-03-17 Christopher Faylor <me+cygwin@cgf.cx>
599 * ldd.cc (load_dll): Start helper program rather than ldd.exe.
600 (set_entry_point_break): Rename from get_entry_point.
601 (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing
602 specific dll name if we're looking at a dll.
603 (report): Always dump dlls on process exit. Don't allow thread
604 creation. Accommodate get_entry_point rename.
605 (start_process): Start process with DEBUG_ONLY_THIS_PROCESS.
606 (longopts): Eliminate "dll" option.
609 2009-03-17 Corinna Vinschen <corinna@vinschen.de>
610 Christopher Faylor <me+cygwin@cgf.cx>
612 * ldd.cc: Use wide character Win32 paths throughout.
613 (load_dll): Fix size expression (add fn) in realloc.
615 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
617 * ldd.cc (longopts): Add --dll option.
618 (get_module_filename): Generalized wrapper function which avoid path
620 (load_dll): Handle special-case of inspecting a DLL.
621 (start_process): Accept an output parameter "isdll". Detect when file
622 to start is a DLL and start a wrapper instead.
623 (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
624 everything before the DLL itself first appears. (This is not strictly
625 correct and should be fixed eventually)
626 (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let
627 captive ldd process terminate normally. Pass dll info to
628 print_dlls_and_kill_inferior.
629 (main): Handle special-case "--dll" option by loading the DLL and
632 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
634 * path.cc (from_fstab): Use wcstombs/mbstowcs instead of
635 WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
637 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
639 * wide_path.h (class wide_path): New class to convert Windows path
640 to WCHAR win32 path, including long path conversion if necessary.
641 * cygcheck.cc: Use class wide_path throughout to call Win32 functions
642 taking potentially long filenames.
643 (display_error): Use snprintf rather than sprintf.
644 (display_error_fmt): Ditto.
645 (dump_sysinfo): Use FindFirstFileW/FindNextFileW.
646 * cygpath.cc: Use class wide_path throughout to call Win32 functions
647 taking potentially long filenames.
648 (get_device_name): Raise buffer size to take long pathnames.
649 (get_short_paths): Convert to using GetShortPathNameW.
650 (get_short_name): Ditto.
651 (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW.
652 (get_long_name): Convert to using GetLongPathNameW.
653 (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX.
654 (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t
655 Win32 path name and drop long pathname prefix if possible.
656 (main): Call setlocale to accommodate wide char/multibyte conversions.
658 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
660 * ldd.cc: Rework to detect missing DLLs.
661 (start_process): Change to expect windows filename as input.
662 (tocyg): New function - convert cygwin fn to windows fn.
663 (print_dlls_and_kill_inferior): Accept extra argument denoting whether
664 to open input and look for nonexistent DLLs. Use tocyg to convert
665 filename and pass it to start_process.
666 (report): Flag when an DLL-not-found exception occurs and pass this
667 information to print_dlls_and_kill_inferior.
668 (filelist): New structure.
669 (saw_file): New function.
670 (dump_import_directory): Ditto.
672 (skip_dos_stub): Ditto.
673 (get_directory_index): Ditto.
674 (process_file): Ditto.
676 2009-03-09 Corinna Vinschen <corinna@vinschen.de>
678 * utils.sgml: Fix typo.
680 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
682 * cygcheck.cc (usage): Fix typo.
684 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
686 * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
687 as example cygdrive prefix. Remove reference to -u and -s options.
688 Add an example using the -o flag.
690 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
692 * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
695 2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
697 * Makefile.in: Add DESTDIR functionality.
699 2009-01-29 Corinna Vinschen <corinna@vinschen.de>
701 * cygcheck.cc (dump_sysinfo): Evaluate and print state of
702 obcaseinsensitive kernel flag.
704 2009-01-21 Corinna Vinschen <corinna@vinschen.de>
706 * passwd.c: Remove CYGWIN=server requirement from usage text.
708 2009-01-17 Corinna Vinschen <corinna@vinschen.de>
710 * Makefile.in: Fix copyright date.
711 * cygcheck.cc (scan_registry): Take additional parameter and add code
712 to avoid recursion in Wow6432Node subkey. Rename variable cygnus to
713 cygwin. Scan for "Cygwin" instead of for "cygnus" substring.
714 (dump_sysinfo): Drop unused calls to scan_registry. Drop scanning
717 2009-01-16 Corinna Vinschen <corinna@vinschen.de>
719 * cygcheck.cc (dump_sysinfo): Raise size of osname. Add Windows 7
720 and Windows 2008 R2 as recognized OSes. Update products array to
721 the latest documented list.
723 2009-01-09 Christopher Faylor <me+cygwin@cgf.cx>
725 * ldd.cc: New file. First stab at implementing ldd-like functionality
727 * Makefile.in (CYGWIN_BINS): Add ldd.
728 (ldd.exe): Use -lpsapi.
730 2009-01-05 Pierre Humblet <Pierre.Humblet@ieee.org>
732 * cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
734 2008-12-30 Pierre Humblet <Pierre.Humblet@ieee.org>
736 * cygcheck.cc (pretty_id): Quote the path for popen.
737 (dump_sysinfo_services): Ditto.
739 2008-12-16 Corinna Vinschen <corinna@vinschen.de>
741 * utils.sgml: Fix typo in passwd screen text.
743 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
745 * passwd.c (main): Put how to delete the registry password on its own
746 line in passwd -R output.
748 2008-12-13 Christopher Faylor <me+cygwin@cgf.cx>
750 * utils.sgml: Convert some backslashes to slashes.
752 2008-11-26 Corinna Vinschen <corinna@vinschen.de>
754 * passwd.c (longopts): Add --reg-store-pwd option.
755 (opts): Add -R option.
756 (usage): Add text for -R/--reg-store-pwd option.
757 (main): Fix size of local user and password string arrays.
759 * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
761 2008-10-29 Christopher Faylor <me+cygwin@cgf.cx>
763 * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything
766 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
768 * mingw: Set sawcfile when -xc* is detected. Extend list of detected
771 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
773 * mingw: Add more checks to allow more varied use.
775 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
777 * mingw: Use a better method to find where mingw directory lives.
779 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
781 * mingw: New front-end script to control building of MinGW files
782 without using the deprecated -mno-cygwin option.
783 * Makefile.in: Use mingw front-end.
785 2008-09-12 Christopher Faylor <me+cygwin@cgf.cx>
787 * cygcheck.cc (pathlike::check_existence): Remove class name from
789 (display_internet_error): Use proper format specifier for DWORD.
790 (environ): Remove unneeded declaration.
791 (main): Use brace around nested if to avoid an overly-helpful compiler
793 * dump_setup.cc (parse_filename): Reorganize nested if to avoid an
794 overly-helpful compiler warning.
795 * path.cc (GUID_shortcut): Use braces around part of initializer which
797 (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a
799 (struct opt): Make static.
800 * ps.cc (main): Reorganize nested if to avoid an overly-helpful
802 * regtool.cc: Make some anonymous structs static to avoid a compiler
804 * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
806 * strace.cc (add_child): Use proper format specifier for DWORD.
807 (remove_child): Ditto.
810 2008-08-27 Christopher Faylor <me+cygwin@cgf.cx>
812 * cygcheck.cc (nuke): Use malloc rather than alloca for environment
814 (load_cygwin): Ditto.
815 * dump_setup.cc (parse_filename): Cosmetic changes.
816 (get_packages): Ditto.
818 2008-08-25 Corinna Vinschen <corinna@vinschen.de>
820 * mkgroup.c (enum_local_groups): Don't skip printing groups when
821 print_current is set and group SID is not curr_pgrp.
822 (enum_groups): Ditto.
823 (main): Fix condition when SYSTEM group gets printed.
824 * mkpasswd.c (enum_users): Don't skip printing users when print_current
825 is set and user SID is not curr_user.
826 (main): Allow printing standard accounts even when print_current is set.
828 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
830 * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
831 if a group exists, rather than just allocating a buffer and going ahead.
833 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
835 * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
836 as argument when LookupAccountXXX failed.
837 (enum_groups): Ditto.
839 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
841 * mkgroup.c (enum_local_groups): Return failure if looking for a single
842 group succeeded. Add comment.
844 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
846 * mkgroup.c (main): Keep correctly track of optional arguments.
847 * mkpasswd.c (main): Ditto.
849 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
851 * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
852 Keep track of optional argumnts and fix up optind afterwards.
853 * mkpasswd.c (main): Ditto.
855 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
857 * cygcheck.cc (print_version): Update copyright dates.
859 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
861 * mkpasswd.c (main): Avoid printing system accounts when a single user
862 name has been requested.
864 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
866 * Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet
868 * mkgroup.c: Change all global variables and most functions to static.
869 (enum_local_groups): Add a print_current parameter to control whether
870 entries for everything should be printed or just the current user.
871 (enum_groups): Ditto.
872 (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL
873 deference when no command line arguments are specified. Accommodate
874 argument changes to above functions. Avoid printing SYSTEM account
875 when print_current is specified. Issue error when extra stuff is found
877 * mkpasswd.c: Change all global variables and most functions to static.
878 (enum_users): Add a print_current parameter to control whether entries
879 for everything should be printed or just the current user.
880 (main): Move call fetch_current_user_sid earlier to avoid a NULL
881 deference when no command line arguments are specified. Accommodate
882 argument change to above function. Avoid printing standard accounts
883 when print_current is specified. Issue error when extra stuff is found
886 2008-08-15 Corinna Vinschen <corinna@vinschen.de>
888 * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
889 group SID from user token.
890 (current_group): Move up in file. Move fetching primary group SID to
891 fetch_current_pgrp_sid.
892 (enum_local_groups): Check if current SID is the same as current user's
894 (enum_groups): Ditto.
895 (main): Call fetch_current_pgrp_sid before enumerating groups. Call
896 current_group only if current group hasn't been enumerated already.
897 * mkpasswd.c (fetch_current_user_sid): New function to fetch current
898 user SID from user token.
899 (current_user): Move fetching current user SID to
900 fetch_current_user_sid.
901 (enum_users): Check if current SID is the same as current user's SID.
902 (main): Call fetch_current_user_sid before enumerating users. Call
903 current_user only if current user hasn't been enumerated already.
905 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
907 * mount.cc (NT_MAX_PATH): Define.
908 (longopts): Rename mount-commands option to mount-entries.
909 (opts): Remove removed options.
910 (struct opt): Move up in file to allow using it in usage.
911 (usage): Change text for --mount-entries option. Remove
912 -X option. Add valid options output.
913 (main): Remove handling -b option.
914 (convert_spaces): New static function to convert spaces to "\040"
916 (mount_entries): Renamed from mount_commands. Rewrite to emit
917 /etc/fstab compatible output.
918 (show_cygdrive_info): Print "nouser" rather than "system".
919 * umount.cc (longopts): Remove remove-all-mounts,
920 remove-cygdrive-prefix, remove-system-mounts, system and user options.
921 (opts): Remove A, c, s, S, u options.
922 (usage): Remove text for all removed options.
923 (main): Remove handling for all removed options.
924 (remove_all_mounts): Remove.
925 (remove_all_system_mounts): Remove.
926 (remove_cygdrive_prefix): Remove.
927 * utils.sgml: Fix mount and umount documentation. Move description
928 of (cyg,not)exec options to mount table section.
930 2008-08-04 Christopher Faylor <me+cygwin@cgf.cx>
932 * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears
933 when cygwin1.dll is unloaded.
935 2008-07-30 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
937 * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
939 2008-07-27 Christopher Faylor <me+cygwin@cgf.cx>
941 * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with
944 2008-07-25 Christopher Faylor <me+cygwin@cgf.cx>
946 * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
947 (oopts): Use boolean constants for slightly increased clarity.
949 * configure.in: Remove apparently unneeded program_transfer_name code.
950 * configure: Regenerate.
952 2008-07-24 Corinna Vinschen <corinna@vinschen.de>
954 * utils.sgml: Remove useless text.
956 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
958 * mkgroup.c (main): Fix test for duplicate domain/machine request.
959 * mkpasswd.c (main): Ditto.
961 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
963 * mkgroup.c: Rework to allow per-domain/per-machine id_offset.
964 Add -b option to skip builtin groups.
965 (main): Simplify code.
966 * mkpasswd.c: Rework to allow per-domain/per-machine id_offset.
967 (main): Simplify code.
968 * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options.
969 Add mkgroup -b option.
971 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
973 * mkgroup.c: Consolidate variable names.
974 (enum_unix_groups): New function.
975 (print_special): Use LookupAccountSidW instead of LookupAccountSidA.
976 (current_group): Ditto.
977 (usage): Add -U option.
978 (longopts): Add --unix option.
979 (opts): Add -U option.
980 (main): Handle -U option. Call enum_unix_groups if set.
981 * mkpasswd.c: Consolidate variable names.
982 (current_user): Use LookupAccountSidW instead of LookupAccountSidA.
983 (enum_unix_users): New function.
984 (usage): Add -U option.
985 (longopts): Add --unix option.
986 (opts): Add -U option.
987 (main): Handle -U option. Call enum_unix_groups if set.
988 * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
990 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
992 * mkgroup.c (enum_groups): Create full qualified groupname using
993 domain or servername, depending on printing domain or machine accounts.
994 * mkpasswd.c (enum_users): Ditto for users.
996 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
998 * mkgroup.c (main): Remove special root group code. Only print
999 SYSTEM group in case of printing local machine or local domain groups.
1001 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
1003 * Makefile.in (cygcheck.exe): Link against ntdll.
1004 * bloda.cc: Use statically linked functions throughout.
1005 * cygpath.cc: Drop 9x considerations.
1006 * mkgroup.c: Revamp. Redefine -l and -d options to take optional
1007 machine and domain parameters. Redefine -c to work always, using
1008 token information. Add -L, -D, -C to create unique groupnames in
1009 domain\group syntax. Add -S option to define domain\group separator
1010 char. Ignore -u and -s options.
1011 * mkpasswd.c: Revamp. Redefine -l and -d options to take optional
1012 machine and domain parameters. Redefine -c to work always, using
1013 token information. Add -L, -D, -C to create unique usernames in
1014 domain\user syntax. Add -S option to define domain\user separator
1015 char. Ignore -g and -s options. Prefer to take homedir from $HOME
1016 over $HOMEDRIVE/$HOMEPATH.
1017 * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options.
1018 (getmntent): Accomodate throughout.
1019 * ps.cc: Fix copyright dates.
1020 * utils.sgml: Fix text for mkgroup and mkpasswd.
1022 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
1024 * mount.cc (do_mount): Remove MOUNT_ENC code.
1025 (oopts): Remove "managed" option.
1026 (mount_commands): Drop "managed" handling.
1027 * path.cc (oopts): Remove "managed" option.
1028 (getmntent): Remove MOUNT_ENC code.
1030 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
1032 * utils.sgml: Add id's to all examples.
1034 2008-07-09 Corinna Vinschen <corinna@vinschen.de>
1036 * mkgroup.c: Use statically linked functions throughout, except for
1037 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1038 Use defines instead of constants throughout.
1039 (MAX_SID_LEN): Define.
1040 (load_netapi): Just load DsGetDcNameW pointer.
1043 (enum_local_users): Take server name and use in Net... call.
1044 (DBGSID): Define datastructure.
1045 (MAX_BUILTIN_SIDS): Define.
1046 (builtin_sid_list): Define global sid list.
1047 (builtin_sid_cnt): Define counter for global sid list.
1048 (enum_local_groups): Take server name and use in Net... and Lookup...
1049 calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to
1050 NetLocalGroupEnum. Check for duplicate builtin groups.
1051 (enum_users): Take server name and use in Net... call.
1052 (usage): Change text slightly.
1053 (print_version): Fix copyright.
1054 (main): Call enum_local_groups for domains as well.
1055 * mkpasswd.c: Use statically linked functions throughout, except for
1056 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1057 Use defines instead of constants throughout.
1058 (MAX_SID_LEN): Define.
1059 (load_netapi): Just load DsGetDcNameW pointer.
1060 (uni2ansi): Use wcstombs.
1061 (current_user): Replace "unused_by_nt/2000/xp" by
1063 (enum_users): Ditto.
1064 (print_version): Fix copyright.
1066 2008-05-22 Corinna Vinschen <corinna@vinschen.de>
1068 * setfacl.c (setfacl): Change from void to int. Return 2 in case of
1070 (main): Return with error code from setfacl.
1072 2008-05-15 Corinna Vinschen <corinna@vinschen.de>
1074 * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.
1078 2008-03-23 Corinna Vinschen <corinna@vinschen.de>
1080 * mount.cc (usage): Mark -s and -u as ignored.
1081 (print_version): Simplify printing copyright dates.
1082 (main): Remove default_flag. Dont set flags on -s and -u options.
1083 (mount_commands): Drop handling -s and -u options.
1085 2008-03-22 Corinna Vinschen <corinna@vinschen.de>
1087 * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
1088 * path.cc: Fetch mount points from fstab files instead of from
1089 registry. Use adapted functions copied from Cygwin DLL.
1090 (mnt_t): Drop issys member. Define as "mnt_t" instead of "struct mnt_t"
1092 (max_mount_entry): New variable.
1093 (unconvert_slashes): Move to earlier location in file. Make inline.
1095 (get_cygdrive0): Remove.
1096 (get_cygdrive): Remove.
1097 (skip_ws): New function.
1099 (conv_fstab_spaces): Ditto.
1100 (read_flags): Ditto.
1101 (from_fstab_line): Ditto.
1103 (from_fstab): Ditto.
1105 (read_mounts): Drop old registry code. Fetch
1106 "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key. Use
1107 rootdir extracted from module path as fallback. Call from_fstab for
1108 nouser and user mount points.
1109 (setmntent): Check max_mount_entry to test if read_mounts must be
1111 (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
1113 2008-03-16 Brian Dessent <brian@dessent.net>
1115 * path.cc: Include malloc.h for alloca.
1116 (is_symlink): Rewrite. Just read the whole file in memory rather
1117 than by parts. Account for an ITEMIDLIST if present, as well as
1118 the new style of Cygwin shortcut supporting targets > MAX_PATH.
1120 2008-03-12 Corinna Vinschen <corinna@vinschen.de>
1122 * cygpath.cc (do_sysfolders): Use cygwin_conv_path.
1123 (do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list.
1124 * dumper.cc (main): Use cygwin_conv_path. Allocate target path
1126 * mkpasswd.c (current_user): Use cygwin_conv_path.
1127 (enum_users): Ditto.
1128 * ps.cc (NT_MAX_PATH): Define.
1129 (main): Use cygwin_conv_path.
1130 * regtool.cc (find_key): Ditto. Allocate target path dynamically.
1133 2008-03-11 Brian Dessent <brian@dessent.net>
1135 * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
1138 2008-03-11 Brian Dessent <brian@dessent.net>
1140 * cygcheck.cc (dirname): New static function.
1141 (find_app_on_path): Use SYMLINK_MAX. Resolve symlink relative
1142 to link's location. Adjust to the fact that cygpath already
1143 normalizes its return value.
1144 * path.cc (rel_vconcat): Add cwd parameter, and use it instead
1145 of calling GetCurrentDirectory() if possible. Rename throughout.
1146 (vcygpath): Rename from cygpath and accept cwd and va_list. Pass
1147 cwd on to rel_vconcat().
1148 (cygpath_rel): New front end for vcygpath.
1150 * path.h (cygpath_rel): Declare.
1151 (SYMLINK_MAX): Define to 4095.
1153 2008-03-09 Brian Dessent <brian@dessent.net>
1155 * Makefile.in (install): Don't install the testsuite.
1157 2008-03-08 Brian Dessent <brian@dessent.net>
1159 * Makefile.in: Add a 'check' target that builds and runs
1160 testsuite.exe from path-testsuite.o and testsuite.o.
1161 * path.cc: Include testsuite.h.
1162 (struct mnt): Change to a mnt_t typedef and don't define
1163 mount_table when TESTSUITE is defined.
1164 (find2): Don't include when TESTSUITE is defined to avoid warning.
1165 (get_cygdrive0): Ditto.
1166 (get_cygdrive): Ditto.
1167 (read_mounts): Provide empty implementation when TESTSUITE is
1169 (vconcat): Use the isslash macro.
1170 (unconvert_slashes): New helper to convert to backslashses.
1171 (rel_vconcat): Handle relative paths more gracefully.
1172 (cygpath): Skip a leading "./" sequence. Avoid double-slashes.
1173 Normalize final output to backslashes and remove redundant path
1175 * testsuite.cc: New file implementing testsuite driver.
1176 * testsuite.h: New header implementing harness mount table and
1179 2008-03-08 Brian Dessent <brian@dessent.net>
1181 * Makefile.in: Reorganize considerably, using GNU make's
1182 static pattern rules and target-specific variables.
1184 2008-02-28 Corinna Vinschen <corinna@vinschen.de>
1186 * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
1187 for LocalService and NetworkService accounts. Change comments.
1189 2008-01-13 Corinna Vinschen <corinna@vinschen.de>
1191 * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
1192 first. Load kernel32.dll earlier. Make osname a buffer. Simplify
1193 Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up
1194 non-Vista version info. Exit early if not on NT.
1196 2007-12-29 Dave Korn <dave.korn@artimi.com>
1198 * bloda.cc (enum bad_app): Add BYTEMOBILE.
1199 (dodgy_app_detects[]): Add FILENAME entry to detect bmnet.dll.
1200 (big_list_of_dodgy_apps[]): Add description for BYTEMOBILE.
1202 2007-12-20 Brian Dessent <brian@dessent.net>
1204 * Makefile.in (cygcheck.exe): Don't link to ntdll.
1205 * bloda.cc (pNtQuerySystemInformation): Add.
1206 (pRtlAnsiStringToUnicodeString): Add.
1207 (get_process_list): Use function pointers for NT functions.
1208 (dump_dodgy_apps): Skip dodgy app check on non-NT platforms.
1209 Use GetProcAddress for NT-specific functions.
1211 2007-12-07 Corinna Vinschen <corinna@vinschen.de>
1213 * regtool.cc (opts): Add missing 'W'.
1215 2007-12-06 Corinna Vinschen <corinna@vinschen.de>
1217 * ps.cc: Include limits.h.
1218 (main): Set file name buffer size to PATH_MAX. Use progname or
1219 progname_long member of struct external_pinfo dependent of the value of
1220 the struct's version member.
1222 2007-08-31 Dave Korn <dave.korn@artimi.com>
1224 * mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum
1225 call so that it will automatically size returned buffer sufficiently.
1227 2007-08-03 Dave Korn <dave.korn@artimi.com>
1229 * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
1230 dependency-filtering $(wordlist ...) call appropriately. Link ntdll.
1231 (bloda.o): New rule to build bloda.o
1232 * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps().
1233 * bloda.cc: New file implements detection of applications from the
1234 Big List Of Dodgy Apps.
1236 2007-07-24 Corinna Vinschen <corinna@vinschen.de>
1238 * COPYING.dumper: New file.
1239 * dumper.cc: Change license to plain GPLv2 + later.
1241 * parse_pe.cc: Ditto.
1243 2007-07-23 Christopher Faylor <me+cygwin@cgf.cx>
1245 * strace.cc (create_child): Don't convert a path from cygwin format
1246 unless it has a slash.
1248 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1250 * strace.cc (usage): Add missing description for -q.
1252 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1254 * Makefile.in (kill.exe): Remove reliance on libiberty.
1255 * kill.cc (strsigno): New function patterned after libiberty but using
1256 newly exported cygwin array.
1258 2007-06-03 Christopher Faylor <me+cygwin@cgf.cx>
1260 * cygcheck.cc (pathlike): New class.
1261 (paths): Redefine as type pathlike.
1262 (display_error): Declare a few different ways to allow more flexible
1264 (display_error_fmt): New function for those cases where C++ just isn't
1266 (add_path): Rewrite to allocate pathlike paths. Always tack on a
1267 trailing slash since that's what everyone who uses it wants. NULL
1268 terminate the path list. Register "it's a system path" field.
1269 (init_path): Call add_path with info regarding whether path is a system
1271 (pathlike::check_existence): Move into pathlike class. Accept file and
1272 extension arguments to build up path on the fly. Modify other
1274 (find_on_path): Constify return value and appropriate arguments.
1275 Eliminate short-circuit for fully-qualified paths. Simplify loop which
1277 (already_did): Constify argument.
1278 (track_down): Ditto. Regularize some error messages.
1279 (find_app_on_path): Ditto.
1280 (cygcheck): Constify argument. Use 20th century string handling
1282 (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case".
1283 Accommodate change of paths to pathlike.
1284 * path.cc (isslash): Rename from SLASH_P and use throughout.
1285 (rel_vconcat): Front-end to vconcat which prepends cwd to path before
1286 passing along for conversion to native windows.
1287 (cygpath): Remove "./" test. Call rel_vconcat if filename appears to
1290 2007-05-29 Pedro Alves <pedro_alves@portugalmail.pt>
1292 * dumper.cc (dumper::prepare_core_dump): Record a phdr for each section.
1294 2007-05-29 Corinna Vinschen <corinna@vinschen.de>
1296 * cygpath.cc (do_options): Allow outputflag combined with other
1297 basic flags. Only check options_from_file_flag if reading options
1299 (main): Check for NULL argz vector. Don't free argz vector prematurely.
1300 Don't force flag combination in !options_from_file_flag case.
1302 2007-05-23 Corinna Vinschen <corinna@vinschen.de>
1304 * cygpath.cc: Include argz.h.
1305 (options_from_file_flag): Move from main to global static variable.
1307 (do_sysfolders): Rename from dowin and accommodate throughout.
1308 Don't exit from here.
1309 (do_pathconv): Rename from doit and accommodate throughout.
1310 (print_version): Change copyright.
1311 (do_options): New function, centralizing option processing.
1312 Rework checking options for correctness.
1313 (action): New function, centralizing calling worker functions.
1314 (main): Simplify. Move option processing to do_options. Move calling
1315 worker functions to action. Rework getting arguments from files.
1317 2007-03-30 Mark Mitchell <mark@codesourcery.com>
1319 * utils/cygpath.cc (get_long_path_name_w32impl): Close handles returned
1322 2007-03-30 Christopher Faylor <me@cgf.cx>
1324 * mount.cc (main): Turn dos file warnings off since we know what we're
1327 2007-02-22 Corinna Vinschen <corinna@vinschen.de>
1329 * ipcs.c (_POSIX2_LINE_MAX): Drop definition.
1331 2007-02-20 Corinna Vinschen <corinna@vinschen.de>
1333 * cygcheck.cc (dump_sysinfo): Add "not supported" to osname on 9x
1334 machines. Drop "not supported" for Vista. Drop "Longhorn" text
1337 2007-01-09 Christian Franke <franke@computer.org>
1339 * cygpath.cc (usage): Add -O and -F, remove tabs.
1340 (get_special_folder): New function.
1341 (get_user_folder): New function.
1342 (dowin): Add -O and -F, better -D, -P error handling.
1343 (main): Add -O and -F.
1344 * utils.sgml (cygpath): Document -O and -F.
1346 2006-12-21 Corinna Vinschen <corinna@vinschen.de>
1348 * dumper.cc: Include ansidecl.h before including bfd.h to woraround
1349 a problem with the order in which system include files are included.
1351 2006-12-11 Christopher Faylor <me@cgf.cx>
1353 * dumper.cc: Add an include to accommodate new include/elf usage.
1355 2006-12-10 Christopher Faylor <me+cygwin@cgf.cx>
1357 * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and
1358 pass POSIX path directly - this avoids a cygwin DLL warning.
1360 2006-10-21 Corinna Vinschen <corinna@vinschen.de>
1362 * regtool.cc (key_type): Drop.
1364 (value_type): Replace key_type. Use REG_xxx values directly.
1365 Accomodate change throughout.
1366 (longopts): Add --dword, --dword-le, --none, --qword and --hex options.
1367 (opts): Add -d, -D, -n, -Q and -x options.
1368 (types): Array to convert REG_xxx into strings.
1369 (hex): New variable to keep value of --hex option.
1370 (usage): Accomodate new options. Print only the necessary by default.
1371 Only be verbose in case of -h/--help option.
1372 (cmd_list): Use key separator from -K option when printing.
1373 Print value type when verbose option is given. Handle so far not
1374 handled REG_xxx types.
1375 (cmd_set): Avoid SEGV due to missing argument. Handle so far not
1376 handled REG_xxx types.
1377 (cmd_get): Handle --binary option type agnostic. Handle so far not
1378 handled REG_xxx types.
1379 (main): Handle new options.
1381 2006-10-19 Corinna Vinschen <corinna@vinschen.de>
1383 * regtool.cc (longopts): Add --wow32 option.
1384 (opts): Add -W option.
1385 (usage): Add text for --wow32/-W option.
1386 (main): Handle --wow32/-W option.
1387 * utils.sgml: Document the new -W option.
1389 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1391 * regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define
1392 WINVER to 0x0502 before including windows.h.
1394 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1396 * regtool.cc (KEY_WOW64_64KEY): Define.
1397 (longopts): Add --wow64 option.
1398 (opts): Add -w option.
1399 (wow64): New variable to control usage of KEY_WOW64_64KEY access flag.
1400 (usage): Add text for --wow64/-w option.
1401 (print_version): Fix copyright.
1402 (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx.
1403 (cmd_add): Use wow64 value in call to RegCreateKeyEx.
1404 (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function
1406 (cmd_remove): Load and use regDeleteKeyEx when wow64 is set.
1407 (main): Handle --wow64/-w option.
1408 * utils.sgml: Document the new -w option.
1410 2006-10-05 Igor Peshansky <pechtcha@cs.nyu.edu>
1412 * cygcheck.cc (get_word, get_dword): Move to path.cc.
1413 (LINK_EXTENSION): New macro.
1414 (check_existence): New static function.
1415 (find_on_path): Check for symbolic links if asked.
1416 (dll_info): New error handling.
1417 (track_down): Only call dll_info() for executables, display
1418 an error for symlinks, and print magic number for others.
1419 (find_app_on_path): New static function.
1420 (cygcheck, dump_sysinfo): Call find_app_on_path() instead of
1422 * path.cc (cmp_shortcut_header): New static function.
1423 (get_word, get_dword): Moved from cygcheck.cc.
1424 (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New
1426 (is_exe, is_symlink, readlink): New functions.
1427 * path.h (is_exe, is_symlink, readlink): Declare.
1428 (get_word, get_dword): Ditto.
1430 2006-09-12 Christopher Faylor <cgf@timesys.com>
1432 * Makefile.in: Fix -ntdll typo.
1434 2006-09-11 Eric Blake <ebb9@byu.net>
1436 * cygcheck.cc (main): Restore POSIXLY_CORRECT before displaying user's
1439 2006-08-03 Corinna Vinschen <corinna@vinschen.de>
1441 * path.cc (vconcat): Don't convert backslahes to slashes.
1442 (cygpath): Return native path with all backslashes.
1444 2006-08-02 Corinna Vinschen <corinna@vinschen.de>
1446 * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.
1447 * cygpath.cc: Include DDK headers.
1448 (RtlAllocateUnicodeString): New static inline function.
1449 (get_device_name): New static function to evaluate DOS path from
1451 (get_device_paths): New function to do the same for path lists.
1452 (doit): Call get_device_paths/get_device_name where appropriate.
1454 2006-07-30 Ilya Bobir <ilya@po4ta.com>
1456 * cygpath.cc (get_long_name): Fallback to get_long_path_name_w32impl.
1458 2006-07-27 Corinna Vinschen <corinna@vinschen.de>
1460 * cygpath.c (get_long_name): Cover the case that GetLongPathName
1461 doesn't return valid information for non-existant files. Just return
1462 incoming filename in that case.
1464 2006-07-03 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
1466 * Makefile.in: Build setmetamode.exe.
1467 * setmetamode.c: New file.
1469 2006-05-24 Christopher Faylor <cgf@timesys.com>
1471 * configure.in: Update to newer autoconf.
1472 (thanks to Steve Ellcey)
1473 * configure: Regenerate.
1474 * aclocal.m4: New file.
1476 2006-05-24 Christopher Faylor <cgf@timesys.com>
1478 * strace.cc (proc_child): Propagate return code from child process.
1482 2006-03-03 Christian Franke <franke@computer.org>
1484 * regtool.cc (options): Add 'binary'.
1485 (usage): Document 'load|unload|save' and '-b'.
1486 (find_key): Add 'options' parameter, add load/unload.
1487 (cmd_set): Add KT_BINARY case.
1488 (cmd_get): Add hex output in KT_BINARY case.
1489 (cmd_load): New function.
1490 (cmd_unload): New function.
1491 (set_privilege): New function.
1492 (cmd_save): New function.
1493 (commands): Add load, unload and save.
1495 * utils.sgml (regtool): Document it.
1497 2006-02-17 Corinna Vinschen <corinna@vinschen.de>
1499 * cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrect
1501 (doit): Create mixed filename after converting to short or long pathname
1504 2006-02-17 Jerry D. Hedden <jerry@hedden.us>
1506 * ps.cc (main): Set aflag if -p option is given.
1508 2006-02-16 Jerry D. Hedden <jerry@hedden.us>
1510 * ps.cc (longopts): Add --process option.
1511 (opts): Add -p option.
1512 (usage): Mention -p/--process option.
1513 (main): Handle -p option.
1514 * utils.sgml: Describe -p/--process option.
1516 2006-02-15 Igor Peshansky <pechtcha@cs.nyu.edu>
1518 * regtool.cc (usage): Clarify help for "-K".
1520 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1522 * cygcheck.cc (find_on_path): Update copyright text.
1524 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1526 * cygcheck.cc (find_on_path): Create copy of rv on successful access
1527 check, since rv can be reused in subsequent calls.
1529 2006-01-19 Christopher Faylor <cgf@timesys.com>
1531 * cygcheck.cc (common_paths): Add "patch".
1533 2006-01-19 Christopher Faylor <cgf@timesys.com>
1535 * cygcheck.cc (init_paths): Record first_nonsys_path.
1536 (find_on_path): Start on first nonsys path when !search_sysdirs.
1538 2006-01-18 Christopher Faylor <cgf@timesys.com>
1540 * Makefile.in (sysconfdir): Remove unneeded variable.
1542 * mkgroup.c: Replace ` with ' throughout.
1543 * mkpasswd.c: Ditto.
1547 2006-01-18 Dave Korn <dave.korn@artimi.com>
1549 * cygpath.cc (dowin): Remove stray debugging printf statement.
1551 2006-01-17 Corinna Vinschen <corinna@vinschen.de>
1553 * Makefile.in: Replace etcdir with sysconfdir.
1555 2006-01-13 Brian Dessent <brian@dessent.net>
1557 * Makefile.in (cygcheck.exe): Do not link against libwininet.a.
1558 * cygcheck.cc (pInternetCloseHandle): Define global function pointer.
1559 (display_internet_error): Use it.
1560 (package_grep): Attempt to load wininet.dll at runtime. Call WinInet
1561 API through function pointers throughout.
1563 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1565 * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.
1567 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1569 * cygcheck.cc (dump_sysinfo): Convert osname to const and remove casts
1570 in subsequent assignments. Recognize Longhorn/Vista and report as not
1571 yet supported. Recognize when running under WOW64 and report native
1572 CPU type. Slightly rearrange \n printing.
1574 2006-01-12 Christopher Faylor <cgf@timesys.com>
1576 * cygcheck.cc: Replace ` with ' throughout.
1578 2006-01-05 Christopher Faylor <cgf@timesys.com>
1580 * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent
1583 2005-12-29 Christopher Faylor <cgf@timesys.com>
1585 * strace.cc (nprocesses): Make static global.
1586 (quiet): New variable.
1587 (strace_active): Ditto.
1588 (add_child): Increment nprocesses here. Don't add a child if it is
1589 already added (windows bug?). Report on child if not quiet.
1590 (get_child): Just return NULL if child not found.
1591 (remove_child): Report on child if not quiet.
1592 (attach_process): Don't complain if given a windows process. Use
1593 windows pid in error.
1594 (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about.
1595 Handle _STRACE_CHILD_PID - attach to reported child when we get this.
1596 (proc_child): Move nprocesses to file scope.
1597 Report on exceptions.
1598 (longopts): Implement "--quiet".
1599 (opts): Implement "-q".
1600 (main): Manipulate quiet flag.
1601 * utils.sgml (strace): Add words describing '-q'.
1603 2005-12-29 Christopher Faylor <cgf@timesys.com>
1605 * cygcheck.cc (common_apps): Add crontab, vi, vim.
1607 2005-12-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1609 * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".
1611 2005-12-14 Christopher Faylor <cgf@timesys.com>
1613 * cygcheck.cc (common_apps): Add a few more binaries to look for.
1615 2005-12-05 Christopher Faylor <cgf@timesys.com>
1617 * strace.cc (show_usecs): Renamed from 'usecs'.
1618 (main): Use show_usecs rather than usecs. Toggle delta if '-u' is
1620 (handle_output_debug_string): Avoid printing microsecond timestamp if
1622 * utils.sgml (strace): Add words to describe '-u'.
1624 2005-11-22 Brian Dessent <brian@dessent.net>
1626 * Makefile.in: Link cygcheck with libwininet.a.
1627 * cygcheck.cc: Add includes.
1628 (grep_packages): New global variable.
1629 (display_internet_error): New function.
1630 (safe_chars): New global variable.
1632 (package_grep): New function.
1633 (usage): Reword --help output for clarity. Document new argument.
1634 (longopts): Add 'package-query' option.
1635 (opts): Add 'p' option, reorder to be consistent with 'longopts'.
1636 (main): Accommodate new option.
1637 * utils.sgml (cygcheck): Update --help output. Document new -p option.
1639 2005-09-22 Corinna Vinschen <corinna@vinschen.de>
1641 Align error message handling to mkpasswd's error messages throughout.
1642 * mkgroup.c (print_win_error): Create macro calling ...
1643 (_print_win_error): ... this function created from former
1644 print_win_error. Move up in source.
1645 (PDOMAIN_CONTROLLER_INFOW): Define return type of DsGetDcNameW.
1646 (dsgetdcname): New function pointer for DsGetDcNameW.
1647 (load_netapi): Get DsGetDcNameW address.
1648 (main): If DsGetDcNameW is available, use it.
1649 * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of
1651 (dsgetdcname): New function pointer for DsGetDcNameW.
1652 (load_netapi): Get DsGetDcNameW address.
1653 (main): If DsGetDcNameW is available, use it. Rename local variable
1654 domain_name_specified to domain_specified as in mkgroup.c.
1656 2005-09-08 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1658 * regtool.cc: Extend copyright-years.
1659 (print_version): Ditto.
1660 (cmd_list): Don't depend on terminating '\0' being present on
1662 (cmd_get): Don't attempt to read more than present, but keep
1663 extra space for terminating '\0'. Really output REG_BINARY.
1665 (cmd_set): Include trailing '\0' in string's length.
1667 2005-08-18 Corinna Vinschen <corinna@vinschen.de>
1669 * passwd.c (longopts): Add --logonserver option.
1670 (opts): Add -d option.
1671 (GetPW): Add server parameter which is given to Net functions.
1675 (usage): Add description for -d/--logonserver option.
1676 (main): Add option handling for -d/--logonserver. Use LOGONSERVER
1677 environment variable content for server to contact, unless
1678 -d/--logonserver option is given. If both is missing, use NULL.
1680 2005-08-16 Brian Dessent <brian@dessent.net>
1682 * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.
1683 Avoid extraneous cygrunsrv invocation if 'verbose' is true.
1685 2005-08-03 Corinna Vinschen <corinna@vinschen.de>
1687 * mount.cc (longopts): Fix typo which disallows --options option.
1689 2005-07-19 Christopher Faylor <cgf@timesys.com>
1690 Eric Blake <ebb9@byu.net>
1692 * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
1694 2005-07-05 Eric Blake <ebb9@byu.net>
1696 * cygcheck.cc (track_down, cygcheck): Return true on success.
1697 (main): Reflect cygcheck failures in exit status.
1699 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
1701 * parse_pe.c (exclusion::sort_and_check): Remove crude cast.
1703 2005-05-30 Corinna Vinschen <corinna@vinschen.de>
1705 * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
1706 Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server
1707 and Datacenter Server. Report when running in terminal server session.
1709 2005-05-27 Christopher Faylor <cgf@timesys.com>
1711 * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with
1713 * strace.cc (load_cygwin): Ditto.
1715 2005-05-22 Brian Dessent <brian@dessent.net>
1717 * cygcheck.cc (dump_sysinfo_services): Add new function that uses
1718 new cygrunsrv options to dump service info.
1719 (dump_sysinfo): Call dump_sysinfo_services if running under NT.
1720 Change 'Cygnus' to 'Cygwin' in output.
1722 2005-05-20 Christopher Faylor <cgf@timesys.com>
1724 * cygcheck.cc (load_cygwin): Remove debugging statement.
1726 2005-05-20 Christopher Faylor <cgf@timesys.com>
1728 * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not
1730 (nuke): Fix off by one error in allocation of environment variable.
1731 (load_cygwin): Always set PATH even if cygwin environment is empty.
1733 2005-05-16 Christopher Faylor <cgf@timesys.com>
1735 * cygcheck.cc (cygwin_internal): Define as a "C" function.
1736 * strace.cc (cygwin_internal): Ditto.
1738 * cygpath.cc (print_version): Update copyright.
1740 2005-05-15 Christopher Faylor <cgf@timesys.com>
1742 * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.
1744 2005-05-15 Corinna Vinschen <corinna@vinschen.de>
1746 * cygcheck.cc (load_cygwin): Don't touch $PATH for now.
1747 (print_version): Fix copyright.
1748 * strace.cc (print_version): Ditto.
1750 2005-05-13 Christopher Faylor <cgf@timesys.com>
1752 * mount.cc (mount_commands): Display "-X" option when appropriate.
1754 2005-05-08 Christopher Faylor <cgf@timesys.com>
1756 * cygcheck.cc (nuke): New function.
1757 (load_cygwin): New function.
1758 (main): Use load_cygwin to load argv/envp from cygwin environment, if
1761 2005-05-08 Christopher Faylor <cgf@timesys.com>
1763 * strace.cc (attach_process): Don't call load_cygwin(). Assume that
1764 it's already happened.
1766 (main): Set argv from cygwin environment, if it exists.
1768 2005-05-01 Christopher Faylor <cgf@timesys.com>
1770 * mount.cc (usage): Clarify action of -m option.
1772 2005-04-29 Dave Korn <dave.korn@artimi.com>
1774 * path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'
1775 flags to mnt_opts string if present in mount flags.
1777 2005-04-20 Brian Dessent <brian@dessent.net>
1779 * utils.sgml (mount): Clarify setting cygdrive prefix for user
1782 2005-03-24 Brian Dessent <brian@dessent.net>
1784 * cygcheck.cc (init_paths): Use full path instead of "." for the
1785 current directory. Do not add "." if present in $PATH.
1786 (dump_sysinfo): Skip placeholder first value of paths[].
1788 2005-03-07 Christopher Faylor <cgf@timesys.com>
1790 * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't
1791 pad signal name with spaces.
1793 2005-03-07 Corinna Vinschen <corinna@vinschen.de>
1795 * strace.cc (handle_output_debug_string): Fix compiler warning.
1797 2005-03-06 Christopher Faylor <cgf@timesys.com>
1799 * cygpath.cc (usage): Pass in one more copy of program_name to printf
1802 2005-02-27 Christopher Faylor <cgf@timesys.com>
1804 * regtool.cc (opts): The argument to 'K' is not optional.
1805 (main): Revert previous change. Just let getopt deal with missing
1808 2005-02-27 Christopher Faylor <cgf@timesys.com>
1810 * regtool.cc (main): Avoid a SEGV when nothing follows -K.
1812 2005-02-26 Christopher Faylor <cgf@timesys.com>
1814 * kill.cc (getsig): Avoid buffer overflow when generating a signal name.
1816 * strace.cc (handle_output_debug_string): Make error a little more specific.
1818 2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
1820 * cygpath.cc (usage): Clarify help output to indicate acceptance
1821 of multiple file names as arguments.
1823 2005-01-16 Christopher Faylor <cgf@timesys.com>
1825 * ps.cc (main): Eliminate use of PID_ZOMBIE.
1826 * strace.cc (main): Recognize new option for displaying hex value of
1828 (handle_output_debug_string): Prepend output with hex value of strace
1829 message if -H is specified.
1831 2005-01-11 Pierre Humblet <pierre.humblet@ieee.org>
1833 * mkpasswd.c (print_win_error): Transform into macro.
1834 (_print_win_error): Upgrade former print_win_error by
1836 (current_user): Call _print_win_error.
1837 (enum_users): Print name in case of lookup failure.
1838 (enum_local_groups): Ditto.
1840 2004-11-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1842 * cygcheck.cc (eprintf): New function.
1844 2004-11-16 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1846 * cygcheck.cc (find_on_path): Clear show_error and/or print_failed
1847 parameters to display_error.
1848 (rva_to_offset): Ditto.
1850 (track_down): Ditto.
1852 2004-11-13 Pierre Humblet <pierre.humblet@ieee.org>
1854 * kill.cc (forcekill): Do not pass negative pids to
1855 cygwin_internal. Check if sig == 0. Improve error messages.
1856 (main): Make pid a long long and distinguish between pids, gpids
1857 (i.e. negative pids) and Win9x pids.
1859 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1861 * cygcheck.cc: Change "keyeprint" to "display_error" throughout.
1863 2004-11-11 Christopher Faylor <cgf@timesys.com>
1865 * cygcheck.cc (main): Allow a '-l' without an additional argument.
1867 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1869 * cygcheck.cc (keyeprint): New optional parameters: show_error and
1872 2004-10-31 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1874 * cygcheck.cc (get_dword): Fix errormessage.
1875 (cygwin_info): Ditto.
1876 (track_down): Ditto.
1877 (check_keys): Ditto.
1879 2004-10-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1881 * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
1884 2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1886 * cygcheck.cc (dump_sysinfo): Add leading newline before legend for
1889 2004-10-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1891 * cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
1892 ``unk''. Use single puts. Add leading newline. Line up equal-signs.
1894 2004-10-20 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1896 * cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list.
1897 Change ``Used'' to ``Free'' in helptext-title for drive-list.
1899 2004-10-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1901 * cygcheck.cc (pretty_id): Don't let i become negative. Fix
1904 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1906 * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
1908 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1909 Christopher Faylor <cgf@timesys.com>
1911 * cygcheck.cc (pretty_id): Allocate space for trailing '\0' in uid and
1914 2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1915 Christopher Faylor <cgf@timesys.com>
1917 * cygcheck.cc (pretty_id): Don't exit on id error. Fix size
1920 2004-10-14 Christopher Faylor <cgf@timesys.com>
1921 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1923 * cygcheck.cc (pretty_id): Correct column calculations. Abort if id is
1926 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1928 * cygcheck.cc (add_path): Don't leak memory when path is already in
1931 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1933 * cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount
1936 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1938 * cygcheck.cc (dump_sysinfo): Don't warn about empty path components,
1941 2004-10-06 Corinna Vinschen <corinna@vinschen.de>
1943 * strace.cc (_impure_ptr): Remove.
1945 2004-10-06 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1947 * cygcheck.cc (dump_sysinfo): Warn about empty path components.
1949 2004-10-04 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1951 * cygcheck.cc (pretty_id): Close pipe.
1953 2004-09-23 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1955 * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
1958 2004-09-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1959 Corinna Vinschen <corinna@vinschen.de>
1961 * dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
1963 2004-09-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1965 * getfacl.c (main): Correct layout when nopt is set.
1967 2004-07-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1969 * mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
1971 (load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
1972 (enum_local_groups,enum_groups): Add disp_groupname parameter.
1973 Load info for disp_groupname if specified.
1974 (usage): Add description of "-g/--group" option.
1975 (longopts,opts): Add "-g/--group" option.
1976 (main): Process "-g/--group" option.
1977 * utils.sgml (mkgroup): Add description of "-g/--group" option
1979 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1981 * dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
1982 instead of _raw_size.
1983 (dumper::write_core_dump): Likewise.
1984 * parse_pe.cc (select_data_section): Likewise.
1986 2004-05-29 John Paul Wallington <jpw@gnu.org>
1988 * ssp.c (usage): Add missing linefeed.
1990 2004-05-27 Christopher Faylor <cgf@alum.bu.edu>
1992 * kill.cc (listsig): Fix "kill -l" segv. NSIG includes Signal 0, so we
1993 need to avoid calling strtosigno with NSIG - 1.
1995 2004-03-21 Christopher Faylor <cgf@redhat.com>
1997 * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
1999 2004-03-15 Christopher Faylor <cgf@redhat.com>
2001 * cygpath.cc (usage): Don't issue helpful message if -i is used.
2002 (from Igor Pechtchanski)
2004 2004-03-13 Rob Siklos <rob2@siklos.ca>
2006 * kill.cc (get_debug_priv): New function.
2007 (forcekill): Call get_debug_priv before trying to kill process.
2009 2004-02-24 Christopher Faylor <cgf@redhat.com>
2011 * cygpath.cc (long_options): Add "mode" option.
2013 (usage): Report on new option.
2014 (report_mode): New function.
2015 (main): Implement -M option.
2017 2004-02-20 Christopher Faylor <cgf@redhat.com>
2019 * Makefile.in (build_dumper): Detect missing iconv library.
2021 * cygpath.cc (dowin): Report on filename conversion errors.
2024 * strace.cc (main): Use symbolic constant for _STRACE_ALL when setting
2027 2004-02-14 Corinna Vinschen <corinna@vinschen.de>
2029 * ssp.c (opts): Add leading '+' to force posixly correct behaviour.
2031 2004-02-11 Corinna Vinschen <corinna@vinschen.de>
2033 * strace.cc (opts): Add leading '+' to force posixly correct
2035 (main): Revert POSIXLY_CORRECT manipulations.
2037 2004-02-10 Christopher Faylor <cgf@redhat.com>
2039 * strace.cc (main): Guard against previous setting of POSIXLY_CORRECT.
2041 2004-02-10 Christopher Faylor <cgf@redhat.com>
2043 * strace.cc: Update copyrights.
2044 * cygcheck.cc: Update copyrights.
2046 2004-02-10 Christopher Faylor <cgf@redhat.com>
2048 * strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
2049 * cygcheck.cc (main): Ditto.
2051 2004-01-23 Christopher Faylor <cgf@redhat.com>
2053 * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
2055 2004-01-22 Corinna Vinschen <corinna@vinschen.de>
2057 * cygpath.cc (dowin): Revert accidental checkin from November.
2059 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
2061 * mkgroup.c (main): Print "root" group with local admins group sid
2064 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
2066 * Makefile.in: Add rules to build ipcrm and ipcs.
2067 * ipcrm.c: New file.
2070 2003-11-14 Corinna Vinschen <corinna@vinschen.de>
2072 * mkgroup.c: Avoid compiler warnings throughout.
2073 * mkpasswd.c: Ditto.
2076 2003-11-07 Mark Blackburn <marklist@fangorn.ca>
2078 * cygpath.cc (main): Allow multiple pathnames on command line.
2080 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2082 * passwd.c (PrintPW): Turn around meaning printed for "Password not
2083 required" option to be in line with Windows meaning.
2084 (main): Use more appropriate 1008 option when calling
2085 NetUserSetInfo to change flag values.
2087 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2089 * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).
2090 (version): Bump version number to 1.5.
2091 (longopts): Add -c, -C, -e, -E, -p, -P options.
2093 (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and
2094 UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress
2095 correct system password settings just because the account has admin
2097 (usage): Define as "noreturn" function. Restructure and rephrase
2098 output. Accommodate new options.
2099 (print_version): Fix copyright dates.
2100 (main): Accommodate new options for setting UF_PASSWD_CANT_CHANGE,
2101 UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
2103 2003-10-17 Christopher Faylor <cgf@redhat.com>
2105 * cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2107 2003-09-20 Christopher Faylor <cgf@redhat.com>
2109 * kill.cc (main): Allow negative pids (indicates process groups).
2111 2003-09-17 Christopher Faylor <cgf@redhat.com>
2113 * parse_pe.cc (exclusion::sort_and_check): Make error message a little
2114 more explicit and ignore (hopefully) harmless region overlap.
2116 2003-09-13 Christopher Faylor <cgf@redhat.com>
2118 * kill.c (forcekill): Wait for process to terminate even if
2119 TerminateProcess says it failed.
2121 2003-09-11 Christopher Faylor <cgf@redhat.com>
2123 * Makefile.in: Tweak mingw libz.a detection to make it more reliably
2124 detect when libz.a is not available.
2126 2003-09-11 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2128 * cygcheck.cc (dump_only): New global variable.
2129 (usage): Add "--dump-only" option, fix "--verbose" line.
2130 (longopts, opts): Add "--dump-only" option.
2131 (main): Process the "--dump-only" flag. Add new semantic check.
2132 Pass dump_only information to dump_setup().
2134 2003-09-11 Corinna Vinschen <corinna@vinschen.de>
2136 * getfacl (main): Remove extern declaration of optind.
2137 * setfacl (main): Remove extern declaration of optarg and optind.
2139 2003-09-10 Christopher Faylor <cgf@redhat.com>
2141 * Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
2142 * cygcheck.cc: Just include <getopt.h> rather than cygwin version.
2143 (pretty_id): Avoid compiler warnings.
2144 * cygpath.cc (usage): Ditto.
2146 2003-09-10 Christopher Faylor <cgf@redhat.com>
2148 * Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
2149 * path.cc: Include more path info in cygwin-specific includes since the
2150 cygwin directory is no longer included by default.
2152 2003-09-10 Christopher Faylor <cgf@redhat.com>
2154 * Makefile.in: More fixups to adjust for the fact that mingw_getopt.o
2157 2003-09-10 Christopher Faylor <cgf@redhat.com>
2159 * Makefile.in: Remove references to getopt since it is now part of
2162 2003-09-08 Christopher Faylor <cgf@redhat.com>
2164 * Makefile.in: Rename libz.h -> zlib.h.
2166 2003-09-07 Christopher Faylor <cgf@redhat.com>
2168 * Makefile.in: Detect existence of mingw zlib headers and libraries.
2169 Build cygcheck without package checking if they are unavailable.
2170 * dump_setup.cc: Generate dummy zlib macros when zlib is not available.
2171 (open_package_list): Use zlib functions to uncompress package lists.
2172 Return gzFile rather than FILE *.
2173 (check_package_files): Change fp to gzFile to accommodate zlib
2174 functions. Use gzgets to read from package file. Use gzclose to close
2176 (package_list): Ditto.
2177 (package_find): Ditto.
2179 2003-09-05 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2181 * dump_setup.cc (check_package_files): Don't fail on empty package.
2183 2003-09-01 AJ Reins <reinsaj@yahoo.com>
2185 * mount.cc (mount_commands): Ensure user mode is actually user mode and
2186 not the default system mode.
2188 2003-08-31 Christopher Faylor <cgf@redhat.com>
2190 * kill.cc (forcekill): Silence some compiler warnings.
2192 2003-08-31 Christopher Faylor <cgf@redhat.com>
2194 * Makefile.in: Oops. Put the '...' in the right place.
2196 2003-08-31 Christopher Faylor <cgf@redhat.com>
2198 * Makefile.in: Display "..." when not-verbose.
2200 * kill.cc (forcekill): Default to entered pid when pinfo fails. Issue
2201 some warnings when things don't work.
2203 2003-08-17 David Rothenberger <daveroth@acm.org>
2205 * dump_setup.cc (check_package_files): Strip leading / and ./ from
2208 2003-08-16 David Rothenberger <daveroth@acm.org>
2210 * dump_setup.cc (package_find): Don't stop searching on missing
2212 (package_list): Ditto.
2214 2003-08-16 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2216 * dump_setup.cc: (package_list): Make output terse unless
2217 verbose requested. Fix formatting.
2218 (package_find): Ditto.
2220 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2222 * cygcheck.cc (main): Fix some formatting and help text printing.
2224 2003-08-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2226 * cygcheck.cc (find_package,list_package): New global
2228 (usage): Add "--find-package" and "--list-package" options,
2230 (longopts, opts): Add "--find-package" and "--list-package"
2232 (main): Process the "--find-package" and "--list-package"
2233 flags. Add new semantic checks. Add calls to find_package()
2235 * dump_setup.cc: Fix header comment.
2236 (match_argv): Change return type to int to distinguish
2237 between real matches and default ones.
2238 (open_package_list): New static function.
2239 (check_package_files): Factor out opening the package list
2240 file into open_package_list().
2241 (get_packages): New static function.
2242 (dump_setup): Factor out getting a list of packages into
2244 (package_list, package_find): New global functions.
2246 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2248 * regtool.cc (usage): Add missing linefeed. Move example to --help
2249 text. Fix forward slash description.
2251 2003-08-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2253 * dump_setup.cc (check_package_files): Fix extra '/' in filename.
2254 Resize command buffer. Fix buffer overflow bug.
2256 2003-08-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2257 Christopher Faylor <cgf@redhat.com>
2259 * dump_setup.cc (dump_setup): Check for the existence of the package
2260 list file. Rework slightly to use static buffer for popen commands.
2262 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2263 Christopher Faylor <cgf@redhat.com>
2265 * dump_setup.cc (version_len): New static variable.
2266 (could_not_access,directory_exists): New static function.
2267 (file_exists): Ditto.
2268 (check_package_files): Ditto.
2269 (dump_setup): Check the contents of each package if check_files is true
2270 and output the result in the "Status" column. Flush output after each
2273 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2274 Christopher Faylor <cgf@redhat.com>
2276 * dump_setup.cc (dump_setup): Remove redundant null check. Add
2277 informative message if package info not found.
2279 2003-07-26 Christopher Faylor <cgf@redhat.com>
2281 * mount.cc (do_mount): Issue warning when using managed mount option on
2282 non-empty directory.
2284 2003-07-25 Christopher Faylor <cgf@redhat.com>
2286 * configure.in: Use 'install-sh -c'.
2287 * configure: Regenerate.
2289 2003-07-25 Christopher Faylor <cgf@redhat.com>
2291 * configure.in: Always use install-sh.
2292 * configure: Regenerate.
2294 2003-07-03 Christopher Faylor <cgf@redhat.com>
2296 * mount.cc (struct opt): Remove posix option.
2298 2003-07-03 Christopher Faylor <cgf@redhat.com>
2300 * mount.cc (longopts): Add long "options" keyword.
2301 (opts): Add -o option.
2302 (usage): Display -o option.
2304 (concat3): New function.
2305 (main): Handle -o flag.
2307 2003-06-12 Christopher Faylor <cgf@redhat.com>
2309 * cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2311 2003-06-12 Christopher Faylor <cgf@redhat.com>
2313 * cygpath.cc: Throughout, always return error when GetShortPathName
2316 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2318 * mkpasswd.c (usage) Remove extra newline from description output.
2320 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2322 * cygcheck.cc (usage) Add description output.
2323 * cygpath.cc (usage) Add description output.
2324 * dumper.cc (usage) Add newline to description output.
2325 * kill.cc (usage) Add description output.
2326 * mkgroup.c (usage) Grammatical change to description output.
2327 * mkpasswd.c (usage) Grammatical change to description output.
2328 * mount.cc (usage) Add description output.
2329 * passwd.c (usage) Add description output.
2330 * ps.cc (usage) Add description output.
2331 * regtool.cc (usage) Add description output.
2332 * setfacl.c (usage) Remove extra newline from description output.
2333 * ssp.c (usage) Add description output.
2334 * strace.cc (usage) Add description output.
2335 * umount.cc (usage) Add description output.
2337 2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
2339 * mkpasswd.c (current_user): print uid and gid as unsigned.
2340 (enum_users): Ditto. Do not free servername.
2341 (usage): Update to allow several domains and improve -p.
2342 (main): On Win9x limit uids to 1000. Only print specials
2343 when -l is specified. Add a loop to allow several domains
2344 and free servername in the loop.
2345 * mkgroup.c (enum_groups): Do not free servername.
2346 (usage): Update to allow several domains. Change uid to gid.
2347 (main): Only print specials when -l is specified. Add a
2348 loop to allow several domains and free servername in the loop.
2350 2003-03-24 Christopher Faylor <cgf@redhat.com>
2352 * cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable
2355 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
2357 * getfacl.c (username): Fix ambiguous printf calls.
2361 2003-03-04 Christopher Faylor <cgf@redhat.com>
2363 * Makefile.in (strace.exe): Include mingw_getopt.o in link line.
2364 * cygcheck.cc (print_version): Update copyright.
2365 * strace.cc (print_version): Ditto.
2366 (main): Allow cygwin paths for -o option.
2367 (create_child): Allow cygwin path as argv[0].
2368 * path.cc (path.cc): Allow UNC paths.
2370 2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
2372 * mkpasswd.cc (main): On Win95, output both a default line and a
2373 line for the current user (if known) with a pseudorandom uid. If
2374 the -u switch is given, produce a line for the specified user.
2375 * mkgroup.cc (main): On Win95 change the group name from "unknown" to
2378 2003-02-28 Christopher Faylor <cgf@redhat.com>
2380 * Makefile.in (cygcheck.o): Fix so that actual mingw include files are
2382 * cygcheck.cc (find_on_path): Translate from cygwin path when qualified
2384 (pretty_id): New function. Dump output of id command.
2385 (dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2387 2003-02-12 Christopher Faylor <cgf@redhat.com>
2389 * cygpath.cc (doit): Allocate more space for non-path filename.
2391 2003-02-07 Christopher Faylor <cgf@redhat.com>
2393 * dump_setup.cc (compar): Use case insensitive comparisons.
2394 (dump_setup): Calculate package_len based on already used "len". Don't
2395 bother with version_len.
2397 2003-02-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2399 * dump_setup.cc (dump_setup): Compute the longest package name
2400 and align columns properly.
2402 2003-02-06 Christopher Faylor <cgf@redhat.com>
2404 * cygcheck.cc (common_apps): Add some more apps.
2405 * path.cc (get_cygdrive): Correctly set system flag.
2407 2003-01-22 Corinna Vinschen <corinna@vinschen.de>
2409 * Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
2410 (MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2412 2003-01-15 Corinna Vinschen <corinna@vinschen.de>
2414 * mkgroup.c: Fix copyright date.
2415 * mkpasswd.c: Ditto.
2418 2003-01-09 Pierre Humblet <pierre.humblet@ieee.org>
2420 * setfacl.c (usage): Remove double ":" for mask and other.
2422 2003-01-07 Pierre Humblet <pierre.humblet@ieee.org>
2424 * mkpasswd.c (current_user): Create.
2425 (usage): Reorganize to support Win95/98/ME.
2426 (main): Add option for -c. Reorganize to parse options for
2427 Win95/98/ME and to call current_user. Add username in gecos field
2429 * mkgroup.c (enum_groups): Print gid with %u.
2430 (print_win_error): Create from passwd.cc.
2431 (current_group): Create.
2432 (usage): Reorganize to support Win95/98/ME.
2433 (main): Add option for -c. Reorganize to parse options for
2434 Win95/98/ME and to call current_group.
2436 2002-12-14 Pierre Humblet <pierre.humblet@ieee.org>
2438 * setfacl.c (main): Place a single : after other and mask.
2439 * getfacl.c (getaclentry): Allow both : and :: for other and mask.
2440 (main): Remove extraneous break.
2442 2002-11-25 Corinna Vinschen <corinna@vinschen.de>
2444 * mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.
2446 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2448 * setfacl.c (getperm): Set only `other' permission bits.
2449 (getaclentry): Set a_id to -1 by default.
2451 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2453 * getfacl.c (permstr): Use `other' permission bits for requesting
2456 2002-11-08 Corinna Vinschen <corinna@vinschen.de>
2458 * setfacl.c (usage): Add missing LF.
2460 2002-10-30 Christopher Faylor <cgf@redhat.com>
2462 * cygpath.cc (get_long_path_name_w32impl): Define similarly to
2464 (get_long_name): Correctly prototype GetLongPathName.
2465 (get_long_paths): Implement using get_long_name to cut down on code
2467 (doit): Do various things to make path output work predictably.
2469 2002-10-19 Christopher Faylor <cgf@redhat.com>
2471 * mount.cc (usage): Correctly report default mode.
2472 * strace.cc (main): Use strtoul as appropriate.
2474 2002-09-29 Christopher Faylor <cgf@redhat.com>
2476 * cygpath.cc (close_arg): Remove unused static.
2477 * mkgroup.c (enum_local_users): Avoid compiler warning.
2478 (enum_users): Ditto.
2479 * mkpasswd.c: Ditto throughout.
2480 * ssp.c: Ditto throughout.
2482 2002-09-18 Christopher Faylor <cgf@redhat.com>
2484 * cygcheck.cc: Include sys/time.h rather than time.h to avoid a
2487 2002-09-17 Christopher Faylor <cgf@redhat.com>
2489 * cygcheck.cc: Reorder includes to avoid compiler error.
2491 2002-09-15 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2493 * cygcheck.cc (print_version) Add final newline.
2494 * getfacl.c (print_version) Add final newline.
2495 * kill.cc (print_version) Add final newline.
2496 * mkgroup.c (print_version) Add final newline.
2497 * mkpasswd.c (print_version) Add final newline.
2498 * mount.cc (print_version) Add final newline.
2499 * passwd.c (print_version) Add final newline.
2500 * ps.cc (print_version) Add final newline.
2501 * regtool.cc (print_version) Add final newline.
2502 * setfacl.c (print_version) Add final newline.
2503 * ssp.c (print_version) Add final newline.
2504 * strace.cc (print_version) Add final newline.
2505 * umount.cc (print_version) Add final newline.
2507 2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2509 * cygpath.cc (options) New global variable.
2510 (main) Make short options global for easier change.
2511 (print_version) Add a missing newline.
2513 2002-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2515 * regtool.cc (find_key): Add support for custom key separator.
2516 (usage): Document it.
2518 2002-08-02 Corinna Vinschen <corinna@vinschen.de>
2520 * mkgroup.c (main): Don't print an entry for "Everyone".
2521 * mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
2522 (main): Don't print an entry for "Everyone".
2524 2002-07-06 Christopher Faylor <cgf@redhat.com>
2526 * configure.in: Check for libiconv.a.
2527 * configure: Regenerate.
2528 * Makefile.in: Add libiconv.a to libraries required for dumper.exe.
2530 2002-07-06 Christopher Faylor <cgf@redhat.com>
2532 * Makefile.in: Use MINGW stuff from Makefile.common.
2534 2002-07-01 Corinna Vinschen <corinna@vinschen.de>
2536 * mkgroup.c: Add function pointers for functions from advapi32.dll.
2537 (load_netapi): Load used functions from advapi32.dll.
2538 (main): Use function pointers instead of statically linked functions
2541 2002-07-01 Christopher Faylor <cgf@redhat.com>
2543 * mount.cc (main): Ensure that mount_already_exists() also gets default
2544 flag that is passed to do_mount.
2546 2002-06-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2548 * cygpath.cc (long_options): Add "dos" and "mixed", correct "close",
2549 "file" and "type" to use NULL flag.
2550 (usage): Clean up usage output (more), accomodate new options.
2551 (main): Add --dos and --mixed options; accomodate all output forms in
2552 --type. Make UNIXy output default.
2554 2002-06-18 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2556 * cygpath.cc (usage): Clean up usage output.
2557 (dowin): Correct output of -t mixed for -ADHPSW options.
2559 2002-06-14 Corinna Vinschen <corinna@vinschen.de>
2561 * passwd.c: Rearrange includes to avoid unnecessary warnings.
2562 (GetPW): Add parameter to (dis)allow printing of Windows username.
2563 Use defines instead of numerical constants where possible.
2564 Try avoiding impersonation problem. Rearrange to print Windows
2565 username only if it's different from Cygwin username.
2566 (ChangePW): Use defines instead of numerical constants where possible.
2567 (main): Call GetPW with additional parameter. Change error text.
2569 2002-06-14 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2571 * passwd.c (GetPW): Handle case of user-edited /etc/passwd
2572 with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2574 2002-06-09 Christopher Faylor <cgf@redhat.com>
2576 * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2579 2002-06-09 Christopher Faylor <cgf@redhat.com>
2581 * mount.cc (main): Use default system/user flag for cygdrive stuff,
2583 (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2584 * umount.cc (remove_cygdrive_prefix): Ditto.
2585 (main): Use default system/user flag for cygdrive stuff, too.
2587 2002-06-08 Christopher Faylor <cgf@redhat.com>
2589 * mount.cc (opts): Remove '-i' option.
2592 (longopts): Remove --import-old-mounts option.
2594 2002-06-07 David Peterson <chief@mail.idrive.com>
2595 Christopher Faylor <cgf@redhat.com>
2597 * cygpath.cc: Add option to output windows paths in different formats:
2599 (main): Process options.
2600 (doit): Check new options flags.
2602 2002-06-06 Egor Duda <deo@logos-m.ru>
2604 * regtool.cc (Fail): Be more verbose.
2605 (find_key): Add support for remote registry access.
2606 (usage): Document it.
2607 * utils.sgml: Document it.
2609 2002-06-06 Christopher Faylor <cgf@redhat.com>
2611 * strace.cc (main): Make toggle a local variable.
2613 2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
2615 * strace.cc (toggle): New global variable.
2616 (error): Use exit instead of ExitProcess so that stdio buffers get
2618 (create_child): Remove command line error checking.
2620 (dotoggle): New function.
2621 (usage): Add entry for new option -T|--toggle. Alphabetize.
2622 (longopts): Add new option -T|--toggle.
2624 (main): Handle new -T|--toggle option. Move all command line checking
2625 here from other functions.
2626 * utils.sgml: Update section for strace.
2628 2002-06-05 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2630 * strace.cc (version): New global variable.
2631 (usage): Accommodate stdout output.
2632 (print_version): New function.
2634 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2636 * ssp.c (version): New global variable.
2639 (run_program): Correct cmd_line typos to cmdline.
2640 (usage): New function. Standardize usage output. Add ssp.txt to
2642 (print_version): New function.
2643 (main): Accommodate getopt.
2645 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2647 * umount.cc (version): New global variable.
2648 (longopts): Accommodate new --version option.
2650 (usage): Standardize usage output.
2651 (print_version): New function.
2652 (main): Accommodate --help, --version options.
2654 2002-06-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2656 * regtool.cc (prog_name): New global variable.
2659 (usage): Standardize usage output. Rearrange/add descriptions.
2660 (print_version): New function.
2661 (main): Accommodate longopts and new --help, --version options. Add
2662 check for (_argv[optind+1] == NULL).
2664 2002-06-02 Christopher Faylor <cgf@redhat.com>
2666 * strace.cc (forkdebug): Make true by default.
2667 (attach_process): Use window pid if cygwin pid isn't available (yet).
2668 (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS,
2669 exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
2671 2002-05-30 Christopher Faylor <cgf@redhat.com>
2673 * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
2675 2002-05-29 Christopher Faylor <cgf@redhat.com>
2677 * mount.cc (main): Make -b the default.
2679 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2681 * ps.cc (main): Use uid or uid32 member of struct external_pinfo
2682 dependent of the value of the struct's version member.
2684 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2686 * ps.cc (main): Change print format for uid to unsigned. Use uid32
2687 member of struct external_pinfo instead of uid.
2689 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2691 * passwd.c (prog_name): New global variable.
2694 (usage): Standardize output. Accommodate new options.
2695 (print_version): New function.
2696 (main): Accommodate longopts and new --help, --version options.
2698 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2700 * ps.cc (usage): Fix typo.
2702 2002-05-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2704 * ps.cc (prog_name): New global variable.
2707 (usage): New function.
2708 (print_version): New function.
2709 (main): Accommodate longopts and new --help, --version options.
2711 2002-05-26 Christopher Faylor <cgf@redhat.com>
2713 * strace.cc (attach_process): Don't tell process to start stracing
2715 (proc_child): Do it here, instead, after first debug event. This
2716 should work around inexplicable races with DebugActiveProcess.
2717 (dostrace): Pass any pid argument to proc_child.
2719 2002-05-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2721 * getfacl.c (usage): Standardize usage output. Change return type to
2723 (print_version): New function.
2724 (longopts): Added longopts for all options.
2725 (main): Accommodate new help and version options.
2727 2002-05-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2729 * mount.cc (version): New global variable.
2730 (usage): Standardize usage output. Accommodate new version option.
2731 (print_version): New function.
2732 (longopts): Accommodate new version option.
2736 2002-05-22 Corinna Vinschen <corinna@vinschen.de>
2738 * cygpath.cc (usage): Change usage output slightly.
2740 2002-05-20 Joerg Schaible <joerg.schaible@gmx.de>
2742 * cygpath.cc (main): Add option l to support conversion to
2743 Windows long file names. Refactured code for capital options.
2744 Support of options from file for capital options.
2745 (dowin): New function. Refactured from main.
2746 (doit): Call long path conversion.
2747 (get_long_name): New function.
2748 (get_long_paths): New function.
2749 (get_long_path_name_w32impl): New function. Reimplementation
2750 of Windows API function GetLongPathName (only 98/Me/2000/XP or
2752 (get_short_name): Call GetShortPathName only once.
2753 (get_short_paths): Fix calculating buffer size.
2754 * utils.sgml: Update cygpath section for l option.
2756 2002-05-18 Christopher Faylor <cgf@redhat.com>
2758 * strace.cc (add_child): Use calloc since new requires working
2760 (remove_child): Ditto for delete/free.
2762 2002-05-15 Mark Blackburn <marklist@fangorn.ca>
2764 * cygpath.cc (get_short_paths): Fix more error checking.
2765 (get_short_name): Ditto.
2767 2002-05-14 Joerg Schaible <joerg.schaible@gmx.de>
2769 * cygpath.cc (main): Add option H to show the Windows' profiles
2770 directory. Support short names for options DPSW. Clean up
2772 * utils.sgml: Update cygpath section for H option and s support.
2774 2002-05-14 Mark Blackburn <marklist@fangorn.ca>
2776 * cygpath.cc (get_short_paths): Fix error checking.
2778 2002-05-13 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2780 * kill.cc (prog_name): New global variable.
2781 (usage): Standardize usage output. Add descriptions.
2782 (print_version): New function.
2783 (longopts): Accommodate new version option.
2787 2002-05-13 Christopher Faylor <cgf@redhat.com>
2789 * kill.cc (listsig): Display numeric id when given symbolic input.
2791 2002-05-13 Christopher Faylor <cgf@redhat.com>
2793 * kill.cc (usage): Show new options. Allow specification of output
2795 (main): Implement 'h' option.
2797 2002-05-13 Christopher Faylor <cgf@redhat.com>
2799 * Makefile.in (kill.exe): Add as a specific target.
2800 * kill.cc (longopts): New.
2802 (get_sig): Accept const char * parameter. Return -1 on unknown signal.
2803 (test_for_unknown_sig): New function.
2804 (listsig): New function.
2805 (main): Use getopt_long for option parsing. Implement -l, and -s
2806 options. Use test_for_unknown_sig() to test for signal validity.
2808 * mount.cc (longopts): Make static.
2811 2002-05-12 Christopher Faylor <cgf@redhat.com>
2813 * mount.cc (do_mount): Default to non-exec option for remote drives.
2814 Report warnings before attempting a mount.
2815 (longopts): Add no-executable option.
2816 (mount_commands): Ditto.
2818 (usage): Ditto. Indicate that system mount is now the default.
2819 (main): Accommodate no-executable option. Make system mount the
2821 * umount.cc (usage): Indicate that system umount is now the default.
2822 (main): Make system umount the default.
2824 2002-05-07 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2826 * dumper.cc (usage): Standardize usage output. Generalize to allow use
2828 (longopts): New struct. Added longopts for all options.
2829 (print_version): New function.
2830 (main): Change getopt to getopt_long. Accommodate new help and version
2833 2002-03-29 Corinna Vinschen <corinna@vinschen.de>
2835 * mkgroup.c (main): Change call to exit() to a return statement.
2836 * mkpasswd.c (main): Ditto.
2838 2002-03-27 Joshua Daniel Franklin joshuadfranklin@yahoo.com
2840 * mkpasswd.c (usage): Simplify usage output. Generalize to allow use
2841 for help. Correct '?' typo to 'h'.
2842 (longopts): Add version option.
2843 (opts): Add 'v' version option.
2844 (print_version): New function.
2845 (main): Accommodate new version option. Accommodate usage parameter
2848 2002-03-19 Christopher Faylor <cgf@redhat.com>
2850 * mkgroup.c (usage): Use one just fprintf + string concatenation for
2852 (print_version): Add void to function type and update copyright.
2854 2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2856 * mkgroup.c (usage): Simplify usage output. Generalize to allow use
2857 for help. Correct '?' typo to 'h'.
2858 (longopts): Add version option.
2859 (opts): Add 'v' version option.
2860 (print_version): New function.
2861 (main): Accommodate new version option. Accommodate usage parameter
2862 changes. Use usage to output help message.
2864 2002-03-15 Corinna Vinschen <corinna@vinschen.de>
2866 * mkgroup.c (main): When generating group 513, check for computer's
2867 primary domain instead of current user's domain.
2869 2002-03-14 Corinna Vinschen <corinna@vinschen.de>
2871 * mkgroup.c (main): When generating group 513, check for domain SID
2872 if computer name isn't mapped to a SID.
2874 2001-03-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2876 * kill.cc (usage): Move to top of file.
2880 2002-03-06 Christopher Faylor <cgf@redhat.com>
2882 * cygcheck.cc: Reformat.
2884 2002-03-06 Christopher Faylor <cgf@redhat.com>
2886 * cygcheck.cc (longopts): Use correct short option for --version.
2888 2002-03-06 Christopher Faylor <cgf@redhat.com>
2890 * cygpath.cc: Reformat.
2892 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2894 * cygpath.cc (print_version): New function.
2895 (main): Accommodate new version function. Initialize 'o' to prevent
2898 2002-02-27 Christopher Faylor <cgf@redhat.com>
2900 * cygcheck.cc (main): Eliminate non-GNU formatting glitch.
2902 2002-02-27 Christopher Faylor <cgf@redhat.com>
2904 * ssp.c (help_desk): Fix compiler warning.
2906 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2907 Christopher Faylor <cgf@redhat.com>
2909 Change appropriate globals to statics throughout.
2910 * cygcheck.cc (usage): Simplify usage output. Generalize to allow use
2912 (longopts): Add version option.
2913 (opts): Add 'V" version option.
2914 (print_version): New function.
2915 (main): Accommodate new version option. Accommodate usage parameter
2916 changes. Use usage to output help message.
2918 002-02-19 Christopher Faylor <cgf@redhat.com>
2920 * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is
2922 (libbfd): Use -B rather than -L so that bfd from build directory is
2926 2002-02-15 Christopher Faylor <cgf@redhat.com>
2928 * mount.cc (usage): Fix typo in output.
2930 2002-02-14 Christopher Faylor <cgf@redhat.com>
2932 * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
2934 2002-01-31 Corinna Vinschen <corinna@vinschen.de>
2936 * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
2939 2002-01-30 Corinna Vinschen <corinna@vinschen.de>
2941 * passwd.cc (ChangePW): Add parameter to differ between called for
2942 checking old password and called for changing password. If called
2943 for checking old password, return non-zero only if password is surely
2945 (main): Call ChangePW() with additional parameter.
2947 2002-01-29 Christopher Faylor <cgf@redhat.com>
2949 * dump_setup.cc (parse_filename): Don't consider '_' part of the
2952 2002-01-28 Christopher Faylor <cgf@redhat.com>
2954 * cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in
2955 sys/cygwin.h instead.
2956 * getfacl.c: Add include to remove warning.
2957 * mkgroup.c (main): Assign variables outside of parameter passing.
2958 This seems to eliminate some compiler warnings.
2960 2002-01-28 Christopher Faylor <cgf@redhat.com>
2962 * cygcheck.cc: Use specific cygwin includes, as required.
2964 2002-01-28 Christopher Faylor <cgf@redhat.com>
2966 * Makefile.in (MINGW_INCLUDES): Change cygwin include.
2967 * strace.cc: Use specific cygwin includes, as required.
2968 (load_cygwin): New function. Loads cygwin DLL, if necessary.
2969 (attach_process): Attaches strace to a running process.
2970 (dostrace): Accept pid argument. Attach to pid if supplied.
2971 (usage): Describe -p option. Correct system description.
2972 (longopts): Alphabetize.
2974 (main): Ditto. Handle -p option.
2976 2002-01-21 Christopher Faylor <cgf@redhat.com>
2978 * Makefile.in (CXXFLAGS): Ensure that important settings are preserved
2979 even when overriden by command line.
2981 2002-01-21 Christopher Faylor <cgf@redhat.com>
2983 * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
2984 * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning.
2985 (dump_sysinfo): Make variables unsigned to quiet g++ warnings.
2986 * strace.cc (version_string): Rename from SCCSid.
2987 (add_child): Remove unused variable.
2988 (version): Use version_string. Avoid use of fprintf.
2990 2002-01-21 DJ Delorie <dj@redhat.com>
2992 * Makefile.in: Use CXX instead of CC to compile C++ sources.
2994 2002-01-17 DJ Delorie <dj@redhat.com>
2996 * cygcheck.cc (already_did): Avoid default constructors, which may
2997 require exception support.
2999 2001-01-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3001 * cygpath.cc (main): Add options to show Desktop and Start
3002 Menu's Programs directory for current user or all users.
3003 Move bulk of DPWS options outside the getopt case statement.
3004 * utils.sgml: Update cygpath section for ADPWS options.
3006 2002-01-15 Joerg Schaible <joerg.schaible@gmx.de>
3008 * cygpath.cc (doit): Empty file ignored using option -i.
3010 2002-01-15 Mark Bradshaw <bradshaw@crosswalk.com>
3012 * mkpasswd.c (print_win_error): Add a new function.
3013 (enum_users): Use print_win_error.
3014 (enum_local_groups): Ditto.
3017 2001-12-26 Jonathan Kamens <jik@curl.com>
3019 * cygpath.cc (doit): Detect and warn about an empty path. Detect and
3020 warn about errors converting a path.
3021 (main): Set prog_name correctly -- don't leave an extra slash or
3022 backslash at the beginning of it.
3024 Fri Dec 14 14:04:37 2001 Jason Tishler <jason@tishler.net>
3026 * mkpasswd.c (enum_users): Change to unconditionally use
3027 the --path-to-home option, if supplied by the user. Use default
3028 --path-to-home option value, if appropriate.
3029 (usage): Change usage statement to reflect new semantics.
3030 (main): Remove defaulting of the --path-to-home option.
3032 Fri Dec 14 12:10:39 2001 Jason Tishler <jason@tishler.net>
3034 * mkpasswd.c (opts): Add indication that '-p' option requires an
3037 2001-12-11 Christopher Faylor <cgf@redhat.com>
3039 * Makefile.in: Add define to CXXFLAGS.
3041 2001-12-03 Christopher Faylor <cgf@redhat.com>
3043 * cygcheck.cc (usage): Add -c description.
3044 * cygpath.cc (usage): Alphabetize options.
3045 * strace.cc (usage): Ditto.
3047 2001-11-21 Christopher Faylor <cgf@redhat.com>
3049 * path.cc (cygpath): Don't consider cygdrive stuff when trying to derive
3052 2001-11-20 Mark Bradshaw <bradshaw@staff.crosswalk.com>
3054 * mkpasswd.c: include lmerr.h
3055 (main): New -u option to allow specifying a
3056 specific user. If specified, groups aren't displayed and
3057 output is limited to only the specified user.
3058 (enum_users): If specific user is specified, via -u option,
3059 display only that user's record. With -u use NetUserGetInfo
3060 instead of NetUserEnum.
3061 (load_netapi): Added netusergetinfo.
3063 2001-11-15 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3065 * strace.cc (main): Change getopt() to getopt_long().
3066 Add support for help and version info.
3067 Use new parse_mask() function for -m/--mask option.
3068 (longopts): Add long options structure.
3069 (opts): Move options string from getopts call to static var.
3070 (usage): Print usage information.
3071 (SCCSid): Version info.
3072 (version): New function for displaying version info.
3073 (parse_mask): New function supporting parsing of mnemonics,
3074 hex, and basic expressions in masks.
3075 (mnemonic2ul): New mnemonic parsing function.
3076 (tag_mask_mnemonic): New type.
3077 (mnemonic_table): New table of mnemonics for mnemonic2ul() to
3080 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3082 * cygcheck.cc (dump_sysinfo): Redefine output format slightly.
3083 Print correct build number on 9x/ME systems.
3085 2001-11-12 Christopher Faylor <cgf@redhat.com>
3087 * cygcheck.cc (main): Slight formatting tweak.
3089 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3091 * cygcheck.cc (dump_sysinfo): Add some more details.
3093 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3095 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string
3096 using OSVERSIONINFOEX information.
3098 2001-11-11 Christopher Faylor <cgf@redhat.com>
3102 2001-11-11 Christopher Faylor <cgf@redhat.com>
3104 * cygcheck.cc (scan_registry): Open registry with read-only access.
3105 (main): Reflect argument change for dump_setup.
3106 * dump_setup.cc (dump_setup): Add preliminary extra argument for future
3108 * path.cc (read_mounts): Open registry with read-only access.
3110 2001-11-11 Christopher Faylor <cgf@redhat.com>
3112 * cygcheck.cc (main): Display package info when '-s' is specified.
3113 * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort
3116 2001-11-11 Christopher Faylor <cgf@redhat.com>
3118 * dump_setup.cc: New file.
3119 * Makefile.in: Add info for dump_setup.o.
3120 * cygcheck.cc (main): Recognize '-c' option for checking setup
3122 * path.cc (cygpath): Read mount table if not loaded.
3124 2001-11-10 Christopher Faylor <cgf@redhat.com>
3126 * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.
3127 * path.cc: New file.
3128 * cygcheck.cc (init_paths): Use MS-DOS path syntax.
3129 (cygwin_info): Properly display cygwin version numbers. Prettify some
3131 (dump_sysinfo): Calculate max names of posix and ms-dos paths for
3134 2001-11-09 Corinna Vinschen <corinna@vinschen.de>
3136 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
3138 2001-11-04 Corinna Vinschen <corinna@vinschen.de>
3140 * getfacl.c (username): New function.
3142 (usage): Ditto. Add more user friendly help text.
3143 (main): Add -n and --help option. Print names instead of IDs
3144 unless -n option is given.
3145 * setfacl.c (getperm): Tolerate whitespace and comment chars in input.
3146 (getaclentry): Fix several input string misdetections.
3147 (getaclentries): Allow - as input file name to read from stdin.
3148 Tolerate whitespace and comment chars in input.
3149 (usage): Add more user friendly help text.
3150 (main): Add --help option.
3152 2001-11-04 Egor Duda <deo@logos-m.ru>
3154 * strace.cc (main): New option '-w'. Start traced process in separate
3155 window. New option '-S x'. Flush buffered output every x seconds.
3156 (create_child): Start child process in new window, when requested.
3157 When requested, periodically flush debugging output.
3159 2001-10-24 Christopher Faylor <cgf@redhat.com>
3161 * Makefile.in: Remove EXEEXT consideration. We always need .exe
3164 2001-10-20 Corinna Vinschen <corinna@vinschen.de>
3166 * mkgroup.c: Avoid compiler warnings.
3167 (print_special): New function.
3168 (main): Print special accounts by calling print_special().
3169 * mkpasswd.c: Avoid compiler warnings.
3170 (enum_users): Print additional U-domain\username info in gecos
3171 field when SIDs are printed.
3172 (print_special): New function.
3173 (main): Print special accounts by calling print_special().
3175 2001-10-15 Christopher Faylor <cgf@redhat.com>
3177 * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
3179 2001-10-13 Christopher Faylor <cgf@redhat.com>
3181 * Makefile.in: Allow stdinc searching for dumper.
3183 Tue Oct 9 21:59:00 2001 Christopher Faylor <cgf@cygnus.com>
3185 * Makefile.in (MINGW_INCLUDES): Accommodate changes in Makefile.common.
3187 Sun Oct 7 23:06:39 2001 Christopher Faylor <cgf@cygnus.com>
3189 * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor
3192 Fri Sep 21 20:40:30 2001 Christopher Faylor <cgf@cygnus.com>
3194 * Makefile.in (mingw_getopt.o): Ensure that newlib include directories
3197 Thu Sep 20 21:00:20 2001 Christopher Faylor <cgf@cygnus.com>
3199 * Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.
3201 Wed Sep 19 12:22:08 2001 Christopher Faylor <cgf@cygnus.com>
3203 * Makefile.in: Filter newlib includes from mingw compilation.
3205 2001-09-14 Egor Duda <deo@logos-m.ru>
3207 * dumper.cc (dumper::dumper): Print error code in case of error.
3208 (dumper::add_thread): Ditto.
3209 (dumper::collect_memory_sections): Ditto.
3210 (dumper::dump_memory_region): Ditto.
3211 (dumper::collect_process_information): Ditto.
3212 (print_section_name): Fix formatting.
3214 2001-09-13 Egor Duda <deo@logos-m.ru>
3216 * dumper.cc (main): Properly recognize negative pids (used by w9x).
3218 2001-09-09 Egor Duda <deo@logos-m.ru>
3220 * dumper.cc (main): Change command-line arguments format to be
3221 similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to
3222 CYGWIN environment variable to perform core dumping in case of
3226 Wed Sep 5 22:37:21 2001 Christopher Faylor <cgf@cygnus.com>
3228 * Makefile.in (dumper): Change logic for libbfd and libintl so that
3229 they will be found either in the build tree or the installed directory.
3230 * mkpasswd.c (enum_users): Add a comment as a password for NT.
3232 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3234 * mount.cc (mount_commands): Don't write /cygdrive/u mount points.
3236 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3238 * mount.cc (longopts): Add mount-commands to options list.
3239 (usage): Add mount-commands option.
3240 (mount_commands): New function. Write commands to recreate current
3243 Sat Sep 1 15:58:11 2001 Christopher Faylor <cgf@cygnus.com>
3245 * mount.cc (main): Eliminate excess arguments in printf.
3247 2001-08-30 Egor Duda <deo@logos-m.ru>
3249 * dumper.h: Update copyright notice.
3251 * dumper.cc: (dumper::print_core_section_list): New function.
3252 * dumper.h: (dumper::print_core_section_list): Declare it.
3253 * dumper.cc (print_section_name): New function.
3254 (dumper::collect_process_information): Augment debugging output.
3255 Stop debugee processing if it posts double exception.
3256 (usage): Fix typo in option name.
3258 Tue Aug 28 14:45:02 2001 Christopher Faylor <cgf@cygnus.com>
3260 * mount.cc (main): Issue correct warning for 'not enough arguments'.
3262 2001-08-14 Joerg Schaible <joerg.schaible@gmx.de>
3264 * cygpath.cc (main): Support -w for Windows (System) directories and
3265 return physical correct orthography for the Windows System dir.
3267 2001-07-14 Chris Genly <chgenly@alum.mit.edu>
3269 * regtool.cc (find_key): Handle keys with only one subkey.
3271 Wed Jun 27 22:46:10 2001 Christopher Faylor <cgf@cygnus.com>
3273 * regtool.cc (find_key): Revert previous change.
3275 Wed Jun 27 13:37:41 2001 Keith Starsmeare" <keith_starsmeare@yahoo.co.uk>
3277 * regtool.cc (find_key): Allow '/' as a synonym for '\\'.
3279 Fri Jun 15 00:49:21 2001 Christopher Faylor <cgf@cygnus.com>
3281 * mkpasswd.c (main): Output passwd file in binary mode so that there
3282 are no CRs in the file.
3283 * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive
3286 Tue May 1 10:50:48 2001 Christopher Faylor <cgf@cygnus.com>
3288 * mkpasswd.c (enum_users): Use /bin/bash as the default shell.
3291 Sat Apr 28 22:32:01 2001 Christopher Faylor <cgf@cygnus.com>
3293 * passwd.cc (ttymnam): New function.
3294 (main): Use ttynam() to report name of tty.
3296 2001-04-19 Egor Duda <deo@logos-m.ru>
3298 * dumper.cc (dumper::init_core_dump): Set architecture field in dump
3301 Mon Apr 16 15:08:00 2001 Corinna Vinschen <vinschen@redhat.com>
3303 * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
3305 (load_netapi): Load function pointers `netlocalgroupgetmembers'
3306 and `netgroupgetusers'.
3307 (enum_local_users): New function.
3308 (enum_local_groups): Call `enum_local_users' for each group if
3309 `print_users' is set.
3310 (enum_users): New function.
3311 (enum_groups): Call `enum_users' for each group if `print_users' is set.
3312 (usage): Add usage text for `-u/--users'.
3313 (longopts): Add option `--users'.
3314 (opts): Add option character `u'.
3315 (main): Set `print_users' according to option `-u/--users'.
3316 Call `enum_local_groups' and `enum_groups' with additional parameter
3319 2001-04-15 Michael A Chase <mchase@ix.netcom.com>
3321 * mount.cc (longopts): Add help to options list.
3322 (opts): Add 'h' to options string.
3323 * umount.cc (longopts): Add help to options list.
3324 (opts): Add 'h' to options string and change 'R' to 'A'.
3326 2001-04-13 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
3328 * mkgroup.c (enum_groups): Use RID + offset specified an additional
3330 (usage): Add description of -o option.
3331 (longopts, opts): Add specifications of -o/--id-offset option.
3332 (main): Add -o option. Invoke enum_groups with specified offset.
3333 * mkpasswd.c (enum_users): Just like mkgroup.c.
3334 (usage, longopts, opts): Ditto.
3335 (main): Add -o option. Invoke enum_users with specified offset only
3336 against domain accounts.
3338 2001-04-11 Egor Duda <deo@logos-m.ru>
3340 * mkgroup.c (uni2ansi): Use native method to convert from Unicode
3341 to multi-byte strings.
3342 * mkpasswd.c (uni2ansi): Ditto.
3343 (enum_users): Pass buffer size when converting string.
3344 (enum_local_groups): Ditto.
3345 * mkgroup.c (enum_groups): Ditto.
3346 (enum_local_groups): Ditto.
3348 Mon Apr 2 22:41:33 2001 Christopher Faylor <cgf@cygnus.com>
3350 * mount.cc (main): Use getopt_long for parsing arguments.
3351 (usage): Reformat, show long and short options.
3352 * umount.cc (main): Ditto, all of the above.
3354 Mon Apr 2 10:58:26 2001 Christopher Faylor <cgf@cygnus.com>
3356 * mount.cc (show_mounts): Change format string to more closely resemble
3357 UNIX when displaying mount table.
3359 Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
3361 * kill.cc (forcekill): Use dwProcessId when opening a process, not the
3364 Mon Mar 5 18:50:00 2001 Corinna Vinschen <vinschen@redhat.com>
3366 * getfacl.c: Add copyright hint.
3370 Tue Jan 09 10:26:23 2001 Tony Sideris <tonys1110@home.com>
3372 * regtool.cc (cmd_list): Add new registry display options.
3373 (cmd_list): Add code to implement -p, -k, and -l options.
3375 * regtool.cc (Fail): Add call to LocalFree to free memory allocated by
3378 Wed Jan 10 09:16:57 2001 Christopher Faylor <cgf@cygnus.com>
3380 * regtool.cc (translate): Ensure that 'c' is initialized.
3381 (cmd_set): Ditto for rv.