1 2010-08-26 Corinna Vinschen <corinna@vinschen.de>
3 * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
4 harddisks, if available.
6 2010-08-21 Corinna Vinschen <corinna@vinschen.de>
8 * ldd.cc (report): Drop long pathname considerations which result in
9 invalid path, now that this is done in cygwin_conv_path.
11 2010-08-13 Corinna Vinschen <corinna@vinschen.de>
13 * mount.cc (from_fstab): Fix potentially fatal typo.
15 2010-08-11 Corinna Vinschen <corinna@vinschen.de>
17 * mount.cc (do_mount): Don't treat "bind" mount as remote mount.
18 (mount_entries): Drop the "bind" option from output.
19 * utils.sgml (mount): Match examples to actual mount output. Add
20 "bind" option and add example.
22 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
24 * mingw: Use sysroot, if present, for mingw_dir.
26 2010-07-21 Corinna Vinschen <corinna@vinschen.de>
28 * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.
29 (transform_chars): New function, copied from Cygwin.
30 (simple_nt_stat): New function to check file existance using native
31 NT function. Explain why.
32 (directory_exists): Call simple_nt_stat.
35 2010-07-05 Christopher Faylor <me+cygwin@cgf.cx>
37 * ldd.cc: Clean up formatting throughout.
40 (print_dlls): Reset head here. Record seen dll names so they will
41 not potentially be printed later.
42 (process_file): Remove clearing of head here.
44 2010-07-05 Corinna Vinschen <corinna@vinschen.de>
46 * dump_setup.cc (dump_file): Read requested content from setup.rc
47 file created by newer setup.exe.
49 2010-06-29 Corinna Vinschen <corinna@vinschen.de>
51 * utils.sgml (locale): Change stray local cygdrive prefix to Cygwin's
54 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
56 * utils.sgml (mount): Add description for "dos" and "ihash" mount
59 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
61 * path.cc: Include sys/cygwin.h if built for mount(1).
62 (struct opt): Add "dos" and "ihash" options.
63 (from_fstab_line): Call cygwin_internal rather than read_flags if
66 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
68 * mount.cc (oopts): Remove entirely.
69 (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
71 (print_version): Fix copyright date.
72 (main): Replace option processing loop with single call to
73 cygwin_internal (CW_CVT_MNT_OPTS).
75 2010-04-28 Corinna Vinschen <corinna@vinschen.de>
77 * locale.cc (print_lc_xxx_charset): Remove.
78 (enum type_t): Change according to the fact that nl_langinfo now returns
79 all locale category values.
80 (lc_ctype_names): Add new category members. Redefine for exclusive
82 (lc_numeric_names): Ditto.
83 (lc_time_names): Ditto.
84 (lc_collate_names): Ditto.
85 (lc_monetary_names): Ditto.
86 (lc_messages_names): Ditto.
87 (print_lc): Change switch according to new type_t values.
89 2010-03-27 Corinna Vinschen <corinna@vinschen.de>
91 * locale.cc (print_charmaps): Add EUC-CN and GB2312.
93 2010-03-24 Corinna Vinschen <corinna@vinschen.de>
95 * regtool.cc (find_key): Fix allocation size of "value".
97 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
99 * locale.cc (add_locale_alias_locales): Always use loc_num at function
100 start to avoid confusing bsearch.
102 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
104 * locale.cc: Revert accidental checkin of unfinished changes.
106 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
108 * locale.cc (print_locale_with_codeset): Drop redundant name parameter.
109 Simplify creating locale string. Add "@" in case of a modifier.
110 (print_locale): Drop name parameter in calls to
111 print_locale_with_codeset.
113 2010-02-25 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
115 * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.
117 2010-02-25 Corinna Vinschen <corinna@vinschen.de>
119 * utils.sgml (locale): Change description of -a and -av to match
122 2010-02-23 Corinna Vinschen <corinna@vinschen.de>
124 * locale.cc (printlocale): Remove.
125 (loc_t): New type to keep locale information for printing.
126 (print_codeset): New function to print codeset as on Linux.
127 (print_locale_with_codeset): New function to print single locale.
128 Print verbose style as the Linux locale(1) tool.
129 (print_locale): New function to print single locale plus its UTF-8
130 variation, if available.
131 (compare_locales): New helper function for bsearch and qsort on loc_t.
132 (add_locale): New function to store locale in loc_t array.
133 (add_locale_alias_locales): New function to store locales from
134 locale.alias file in loc_t.
135 (print_all_locales): Call add_locale instead of printlocale.
136 Call add_locale_alias_locales, sort locales alphabetically and print
139 2010-02-22 Christopher Faylor <me+cygwin@cgf.cx>
141 * strace.cc (mnemonic_table): Add "special" mask option.
142 (usage): Document it.
145 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
147 * cygpath.cc (do_pathconv): Fix erroneously printing native NT path
148 prefix introduced by previous patch.
150 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
152 * locale.cc (lc_time_names): Add "date_fmt" entry.
154 2010-02-19 Christopher Faylor <me+cygwin@cgf.cx>
156 * strace.cc (mnemonic_table): Add pthread mask option.
157 (usage): Document strace pthread mask option.
160 2010-02-19 Corinna Vinschen <corinna@vinschen.de>
162 * locale.cc (print_lc_mstrings): New function to print
163 semicolon-separated strings.
164 (enum type_t): New type is_sepstrings_linf.
165 (lc_time_names): Change type of era and alt_digits entry to
167 (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings
170 2010-02-17 Corinna Vinschen <corinna@vinschen.de>
172 * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.
173 * getlocale.c: Rename to ...
174 * locale.cc: Revamp to add full functionality of POSIX locale(1) tool,
175 as far as Cygwin supports it.
176 * utils.sgml (getlocale): Move and rename to ...
177 (locale): Accommodate new functionality.
179 2010-02-13 Ilguiz Latypov <ilatypov@infradead.org>
181 * cygpath.cc (do_pathconv): Fix potential crash.
183 2010-02-11 Corinna Vinschen <corinna@vinschen.de>
185 * getlocale.c (main): Rename local variable to avoid problems.
186 Avoid string comparisons, rather test language and sublanguage codes
187 wheere possible. Add more code to handle Serbian language/territory
188 state identical on all Windows versions. Fix handling for "@latin"
189 modifier in Belarusian locale.
190 * utils.sgml (getlocale): Try to make wording and example clearer.
192 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
194 * getlocale.c (usage): Change text slightly.
196 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
198 * getlocale.c (main): Restrict -a loop to avoid psudo language entries
201 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
203 * getlocale.c (main): Revamp -a loop to avoid duplicates and to print
204 locales with the correct, supported modifiers.
206 2010-01-25 Corinna Vinschen <corinna@vinschen.de>
208 * getlocale.c (main): Use setlocale and fetch string from Windows
209 using GetLocaleInfoW. Explain why.
211 2010-01-22 Corinna Vinschen <corinna@vinschen.de>
213 * Makefile.in (CYGWIN_BINS): Add getlocale.
214 * getlocale.c: New file.
215 * utils.sgml (getlocale): New section describing new getlocale tool.
217 2010-01-16 Corinna Vinschen <corinna@vinschen.de>
219 * cygpath.cc (get_mixed_name): Drop function. Replace with call to
220 convert_slashes throughout.
221 (do_sysfolders): Free allocated buffer.
222 (do_pathconv): Fix freeing last buffer.
224 2010-01-11 Corinna Vinschen <corinna@vinschen.de>
226 * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
228 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
230 * cygpath.cc: Throughout, free obsolete path buffers.
232 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
234 * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
235 Revert usage of argz functions when reading input from file and
236 simplify option usage. Allow only one option argument and use
237 the rest as filename argument to allow spaces in filenames. Restrict
238 processing special folder type options to one line.
240 2009-12-17 Christopher Faylor <me+cygwin@cgf.cx>
242 * ps.cc (main): Return 0 if pid found.
244 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
246 * regtool.cc: Throughout, convert all registry calls to wide char
247 calls and use string conversion according to current locale.
248 (longopts): Change "dword-le" to "dword-be", as was originally
250 (usage): Change usage accordingly.
251 (print_version): Simplify copyright dates in output.
252 (cmd_list): Handle REG_LINK like REG_SZ.
254 (main): Call setlocale.
255 * utils.sgml (regtool): Fix options and add missing descriptions for
258 2009-11-29 Corinna Vinschen <corinna@vinschen.de>
260 * setfacl.c (getaclentry): Allow to delete default entries for the
261 owner and owner group.
263 2009-11-27 Corinna Vinschen <corinna@vinschen.de>
265 * cygcheck.cc (dump_sysinfo): Fix typo in products.
267 2009-11-11 Corinna Vinschen <corinna@vinschen.de>
269 * getfacl.c (print_version): Fix copyright.
270 (main): Don't reuse local variables confusingly. Don't print any file
271 information if acl() fails. Improve error message. Always print a
272 trailing empty line. Set return code to 2 if accessing some file fails.
274 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
276 * path.cc (read_mounts): Skip unnecessary test if path has been
277 fetched from loaded cygwin1.dll.
279 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
281 * cygcheck.cc (cygwin_dll_path): New global variable.
282 (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path.
283 * strace.cc: Full ditto.
284 * path.cc (read_mounts): First use the path stored in cygwin_dll_path,
285 if available. Then fall back to fetching own path. Add comment.
286 Drop printing warnings since they look funny in strace output.
288 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
290 * path.cc (read_mounts): First get installation path from own path.
291 Check if cygwin1.dll exists in same directory. Only if not, try to
292 get installation path from setup registry key. Add ample warnings.
294 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
296 * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.
298 2009-10-31 Corinna Vinschen <corinna@vinschen.de>
300 * cygcheck.cc: Include cygprops.h.
301 (del_orphaned_reg): New option variable.
302 (unique_object_name_opt): Ditto.
303 (handle_reg_installation): New function.
304 (print_reg_installations): Ditto.
305 (del_orphaned_reg_installations): Ditto.
307 (handle_unique_object_name): Ditto.
308 (dump_sysinfo): Call print_reg_installations from here.
309 (usage): Add usage for new options --delete-orphaned-installation-keys,
310 --enable-unique-object-names, --disable-unique-object-names, and
311 --show-unique-object-names.
312 (longopts): Add new options --delete-orphaned-installation-keys,
313 --enable-unique-object-names, --disable-unique-object-names, and
314 --show-unique-object-names.
315 (main): Handle new options.
316 * utils.sgml (cygcheck): Change documentaion accordingly.
318 2009-10-28 Corinna Vinschen <corinna@vinschen.de>
320 * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWIN
321 environment variable.
322 (dump_sysinfo): Don't tweak CYGWIN environment variable, just call
325 2009-10-20 Corinna Vinschen <corinna@vinschen.de>
327 * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
329 2009-10-15 Corinna Vinschen <corinna@vinschen.de>
331 * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
333 (get_user_folder): Remove.
334 (do_sysfolders): Use get_special_folder instead of get_user_folder.
335 Fetch system paths as WCHAR and convert using my_wcstombs.
337 2009-10-12 Corinna Vinschen <corinna@vinschen.de>
339 * kill.cc (main): Skip to PID loop on invalid option to handle
342 2009-08-11 Corinna Vinschen <corinna@vinschen.de>
344 * mkgroup.c (enum_local_groups): Avoid error message if given group
345 name isn't found and return 0 to allow searching to proceed. Always
346 return 0 or 1, not -1.
347 (enum_groups): Avoid error message if given group name isn't found.
348 * mkpasswd.c (enum_users): Ditto.
350 2009-08-10 Dave Korn <dave.korn.cygwin@gmail.com>
352 * mingw: Add fallbacks to search for MinGW components in standard
353 install locations if not found in compiler's $prefix.
355 2009-08-09 Corinna Vinschen <corinna@vinschen.de>
357 * mount.cc (do_mount): Don't exit, just return.
359 2009-07-23 Corinna Vinschen <corinna@vinschen.de>
361 * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
364 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
366 * mount.cc (do_mount): Replace --no-executable flag with notexec
367 mount option in hint for remote filesystems.
368 * path.cc (getmntent): Fix typo (noexec -> notexec).
370 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
372 * Makefile.in (path-mount.o): Add a rule to build stripped down version
373 of path.cc for usage in mount.
374 (mount.exe): Add dependency to path-mount.o.
375 * mount.cc (force): Convert to bool value. Accommodate throughout.
376 (from_fstab): New function.
377 (do_mount_from_fstab): New function.
378 (longopts): Add --all option.
379 (opts): Add -a option.
380 (usage): Document -a/--all option.
381 (main): Handle -a option as well as single parameter.
382 * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
383 (mount_table): Remove static storage class.
384 (max_mount_entry): Ditto.
385 (root_here): Unused. Remove.
386 (from_fstab_line): Remove static.
387 * path.h (struct mnt_t): Define here rather than in path.cc.
388 (from_fstab_line): Declare.
389 (mount_table): Declare.
390 (max_mount_entry): Declare.
391 * utils.sgml (mount): Document -a/--all option and mounting of single
392 path from fstab files.
394 2009-07-15 Corinna Vinschen <corinna@vinschen.de>
396 * strace.cc (main): Open trace output file in UNIX mode.
398 2009-07-13 Corinna Vinschen <corinna@vinschen.de>
400 * cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.
402 2009-07-04 Christopher Faylor <me+cygwin@cgf.cx>
404 * cygwin-console-helper.cc: New file.
406 2009-06-10 Corinna Vinschen <corinna@vinschen.de>
408 * path.cc (oopts): Sort alphabetically, add missing "auto" and
410 (from_fstab_line): Handle mount points same as Cygwin itself. Use
411 "cygdrive prefix" as posix name of cygdrive prefix.
412 (from_fstab): Add auto entries for /usr/bin and /usr/lib. Add
413 MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
414 Use "cygdrive prefix" as posix name of default cygdrive prefix.
415 (getmntent): Allocate smaller buffers. Align output closer to output
418 2009-05-17 Corinna Vinschen <corinna@vinschen.de>
420 * cygpath.cc (codepage): New variable.
421 (long_options): Add --codepage option.
422 (options): Add -C option.
423 (usage): Add -C/--codepage description.
424 (my_wcstombs): New function. Use througout instead of wcstombs.
425 (do_options): Handle -C/--codepage option.
426 * utils.sgml (cygpath): Add description for new -C/--codepage option.
428 2009-05-16 Corinna Vinschen <corinna@vinschen.de>
430 * Makefile.in (cygpath.exe): Link against cygwin.a before linking
431 against ntdll.dll to avoid linking symbols defined in both DLLs
435 2009-05-15 Corinna Vinschen <corinna@vinschen.de>
437 * cygpath.cc (main): Only setlocale for LC_CTYPE category. Fallback
438 to UTF-8 if locale is "C".
439 * ldd.cc (main): Ditto.
440 * mkgroup.c (main): Ditto.
441 * mkpasswd.c (main): Ditto.
442 * passwd.c (main): Ditto.
444 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
445 Christopher Faylor <me+cygwin@cgf.cx>
447 * mount.cc (oopts): Sort. Add override option. Add dummy "auto"
448 option for consistency.
449 (mount_entries): Avoid adding auto-mounted entries to -m output.
451 * utils.sgml: Sort mount options. Add description of override option.
453 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
455 * Makefile.in: Link ps.exe agains ntdll.dll.
456 * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes
457 have to be enumerated. Workaround EnumProcessModules problem when
458 running under WOW64 and use NtQueryInformationProcess to fetch
461 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
463 * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generate
466 * mkgroup.c: Accommodate ctype changes.
471 2009-05-04 Christopher Faylor <me+cygwin@cgf.cx>
473 * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if
474 find_on_path doesn't find the app on the path.
476 2009-05-04 Corinna Vinschen <corinna@vinschen.de>
478 * cygcheck.cc (usage): Fix option order and print.
480 2009-04-22 Christopher Faylor <me+cygwin@cgf.cx>
482 * strace.cc (create_child): Set CYGWIN=noglob when starting new process
483 so that Cygwin will leave already-parsed the command line alonw.
485 2009-04-15 Corinna Vinschen <corinna@vinschen.de>
487 * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
488 given. Do backslash to slash conversion for mixed paths after
489 handling \\?\ prefix.
491 2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
493 * Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.
495 2009-04-07 Corinna Vinschen <corinna@vinschen.de>
497 * path.cc (readlink): Accommodate new UTF-16 symlinks.
499 2009-04-03 Kevin Buettner <kevinb@redhat.com>
501 * utils.sgml: Various syntactical and semantical fixes.
502 * cygcheck.cc (usage): Fix --find-package explanation.
504 2009-03-26 Yaakov Selkowitz <yselkowitz@cygwin.com>
506 * utils.sgml (passwd -R): Remove references to CYGWIN="server".
508 2009-03-24 Corinna Vinschen <corinna@vinschen.de>
510 * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
511 * strace.cc (proc_child): Ditto.
512 * ldd.cc: Remove now useless undef wcscasecmp.
514 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
516 * passwd.c (usage): Change description for -d option according to
519 * utils.sgml: Add missing description for passwd -d option.
521 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
523 * passwd.c (caller_is_admin): New function to test if calling user
524 is an administrator by inspecting user token.
525 (main): Drop fetching caller info from logonserver. Only fetch
526 server from environment when trying to change password for own
527 account. Drop admin check entirely in case of doing account
528 maintainance. Otherwise replace check for admin by result of
529 caller_is_admin call.
531 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
533 * passwd.c (main): Always get logonserver from environment and
534 use when fetching user info for caller.
536 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
538 * ldd.cc: Fix compiler warning.
540 * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
541 (main): Call setlocale. Fix a bug in fetching the logon server from
544 2009-03-18 Christopher Faylor <me+cygwin@cgf.cx>
548 2009-03-17 Christopher Faylor <me+cygwin@cgf.cx>
550 * ldd.cc (load_dll): Start helper program rather than ldd.exe.
551 (set_entry_point_break): Rename from get_entry_point.
552 (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing
553 specific dll name if we're looking at a dll.
554 (report): Always dump dlls on process exit. Don't allow thread
555 creation. Accommodate get_entry_point rename.
556 (start_process): Start process with DEBUG_ONLY_THIS_PROCESS.
557 (longopts): Eliminate "dll" option.
560 2009-03-17 Corinna Vinschen <corinna@vinschen.de>
561 Christopher Faylor <me+cygwin@cgf.cx>
563 * ldd.cc: Use wide character Win32 paths throughout.
564 (load_dll): Fix size expression (add fn) in realloc.
566 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
568 * ldd.cc (longopts): Add --dll option.
569 (get_module_filename): Generalized wrapper function which avoid path
571 (load_dll): Handle special-case of inspecting a DLL.
572 (start_process): Accept an output parameter "isdll". Detect when file
573 to start is a DLL and start a wrapper instead.
574 (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
575 everything before the DLL itself first appears. (This is not strictly
576 correct and should be fixed eventually)
577 (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let
578 captive ldd process terminate normally. Pass dll info to
579 print_dlls_and_kill_inferior.
580 (main): Handle special-case "--dll" option by loading the DLL and
583 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
585 * path.cc (from_fstab): Use wcstombs/mbstowcs instead of
586 WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
588 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
590 * wide_path.h (class wide_path): New class to convert Windows path
591 to WCHAR win32 path, including long path conversion if necessary.
592 * cygcheck.cc: Use class wide_path throughout to call Win32 functions
593 taking potentially long filenames.
594 (display_error): Use snprintf rather than sprintf.
595 (display_error_fmt): Ditto.
596 (dump_sysinfo): Use FindFirstFileW/FindNextFileW.
597 * cygpath.cc: Use class wide_path throughout to call Win32 functions
598 taking potentially long filenames.
599 (get_device_name): Raise buffer size to take long pathnames.
600 (get_short_paths): Convert to using GetShortPathNameW.
601 (get_short_name): Ditto.
602 (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW.
603 (get_long_name): Convert to using GetLongPathNameW.
604 (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX.
605 (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t
606 Win32 path name and drop long pathname prefix if possible.
607 (main): Call setlocale to accommodate wide char/multibyte conversions.
609 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
611 * ldd.cc: Rework to detect missing DLLs.
612 (start_process): Change to expect windows filename as input.
613 (tocyg): New function - convert cygwin fn to windows fn.
614 (print_dlls_and_kill_inferior): Accept extra argument denoting whether
615 to open input and look for nonexistent DLLs. Use tocyg to convert
616 filename and pass it to start_process.
617 (report): Flag when an DLL-not-found exception occurs and pass this
618 information to print_dlls_and_kill_inferior.
619 (filelist): New structure.
620 (saw_file): New function.
621 (dump_import_directory): Ditto.
623 (skip_dos_stub): Ditto.
624 (get_directory_index): Ditto.
625 (process_file): Ditto.
627 2009-03-09 Corinna Vinschen <corinna@vinschen.de>
629 * utils.sgml: Fix typo.
631 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
633 * cygcheck.cc (usage): Fix typo.
635 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
637 * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
638 as example cygdrive prefix. Remove reference to -u and -s options.
639 Add an example using the -o flag.
641 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
643 * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
646 2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
648 * Makefile.in: Add DESTDIR functionality.
650 2009-01-29 Corinna Vinschen <corinna@vinschen.de>
652 * cygcheck.cc (dump_sysinfo): Evaluate and print state of
653 obcaseinsensitive kernel flag.
655 2009-01-21 Corinna Vinschen <corinna@vinschen.de>
657 * passwd.c: Remove CYGWIN=server requirement from usage text.
659 2009-01-17 Corinna Vinschen <corinna@vinschen.de>
661 * Makefile.in: Fix copyright date.
662 * cygcheck.cc (scan_registry): Take additional parameter and add code
663 to avoid recursion in Wow6432Node subkey. Rename variable cygnus to
664 cygwin. Scan for "Cygwin" instead of for "cygnus" substring.
665 (dump_sysinfo): Drop unused calls to scan_registry. Drop scanning
668 2009-01-16 Corinna Vinschen <corinna@vinschen.de>
670 * cygcheck.cc (dump_sysinfo): Raise size of osname. Add Windows 7
671 and Windows 2008 R2 as recognized OSes. Update products array to
672 the latest documented list.
674 2009-01-09 Christopher Faylor <me+cygwin@cgf.cx>
676 * ldd.cc: New file. First stab at implementing ldd-like functionality
678 * Makefile.in (CYGWIN_BINS): Add ldd.
679 (ldd.exe): Use -lpsapi.
681 2009-01-05 Pierre Humblet <Pierre.Humblet@ieee.org>
683 * cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
685 2008-12-30 Pierre Humblet <Pierre.Humblet@ieee.org>
687 * cygcheck.cc (pretty_id): Quote the path for popen.
688 (dump_sysinfo_services): Ditto.
690 2008-12-16 Corinna Vinschen <corinna@vinschen.de>
692 * utils.sgml: Fix typo in passwd screen text.
694 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
696 * passwd.c (main): Put how to delete the registry password on its own
697 line in passwd -R output.
699 2008-12-13 Christopher Faylor <me+cygwin@cgf.cx>
701 * utils.sgml: Convert some backslashes to slashes.
703 2008-11-26 Corinna Vinschen <corinna@vinschen.de>
705 * passwd.c (longopts): Add --reg-store-pwd option.
706 (opts): Add -R option.
707 (usage): Add text for -R/--reg-store-pwd option.
708 (main): Fix size of local user and password string arrays.
710 * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
712 2008-10-29 Christopher Faylor <me+cygwin@cgf.cx>
714 * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything
717 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
719 * mingw: Set sawcfile when -xc* is detected. Extend list of detected
722 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
724 * mingw: Add more checks to allow more varied use.
726 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
728 * mingw: Use a better method to find where mingw directory lives.
730 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
732 * mingw: New front-end script to control building of MinGW files
733 without using the deprecated -mno-cygwin option.
734 * Makefile.in: Use mingw front-end.
736 2008-09-12 Christopher Faylor <me+cygwin@cgf.cx>
738 * cygcheck.cc (pathlike::check_existence): Remove class name from
740 (display_internet_error): Use proper format specifier for DWORD.
741 (environ): Remove unneeded declaration.
742 (main): Use brace around nested if to avoid an overly-helpful compiler
744 * dump_setup.cc (parse_filename): Reorganize nested if to avoid an
745 overly-helpful compiler warning.
746 * path.cc (GUID_shortcut): Use braces around part of initializer which
748 (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a
750 (struct opt): Make static.
751 * ps.cc (main): Reorganize nested if to avoid an overly-helpful
753 * regtool.cc: Make some anonymous structs static to avoid a compiler
755 * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
757 * strace.cc (add_child): Use proper format specifier for DWORD.
758 (remove_child): Ditto.
761 2008-08-27 Christopher Faylor <me+cygwin@cgf.cx>
763 * cygcheck.cc (nuke): Use malloc rather than alloca for environment
765 (load_cygwin): Ditto.
766 * dump_setup.cc (parse_filename): Cosmetic changes.
767 (get_packages): Ditto.
769 2008-08-25 Corinna Vinschen <corinna@vinschen.de>
771 * mkgroup.c (enum_local_groups): Don't skip printing groups when
772 print_current is set and group SID is not curr_pgrp.
773 (enum_groups): Ditto.
774 (main): Fix condition when SYSTEM group gets printed.
775 * mkpasswd.c (enum_users): Don't skip printing users when print_current
776 is set and user SID is not curr_user.
777 (main): Allow printing standard accounts even when print_current is set.
779 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
781 * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
782 if a group exists, rather than just allocating a buffer and going ahead.
784 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
786 * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
787 as argument when LookupAccountXXX failed.
788 (enum_groups): Ditto.
790 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
792 * mkgroup.c (enum_local_groups): Return failure if looking for a single
793 group succeeded. Add comment.
795 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
797 * mkgroup.c (main): Keep correctly track of optional arguments.
798 * mkpasswd.c (main): Ditto.
800 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
802 * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
803 Keep track of optional argumnts and fix up optind afterwards.
804 * mkpasswd.c (main): Ditto.
806 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
808 * cygcheck.cc (print_version): Update copyright dates.
810 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
812 * mkpasswd.c (main): Avoid printing system accounts when a single user
813 name has been requested.
815 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
817 * Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet
819 * mkgroup.c: Change all global variables and most functions to static.
820 (enum_local_groups): Add a print_current parameter to control whether
821 entries for everything should be printed or just the current user.
822 (enum_groups): Ditto.
823 (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL
824 deference when no command line arguments are specified. Accommodate
825 argument changes to above functions. Avoid printing SYSTEM account
826 when print_current is specified. Issue error when extra stuff is found
828 * mkpasswd.c: Change all global variables and most functions to static.
829 (enum_users): Add a print_current parameter to control whether entries
830 for everything should be printed or just the current user.
831 (main): Move call fetch_current_user_sid earlier to avoid a NULL
832 deference when no command line arguments are specified. Accommodate
833 argument change to above function. Avoid printing standard accounts
834 when print_current is specified. Issue error when extra stuff is found
837 2008-08-15 Corinna Vinschen <corinna@vinschen.de>
839 * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
840 group SID from user token.
841 (current_group): Move up in file. Move fetching primary group SID to
842 fetch_current_pgrp_sid.
843 (enum_local_groups): Check if current SID is the same as current user's
845 (enum_groups): Ditto.
846 (main): Call fetch_current_pgrp_sid before enumerating groups. Call
847 current_group only if current group hasn't been enumerated already.
848 * mkpasswd.c (fetch_current_user_sid): New function to fetch current
849 user SID from user token.
850 (current_user): Move fetching current user SID to
851 fetch_current_user_sid.
852 (enum_users): Check if current SID is the same as current user's SID.
853 (main): Call fetch_current_user_sid before enumerating users. Call
854 current_user only if current user hasn't been enumerated already.
856 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
858 * mount.cc (NT_MAX_PATH): Define.
859 (longopts): Rename mount-commands option to mount-entries.
860 (opts): Remove removed options.
861 (struct opt): Move up in file to allow using it in usage.
862 (usage): Change text for --mount-entries option. Remove
863 -X option. Add valid options output.
864 (main): Remove handling -b option.
865 (convert_spaces): New static function to convert spaces to "\040"
867 (mount_entries): Renamed from mount_commands. Rewrite to emit
868 /etc/fstab compatible output.
869 (show_cygdrive_info): Print "nouser" rather than "system".
870 * umount.cc (longopts): Remove remove-all-mounts,
871 remove-cygdrive-prefix, remove-system-mounts, system and user options.
872 (opts): Remove A, c, s, S, u options.
873 (usage): Remove text for all removed options.
874 (main): Remove handling for all removed options.
875 (remove_all_mounts): Remove.
876 (remove_all_system_mounts): Remove.
877 (remove_cygdrive_prefix): Remove.
878 * utils.sgml: Fix mount and umount documentation. Move description
879 of (cyg,not)exec options to mount table section.
881 2008-08-04 Christopher Faylor <me+cygwin@cgf.cx>
883 * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears
884 when cygwin1.dll is unloaded.
886 2008-07-30 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
888 * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
890 2008-07-27 Christopher Faylor <me+cygwin@cgf.cx>
892 * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with
895 2008-07-25 Christopher Faylor <me+cygwin@cgf.cx>
897 * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
898 (oopts): Use boolean constants for slightly increased clarity.
900 * configure.in: Remove apparently unneeded program_transfer_name code.
901 * configure: Regenerate.
903 2008-07-24 Corinna Vinschen <corinna@vinschen.de>
905 * utils.sgml: Remove useless text.
907 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
909 * mkgroup.c (main): Fix test for duplicate domain/machine request.
910 * mkpasswd.c (main): Ditto.
912 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
914 * mkgroup.c: Rework to allow per-domain/per-machine id_offset.
915 Add -b option to skip builtin groups.
916 (main): Simplify code.
917 * mkpasswd.c: Rework to allow per-domain/per-machine id_offset.
918 (main): Simplify code.
919 * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options.
920 Add mkgroup -b option.
922 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
924 * mkgroup.c: Consolidate variable names.
925 (enum_unix_groups): New function.
926 (print_special): Use LookupAccountSidW instead of LookupAccountSidA.
927 (current_group): Ditto.
928 (usage): Add -U option.
929 (longopts): Add --unix option.
930 (opts): Add -U option.
931 (main): Handle -U option. Call enum_unix_groups if set.
932 * mkpasswd.c: Consolidate variable names.
933 (current_user): Use LookupAccountSidW instead of LookupAccountSidA.
934 (enum_unix_users): New function.
935 (usage): Add -U option.
936 (longopts): Add --unix option.
937 (opts): Add -U option.
938 (main): Handle -U option. Call enum_unix_groups if set.
939 * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
941 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
943 * mkgroup.c (enum_groups): Create full qualified groupname using
944 domain or servername, depending on printing domain or machine accounts.
945 * mkpasswd.c (enum_users): Ditto for users.
947 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
949 * mkgroup.c (main): Remove special root group code. Only print
950 SYSTEM group in case of printing local machine or local domain groups.
952 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
954 * Makefile.in (cygcheck.exe): Link against ntdll.
955 * bloda.cc: Use statically linked functions throughout.
956 * cygpath.cc: Drop 9x considerations.
957 * mkgroup.c: Revamp. Redefine -l and -d options to take optional
958 machine and domain parameters. Redefine -c to work always, using
959 token information. Add -L, -D, -C to create unique groupnames in
960 domain\group syntax. Add -S option to define domain\group separator
961 char. Ignore -u and -s options.
962 * mkpasswd.c: Revamp. Redefine -l and -d options to take optional
963 machine and domain parameters. Redefine -c to work always, using
964 token information. Add -L, -D, -C to create unique usernames in
965 domain\user syntax. Add -S option to define domain\user separator
966 char. Ignore -g and -s options. Prefer to take homedir from $HOME
967 over $HOMEDRIVE/$HOMEPATH.
968 * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options.
969 (getmntent): Accomodate throughout.
970 * ps.cc: Fix copyright dates.
971 * utils.sgml: Fix text for mkgroup and mkpasswd.
973 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
975 * mount.cc (do_mount): Remove MOUNT_ENC code.
976 (oopts): Remove "managed" option.
977 (mount_commands): Drop "managed" handling.
978 * path.cc (oopts): Remove "managed" option.
979 (getmntent): Remove MOUNT_ENC code.
981 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
983 * utils.sgml: Add id's to all examples.
985 2008-07-09 Corinna Vinschen <corinna@vinschen.de>
987 * mkgroup.c: Use statically linked functions throughout, except for
988 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
989 Use defines instead of constants throughout.
990 (MAX_SID_LEN): Define.
991 (load_netapi): Just load DsGetDcNameW pointer.
994 (enum_local_users): Take server name and use in Net... call.
995 (DBGSID): Define datastructure.
996 (MAX_BUILTIN_SIDS): Define.
997 (builtin_sid_list): Define global sid list.
998 (builtin_sid_cnt): Define counter for global sid list.
999 (enum_local_groups): Take server name and use in Net... and Lookup...
1000 calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to
1001 NetLocalGroupEnum. Check for duplicate builtin groups.
1002 (enum_users): Take server name and use in Net... call.
1003 (usage): Change text slightly.
1004 (print_version): Fix copyright.
1005 (main): Call enum_local_groups for domains as well.
1006 * mkpasswd.c: Use statically linked functions throughout, except for
1007 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1008 Use defines instead of constants throughout.
1009 (MAX_SID_LEN): Define.
1010 (load_netapi): Just load DsGetDcNameW pointer.
1011 (uni2ansi): Use wcstombs.
1012 (current_user): Replace "unused_by_nt/2000/xp" by
1014 (enum_users): Ditto.
1015 (print_version): Fix copyright.
1017 2008-05-22 Corinna Vinschen <corinna@vinschen.de>
1019 * setfacl.c (setfacl): Change from void to int. Return 2 in case of
1021 (main): Return with error code from setfacl.
1023 2008-05-15 Corinna Vinschen <corinna@vinschen.de>
1025 * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.
1029 2008-03-23 Corinna Vinschen <corinna@vinschen.de>
1031 * mount.cc (usage): Mark -s and -u as ignored.
1032 (print_version): Simplify printing copyright dates.
1033 (main): Remove default_flag. Dont set flags on -s and -u options.
1034 (mount_commands): Drop handling -s and -u options.
1036 2008-03-22 Corinna Vinschen <corinna@vinschen.de>
1038 * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
1039 * path.cc: Fetch mount points from fstab files instead of from
1040 registry. Use adapted functions copied from Cygwin DLL.
1041 (mnt_t): Drop issys member. Define as "mnt_t" instead of "struct mnt_t"
1043 (max_mount_entry): New variable.
1044 (unconvert_slashes): Move to earlier location in file. Make inline.
1046 (get_cygdrive0): Remove.
1047 (get_cygdrive): Remove.
1048 (skip_ws): New function.
1050 (conv_fstab_spaces): Ditto.
1051 (read_flags): Ditto.
1052 (from_fstab_line): Ditto.
1054 (from_fstab): Ditto.
1056 (read_mounts): Drop old registry code. Fetch
1057 "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key. Use
1058 rootdir extracted from module path as fallback. Call from_fstab for
1059 nouser and user mount points.
1060 (setmntent): Check max_mount_entry to test if read_mounts must be
1062 (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
1064 2008-03-16 Brian Dessent <brian@dessent.net>
1066 * path.cc: Include malloc.h for alloca.
1067 (is_symlink): Rewrite. Just read the whole file in memory rather
1068 than by parts. Account for an ITEMIDLIST if present, as well as
1069 the new style of Cygwin shortcut supporting targets > MAX_PATH.
1071 2008-03-12 Corinna Vinschen <corinna@vinschen.de>
1073 * cygpath.cc (do_sysfolders): Use cygwin_conv_path.
1074 (do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list.
1075 * dumper.cc (main): Use cygwin_conv_path. Allocate target path
1077 * mkpasswd.c (current_user): Use cygwin_conv_path.
1078 (enum_users): Ditto.
1079 * ps.cc (NT_MAX_PATH): Define.
1080 (main): Use cygwin_conv_path.
1081 * regtool.cc (find_key): Ditto. Allocate target path dynamically.
1084 2008-03-11 Brian Dessent <brian@dessent.net>
1086 * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
1089 2008-03-11 Brian Dessent <brian@dessent.net>
1091 * cygcheck.cc (dirname): New static function.
1092 (find_app_on_path): Use SYMLINK_MAX. Resolve symlink relative
1093 to link's location. Adjust to the fact that cygpath already
1094 normalizes its return value.
1095 * path.cc (rel_vconcat): Add cwd parameter, and use it instead
1096 of calling GetCurrentDirectory() if possible. Rename throughout.
1097 (vcygpath): Rename from cygpath and accept cwd and va_list. Pass
1098 cwd on to rel_vconcat().
1099 (cygpath_rel): New front end for vcygpath.
1101 * path.h (cygpath_rel): Declare.
1102 (SYMLINK_MAX): Define to 4095.
1104 2008-03-09 Brian Dessent <brian@dessent.net>
1106 * Makefile.in (install): Don't install the testsuite.
1108 2008-03-08 Brian Dessent <brian@dessent.net>
1110 * Makefile.in: Add a 'check' target that builds and runs
1111 testsuite.exe from path-testsuite.o and testsuite.o.
1112 * path.cc: Include testsuite.h.
1113 (struct mnt): Change to a mnt_t typedef and don't define
1114 mount_table when TESTSUITE is defined.
1115 (find2): Don't include when TESTSUITE is defined to avoid warning.
1116 (get_cygdrive0): Ditto.
1117 (get_cygdrive): Ditto.
1118 (read_mounts): Provide empty implementation when TESTSUITE is
1120 (vconcat): Use the isslash macro.
1121 (unconvert_slashes): New helper to convert to backslashses.
1122 (rel_vconcat): Handle relative paths more gracefully.
1123 (cygpath): Skip a leading "./" sequence. Avoid double-slashes.
1124 Normalize final output to backslashes and remove redundant path
1126 * testsuite.cc: New file implementing testsuite driver.
1127 * testsuite.h: New header implementing harness mount table and
1130 2008-03-08 Brian Dessent <brian@dessent.net>
1132 * Makefile.in: Reorganize considerably, using GNU make's
1133 static pattern rules and target-specific variables.
1135 2008-02-28 Corinna Vinschen <corinna@vinschen.de>
1137 * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
1138 for LocalService and NetworkService accounts. Change comments.
1140 2008-01-13 Corinna Vinschen <corinna@vinschen.de>
1142 * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
1143 first. Load kernel32.dll earlier. Make osname a buffer. Simplify
1144 Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up
1145 non-Vista version info. Exit early if not on NT.
1147 2007-12-29 Dave Korn <dave.korn@artimi.com>
1149 * bloda.cc (enum bad_app): Add BYTEMOBILE.
1150 (dodgy_app_detects[]): Add FILENAME entry to detect bmnet.dll.
1151 (big_list_of_dodgy_apps[]): Add description for BYTEMOBILE.
1153 2007-12-20 Brian Dessent <brian@dessent.net>
1155 * Makefile.in (cygcheck.exe): Don't link to ntdll.
1156 * bloda.cc (pNtQuerySystemInformation): Add.
1157 (pRtlAnsiStringToUnicodeString): Add.
1158 (get_process_list): Use function pointers for NT functions.
1159 (dump_dodgy_apps): Skip dodgy app check on non-NT platforms.
1160 Use GetProcAddress for NT-specific functions.
1162 2007-12-07 Corinna Vinschen <corinna@vinschen.de>
1164 * regtool.cc (opts): Add missing 'W'.
1166 2007-12-06 Corinna Vinschen <corinna@vinschen.de>
1168 * ps.cc: Include limits.h.
1169 (main): Set file name buffer size to PATH_MAX. Use progname or
1170 progname_long member of struct external_pinfo dependent of the value of
1171 the struct's version member.
1173 2007-08-31 Dave Korn <dave.korn@artimi.com>
1175 * mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum
1176 call so that it will automatically size returned buffer sufficiently.
1178 2007-08-03 Dave Korn <dave.korn@artimi.com>
1180 * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
1181 dependency-filtering $(wordlist ...) call appropriately. Link ntdll.
1182 (bloda.o): New rule to build bloda.o
1183 * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps().
1184 * bloda.cc: New file implements detection of applications from the
1185 Big List Of Dodgy Apps.
1187 2007-07-24 Corinna Vinschen <corinna@vinschen.de>
1189 * COPYING.dumper: New file.
1190 * dumper.cc: Change license to plain GPLv2 + later.
1192 * parse_pe.cc: Ditto.
1194 2007-07-23 Christopher Faylor <me+cygwin@cgf.cx>
1196 * strace.cc (create_child): Don't convert a path from cygwin format
1197 unless it has a slash.
1199 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1201 * strace.cc (usage): Add missing description for -q.
1203 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1205 * Makefile.in (kill.exe): Remove reliance on libiberty.
1206 * kill.cc (strsigno): New function patterned after libiberty but using
1207 newly exported cygwin array.
1209 2007-06-03 Christopher Faylor <me+cygwin@cgf.cx>
1211 * cygcheck.cc (pathlike): New class.
1212 (paths): Redefine as type pathlike.
1213 (display_error): Declare a few different ways to allow more flexible
1215 (display_error_fmt): New function for those cases where C++ just isn't
1217 (add_path): Rewrite to allocate pathlike paths. Always tack on a
1218 trailing slash since that's what everyone who uses it wants. NULL
1219 terminate the path list. Register "it's a system path" field.
1220 (init_path): Call add_path with info regarding whether path is a system
1222 (pathlike::check_existence): Move into pathlike class. Accept file and
1223 extension arguments to build up path on the fly. Modify other
1225 (find_on_path): Constify return value and appropriate arguments.
1226 Eliminate short-circuit for fully-qualified paths. Simplify loop which
1228 (already_did): Constify argument.
1229 (track_down): Ditto. Regularize some error messages.
1230 (find_app_on_path): Ditto.
1231 (cygcheck): Constify argument. Use 20th century string handling
1233 (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case".
1234 Accommodate change of paths to pathlike.
1235 * path.cc (isslash): Rename from SLASH_P and use throughout.
1236 (rel_vconcat): Front-end to vconcat which prepends cwd to path before
1237 passing along for conversion to native windows.
1238 (cygpath): Remove "./" test. Call rel_vconcat if filename appears to
1241 2007-05-29 Pedro Alves <pedro_alves@portugalmail.pt>
1243 * dumper.cc (dumper::prepare_core_dump): Record a phdr for each section.
1245 2007-05-29 Corinna Vinschen <corinna@vinschen.de>
1247 * cygpath.cc (do_options): Allow outputflag combined with other
1248 basic flags. Only check options_from_file_flag if reading options
1250 (main): Check for NULL argz vector. Don't free argz vector prematurely.
1251 Don't force flag combination in !options_from_file_flag case.
1253 2007-05-23 Corinna Vinschen <corinna@vinschen.de>
1255 * cygpath.cc: Include argz.h.
1256 (options_from_file_flag): Move from main to global static variable.
1258 (do_sysfolders): Rename from dowin and accommodate throughout.
1259 Don't exit from here.
1260 (do_pathconv): Rename from doit and accommodate throughout.
1261 (print_version): Change copyright.
1262 (do_options): New function, centralizing option processing.
1263 Rework checking options for correctness.
1264 (action): New function, centralizing calling worker functions.
1265 (main): Simplify. Move option processing to do_options. Move calling
1266 worker functions to action. Rework getting arguments from files.
1268 2007-03-30 Mark Mitchell <mark@codesourcery.com>
1270 * utils/cygpath.cc (get_long_path_name_w32impl): Close handles returned
1273 2007-03-30 Christopher Faylor <me@cgf.cx>
1275 * mount.cc (main): Turn dos file warnings off since we know what we're
1278 2007-02-22 Corinna Vinschen <corinna@vinschen.de>
1280 * ipcs.c (_POSIX2_LINE_MAX): Drop definition.
1282 2007-02-20 Corinna Vinschen <corinna@vinschen.de>
1284 * cygcheck.cc (dump_sysinfo): Add "not supported" to osname on 9x
1285 machines. Drop "not supported" for Vista. Drop "Longhorn" text
1288 2007-01-09 Christian Franke <franke@computer.org>
1290 * cygpath.cc (usage): Add -O and -F, remove tabs.
1291 (get_special_folder): New function.
1292 (get_user_folder): New function.
1293 (dowin): Add -O and -F, better -D, -P error handling.
1294 (main): Add -O and -F.
1295 * utils.sgml (cygpath): Document -O and -F.
1297 2006-12-21 Corinna Vinschen <corinna@vinschen.de>
1299 * dumper.cc: Include ansidecl.h before including bfd.h to woraround
1300 a problem with the order in which system include files are included.
1302 2006-12-11 Christopher Faylor <me@cgf.cx>
1304 * dumper.cc: Add an include to accommodate new include/elf usage.
1306 2006-12-10 Christopher Faylor <me+cygwin@cgf.cx>
1308 * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and
1309 pass POSIX path directly - this avoids a cygwin DLL warning.
1311 2006-10-21 Corinna Vinschen <corinna@vinschen.de>
1313 * regtool.cc (key_type): Drop.
1315 (value_type): Replace key_type. Use REG_xxx values directly.
1316 Accomodate change throughout.
1317 (longopts): Add --dword, --dword-le, --none, --qword and --hex options.
1318 (opts): Add -d, -D, -n, -Q and -x options.
1319 (types): Array to convert REG_xxx into strings.
1320 (hex): New variable to keep value of --hex option.
1321 (usage): Accomodate new options. Print only the necessary by default.
1322 Only be verbose in case of -h/--help option.
1323 (cmd_list): Use key separator from -K option when printing.
1324 Print value type when verbose option is given. Handle so far not
1325 handled REG_xxx types.
1326 (cmd_set): Avoid SEGV due to missing argument. Handle so far not
1327 handled REG_xxx types.
1328 (cmd_get): Handle --binary option type agnostic. Handle so far not
1329 handled REG_xxx types.
1330 (main): Handle new options.
1332 2006-10-19 Corinna Vinschen <corinna@vinschen.de>
1334 * regtool.cc (longopts): Add --wow32 option.
1335 (opts): Add -W option.
1336 (usage): Add text for --wow32/-W option.
1337 (main): Handle --wow32/-W option.
1338 * utils.sgml: Document the new -W option.
1340 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1342 * regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define
1343 WINVER to 0x0502 before including windows.h.
1345 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1347 * regtool.cc (KEY_WOW64_64KEY): Define.
1348 (longopts): Add --wow64 option.
1349 (opts): Add -w option.
1350 (wow64): New variable to control usage of KEY_WOW64_64KEY access flag.
1351 (usage): Add text for --wow64/-w option.
1352 (print_version): Fix copyright.
1353 (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx.
1354 (cmd_add): Use wow64 value in call to RegCreateKeyEx.
1355 (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function
1357 (cmd_remove): Load and use regDeleteKeyEx when wow64 is set.
1358 (main): Handle --wow64/-w option.
1359 * utils.sgml: Document the new -w option.
1361 2006-10-05 Igor Peshansky <pechtcha@cs.nyu.edu>
1363 * cygcheck.cc (get_word, get_dword): Move to path.cc.
1364 (LINK_EXTENSION): New macro.
1365 (check_existence): New static function.
1366 (find_on_path): Check for symbolic links if asked.
1367 (dll_info): New error handling.
1368 (track_down): Only call dll_info() for executables, display
1369 an error for symlinks, and print magic number for others.
1370 (find_app_on_path): New static function.
1371 (cygcheck, dump_sysinfo): Call find_app_on_path() instead of
1373 * path.cc (cmp_shortcut_header): New static function.
1374 (get_word, get_dword): Moved from cygcheck.cc.
1375 (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New
1377 (is_exe, is_symlink, readlink): New functions.
1378 * path.h (is_exe, is_symlink, readlink): Declare.
1379 (get_word, get_dword): Ditto.
1381 2006-09-12 Christopher Faylor <cgf@timesys.com>
1383 * Makefile.in: Fix -ntdll typo.
1385 2006-09-11 Eric Blake <ebb9@byu.net>
1387 * cygcheck.cc (main): Restore POSIXLY_CORRECT before displaying user's
1390 2006-08-03 Corinna Vinschen <corinna@vinschen.de>
1392 * path.cc (vconcat): Don't convert backslahes to slashes.
1393 (cygpath): Return native path with all backslashes.
1395 2006-08-02 Corinna Vinschen <corinna@vinschen.de>
1397 * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.
1398 * cygpath.cc: Include DDK headers.
1399 (RtlAllocateUnicodeString): New static inline function.
1400 (get_device_name): New static function to evaluate DOS path from
1402 (get_device_paths): New function to do the same for path lists.
1403 (doit): Call get_device_paths/get_device_name where appropriate.
1405 2006-07-30 Ilya Bobir <ilya@po4ta.com>
1407 * cygpath.cc (get_long_name): Fallback to get_long_path_name_w32impl.
1409 2006-07-27 Corinna Vinschen <corinna@vinschen.de>
1411 * cygpath.c (get_long_name): Cover the case that GetLongPathName
1412 doesn't return valid information for non-existant files. Just return
1413 incoming filename in that case.
1415 2006-07-03 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
1417 * Makefile.in: Build setmetamode.exe.
1418 * setmetamode.c: New file.
1420 2006-05-24 Christopher Faylor <cgf@timesys.com>
1422 * configure.in: Update to newer autoconf.
1423 (thanks to Steve Ellcey)
1424 * configure: Regenerate.
1425 * aclocal.m4: New file.
1427 2006-05-24 Christopher Faylor <cgf@timesys.com>
1429 * strace.cc (proc_child): Propagate return code from child process.
1433 2006-03-03 Christian Franke <franke@computer.org>
1435 * regtool.cc (options): Add 'binary'.
1436 (usage): Document 'load|unload|save' and '-b'.
1437 (find_key): Add 'options' parameter, add load/unload.
1438 (cmd_set): Add KT_BINARY case.
1439 (cmd_get): Add hex output in KT_BINARY case.
1440 (cmd_load): New function.
1441 (cmd_unload): New function.
1442 (set_privilege): New function.
1443 (cmd_save): New function.
1444 (commands): Add load, unload and save.
1446 * utils.sgml (regtool): Document it.
1448 2006-02-17 Corinna Vinschen <corinna@vinschen.de>
1450 * cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrect
1452 (doit): Create mixed filename after converting to short or long pathname
1455 2006-02-17 Jerry D. Hedden <jerry@hedden.us>
1457 * ps.cc (main): Set aflag if -p option is given.
1459 2006-02-16 Jerry D. Hedden <jerry@hedden.us>
1461 * ps.cc (longopts): Add --process option.
1462 (opts): Add -p option.
1463 (usage): Mention -p/--process option.
1464 (main): Handle -p option.
1465 * utils.sgml: Describe -p/--process option.
1467 2006-02-15 Igor Peshansky <pechtcha@cs.nyu.edu>
1469 * regtool.cc (usage): Clarify help for "-K".
1471 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1473 * cygcheck.cc (find_on_path): Update copyright text.
1475 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1477 * cygcheck.cc (find_on_path): Create copy of rv on successful access
1478 check, since rv can be reused in subsequent calls.
1480 2006-01-19 Christopher Faylor <cgf@timesys.com>
1482 * cygcheck.cc (common_paths): Add "patch".
1484 2006-01-19 Christopher Faylor <cgf@timesys.com>
1486 * cygcheck.cc (init_paths): Record first_nonsys_path.
1487 (find_on_path): Start on first nonsys path when !search_sysdirs.
1489 2006-01-18 Christopher Faylor <cgf@timesys.com>
1491 * Makefile.in (sysconfdir): Remove unneeded variable.
1493 * mkgroup.c: Replace ` with ' throughout.
1494 * mkpasswd.c: Ditto.
1498 2006-01-18 Dave Korn <dave.korn@artimi.com>
1500 * cygpath.cc (dowin): Remove stray debugging printf statement.
1502 2006-01-17 Corinna Vinschen <corinna@vinschen.de>
1504 * Makefile.in: Replace etcdir with sysconfdir.
1506 2006-01-13 Brian Dessent <brian@dessent.net>
1508 * Makefile.in (cygcheck.exe): Do not link against libwininet.a.
1509 * cygcheck.cc (pInternetCloseHandle): Define global function pointer.
1510 (display_internet_error): Use it.
1511 (package_grep): Attempt to load wininet.dll at runtime. Call WinInet
1512 API through function pointers throughout.
1514 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1516 * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.
1518 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1520 * cygcheck.cc (dump_sysinfo): Convert osname to const and remove casts
1521 in subsequent assignments. Recognize Longhorn/Vista and report as not
1522 yet supported. Recognize when running under WOW64 and report native
1523 CPU type. Slightly rearrange \n printing.
1525 2006-01-12 Christopher Faylor <cgf@timesys.com>
1527 * cygcheck.cc: Replace ` with ' throughout.
1529 2006-01-05 Christopher Faylor <cgf@timesys.com>
1531 * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent
1534 2005-12-29 Christopher Faylor <cgf@timesys.com>
1536 * strace.cc (nprocesses): Make static global.
1537 (quiet): New variable.
1538 (strace_active): Ditto.
1539 (add_child): Increment nprocesses here. Don't add a child if it is
1540 already added (windows bug?). Report on child if not quiet.
1541 (get_child): Just return NULL if child not found.
1542 (remove_child): Report on child if not quiet.
1543 (attach_process): Don't complain if given a windows process. Use
1544 windows pid in error.
1545 (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about.
1546 Handle _STRACE_CHILD_PID - attach to reported child when we get this.
1547 (proc_child): Move nprocesses to file scope.
1548 Report on exceptions.
1549 (longopts): Implement "--quiet".
1550 (opts): Implement "-q".
1551 (main): Manipulate quiet flag.
1552 * utils.sgml (strace): Add words describing '-q'.
1554 2005-12-29 Christopher Faylor <cgf@timesys.com>
1556 * cygcheck.cc (common_apps): Add crontab, vi, vim.
1558 2005-12-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1560 * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".
1562 2005-12-14 Christopher Faylor <cgf@timesys.com>
1564 * cygcheck.cc (common_apps): Add a few more binaries to look for.
1566 2005-12-05 Christopher Faylor <cgf@timesys.com>
1568 * strace.cc (show_usecs): Renamed from 'usecs'.
1569 (main): Use show_usecs rather than usecs. Toggle delta if '-u' is
1571 (handle_output_debug_string): Avoid printing microsecond timestamp if
1573 * utils.sgml (strace): Add words to describe '-u'.
1575 2005-11-22 Brian Dessent <brian@dessent.net>
1577 * Makefile.in: Link cygcheck with libwininet.a.
1578 * cygcheck.cc: Add includes.
1579 (grep_packages): New global variable.
1580 (display_internet_error): New function.
1581 (safe_chars): New global variable.
1583 (package_grep): New function.
1584 (usage): Reword --help output for clarity. Document new argument.
1585 (longopts): Add 'package-query' option.
1586 (opts): Add 'p' option, reorder to be consistent with 'longopts'.
1587 (main): Accommodate new option.
1588 * utils.sgml (cygcheck): Update --help output. Document new -p option.
1590 2005-09-22 Corinna Vinschen <corinna@vinschen.de>
1592 Align error message handling to mkpasswd's error messages throughout.
1593 * mkgroup.c (print_win_error): Create macro calling ...
1594 (_print_win_error): ... this function created from former
1595 print_win_error. Move up in source.
1596 (PDOMAIN_CONTROLLER_INFOW): Define return type of DsGetDcNameW.
1597 (dsgetdcname): New function pointer for DsGetDcNameW.
1598 (load_netapi): Get DsGetDcNameW address.
1599 (main): If DsGetDcNameW is available, use it.
1600 * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of
1602 (dsgetdcname): New function pointer for DsGetDcNameW.
1603 (load_netapi): Get DsGetDcNameW address.
1604 (main): If DsGetDcNameW is available, use it. Rename local variable
1605 domain_name_specified to domain_specified as in mkgroup.c.
1607 2005-09-08 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1609 * regtool.cc: Extend copyright-years.
1610 (print_version): Ditto.
1611 (cmd_list): Don't depend on terminating '\0' being present on
1613 (cmd_get): Don't attempt to read more than present, but keep
1614 extra space for terminating '\0'. Really output REG_BINARY.
1616 (cmd_set): Include trailing '\0' in string's length.
1618 2005-08-18 Corinna Vinschen <corinna@vinschen.de>
1620 * passwd.c (longopts): Add --logonserver option.
1621 (opts): Add -d option.
1622 (GetPW): Add server parameter which is given to Net functions.
1626 (usage): Add description for -d/--logonserver option.
1627 (main): Add option handling for -d/--logonserver. Use LOGONSERVER
1628 environment variable content for server to contact, unless
1629 -d/--logonserver option is given. If both is missing, use NULL.
1631 2005-08-16 Brian Dessent <brian@dessent.net>
1633 * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.
1634 Avoid extraneous cygrunsrv invocation if 'verbose' is true.
1636 2005-08-03 Corinna Vinschen <corinna@vinschen.de>
1638 * mount.cc (longopts): Fix typo which disallows --options option.
1640 2005-07-19 Christopher Faylor <cgf@timesys.com>
1641 Eric Blake <ebb9@byu.net>
1643 * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
1645 2005-07-05 Eric Blake <ebb9@byu.net>
1647 * cygcheck.cc (track_down, cygcheck): Return true on success.
1648 (main): Reflect cygcheck failures in exit status.
1650 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
1652 * parse_pe.c (exclusion::sort_and_check): Remove crude cast.
1654 2005-05-30 Corinna Vinschen <corinna@vinschen.de>
1656 * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
1657 Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server
1658 and Datacenter Server. Report when running in terminal server session.
1660 2005-05-27 Christopher Faylor <cgf@timesys.com>
1662 * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with
1664 * strace.cc (load_cygwin): Ditto.
1666 2005-05-22 Brian Dessent <brian@dessent.net>
1668 * cygcheck.cc (dump_sysinfo_services): Add new function that uses
1669 new cygrunsrv options to dump service info.
1670 (dump_sysinfo): Call dump_sysinfo_services if running under NT.
1671 Change 'Cygnus' to 'Cygwin' in output.
1673 2005-05-20 Christopher Faylor <cgf@timesys.com>
1675 * cygcheck.cc (load_cygwin): Remove debugging statement.
1677 2005-05-20 Christopher Faylor <cgf@timesys.com>
1679 * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not
1681 (nuke): Fix off by one error in allocation of environment variable.
1682 (load_cygwin): Always set PATH even if cygwin environment is empty.
1684 2005-05-16 Christopher Faylor <cgf@timesys.com>
1686 * cygcheck.cc (cygwin_internal): Define as a "C" function.
1687 * strace.cc (cygwin_internal): Ditto.
1689 * cygpath.cc (print_version): Update copyright.
1691 2005-05-15 Christopher Faylor <cgf@timesys.com>
1693 * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.
1695 2005-05-15 Corinna Vinschen <corinna@vinschen.de>
1697 * cygcheck.cc (load_cygwin): Don't touch $PATH for now.
1698 (print_version): Fix copyright.
1699 * strace.cc (print_version): Ditto.
1701 2005-05-13 Christopher Faylor <cgf@timesys.com>
1703 * mount.cc (mount_commands): Display "-X" option when appropriate.
1705 2005-05-08 Christopher Faylor <cgf@timesys.com>
1707 * cygcheck.cc (nuke): New function.
1708 (load_cygwin): New function.
1709 (main): Use load_cygwin to load argv/envp from cygwin environment, if
1712 2005-05-08 Christopher Faylor <cgf@timesys.com>
1714 * strace.cc (attach_process): Don't call load_cygwin(). Assume that
1715 it's already happened.
1717 (main): Set argv from cygwin environment, if it exists.
1719 2005-05-01 Christopher Faylor <cgf@timesys.com>
1721 * mount.cc (usage): Clarify action of -m option.
1723 2005-04-29 Dave Korn <dave.korn@artimi.com>
1725 * path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'
1726 flags to mnt_opts string if present in mount flags.
1728 2005-04-20 Brian Dessent <brian@dessent.net>
1730 * utils.sgml (mount): Clarify setting cygdrive prefix for user
1733 2005-03-24 Brian Dessent <brian@dessent.net>
1735 * cygcheck.cc (init_paths): Use full path instead of "." for the
1736 current directory. Do not add "." if present in $PATH.
1737 (dump_sysinfo): Skip placeholder first value of paths[].
1739 2005-03-07 Christopher Faylor <cgf@timesys.com>
1741 * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't
1742 pad signal name with spaces.
1744 2005-03-07 Corinna Vinschen <corinna@vinschen.de>
1746 * strace.cc (handle_output_debug_string): Fix compiler warning.
1748 2005-03-06 Christopher Faylor <cgf@timesys.com>
1750 * cygpath.cc (usage): Pass in one more copy of program_name to printf
1753 2005-02-27 Christopher Faylor <cgf@timesys.com>
1755 * regtool.cc (opts): The argument to 'K' is not optional.
1756 (main): Revert previous change. Just let getopt deal with missing
1759 2005-02-27 Christopher Faylor <cgf@timesys.com>
1761 * regtool.cc (main): Avoid a SEGV when nothing follows -K.
1763 2005-02-26 Christopher Faylor <cgf@timesys.com>
1765 * kill.cc (getsig): Avoid buffer overflow when generating a signal name.
1767 * strace.cc (handle_output_debug_string): Make error a little more specific.
1769 2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
1771 * cygpath.cc (usage): Clarify help output to indicate acceptance
1772 of multiple file names as arguments.
1774 2005-01-16 Christopher Faylor <cgf@timesys.com>
1776 * ps.cc (main): Eliminate use of PID_ZOMBIE.
1777 * strace.cc (main): Recognize new option for displaying hex value of
1779 (handle_output_debug_string): Prepend output with hex value of strace
1780 message if -H is specified.
1782 2005-01-11 Pierre Humblet <pierre.humblet@ieee.org>
1784 * mkpasswd.c (print_win_error): Transform into macro.
1785 (_print_win_error): Upgrade former print_win_error by
1787 (current_user): Call _print_win_error.
1788 (enum_users): Print name in case of lookup failure.
1789 (enum_local_groups): Ditto.
1791 2004-11-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1793 * cygcheck.cc (eprintf): New function.
1795 2004-11-16 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1797 * cygcheck.cc (find_on_path): Clear show_error and/or print_failed
1798 parameters to display_error.
1799 (rva_to_offset): Ditto.
1801 (track_down): Ditto.
1803 2004-11-13 Pierre Humblet <pierre.humblet@ieee.org>
1805 * kill.cc (forcekill): Do not pass negative pids to
1806 cygwin_internal. Check if sig == 0. Improve error messages.
1807 (main): Make pid a long long and distinguish between pids, gpids
1808 (i.e. negative pids) and Win9x pids.
1810 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1812 * cygcheck.cc: Change "keyeprint" to "display_error" throughout.
1814 2004-11-11 Christopher Faylor <cgf@timesys.com>
1816 * cygcheck.cc (main): Allow a '-l' without an additional argument.
1818 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1820 * cygcheck.cc (keyeprint): New optional parameters: show_error and
1823 2004-10-31 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1825 * cygcheck.cc (get_dword): Fix errormessage.
1826 (cygwin_info): Ditto.
1827 (track_down): Ditto.
1828 (check_keys): Ditto.
1830 2004-10-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1832 * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
1835 2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1837 * cygcheck.cc (dump_sysinfo): Add leading newline before legend for
1840 2004-10-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1842 * cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
1843 ``unk''. Use single puts. Add leading newline. Line up equal-signs.
1845 2004-10-20 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1847 * cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list.
1848 Change ``Used'' to ``Free'' in helptext-title for drive-list.
1850 2004-10-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1852 * cygcheck.cc (pretty_id): Don't let i become negative. Fix
1855 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1857 * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
1859 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1860 Christopher Faylor <cgf@timesys.com>
1862 * cygcheck.cc (pretty_id): Allocate space for trailing '\0' in uid and
1865 2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1866 Christopher Faylor <cgf@timesys.com>
1868 * cygcheck.cc (pretty_id): Don't exit on id error. Fix size
1871 2004-10-14 Christopher Faylor <cgf@timesys.com>
1872 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1874 * cygcheck.cc (pretty_id): Correct column calculations. Abort if id is
1877 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1879 * cygcheck.cc (add_path): Don't leak memory when path is already in
1882 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1884 * cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount
1887 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1889 * cygcheck.cc (dump_sysinfo): Don't warn about empty path components,
1892 2004-10-06 Corinna Vinschen <corinna@vinschen.de>
1894 * strace.cc (_impure_ptr): Remove.
1896 2004-10-06 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1898 * cygcheck.cc (dump_sysinfo): Warn about empty path components.
1900 2004-10-04 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1902 * cygcheck.cc (pretty_id): Close pipe.
1904 2004-09-23 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1906 * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
1909 2004-09-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1910 Corinna Vinschen <corinna@vinschen.de>
1912 * dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
1914 2004-09-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1916 * getfacl.c (main): Correct layout when nopt is set.
1918 2004-07-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1920 * mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
1922 (load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
1923 (enum_local_groups,enum_groups): Add disp_groupname parameter.
1924 Load info for disp_groupname if specified.
1925 (usage): Add description of "-g/--group" option.
1926 (longopts,opts): Add "-g/--group" option.
1927 (main): Process "-g/--group" option.
1928 * utils.sgml (mkgroup): Add description of "-g/--group" option
1930 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1932 * dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
1933 instead of _raw_size.
1934 (dumper::write_core_dump): Likewise.
1935 * parse_pe.cc (select_data_section): Likewise.
1937 2004-05-29 John Paul Wallington <jpw@gnu.org>
1939 * ssp.c (usage): Add missing linefeed.
1941 2004-05-27 Christopher Faylor <cgf@alum.bu.edu>
1943 * kill.cc (listsig): Fix "kill -l" segv. NSIG includes Signal 0, so we
1944 need to avoid calling strtosigno with NSIG - 1.
1946 2004-03-21 Christopher Faylor <cgf@redhat.com>
1948 * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
1950 2004-03-15 Christopher Faylor <cgf@redhat.com>
1952 * cygpath.cc (usage): Don't issue helpful message if -i is used.
1953 (from Igor Pechtchanski)
1955 2004-03-13 Rob Siklos <rob2@siklos.ca>
1957 * kill.cc (get_debug_priv): New function.
1958 (forcekill): Call get_debug_priv before trying to kill process.
1960 2004-02-24 Christopher Faylor <cgf@redhat.com>
1962 * cygpath.cc (long_options): Add "mode" option.
1964 (usage): Report on new option.
1965 (report_mode): New function.
1966 (main): Implement -M option.
1968 2004-02-20 Christopher Faylor <cgf@redhat.com>
1970 * Makefile.in (build_dumper): Detect missing iconv library.
1972 * cygpath.cc (dowin): Report on filename conversion errors.
1975 * strace.cc (main): Use symbolic constant for _STRACE_ALL when setting
1978 2004-02-14 Corinna Vinschen <corinna@vinschen.de>
1980 * ssp.c (opts): Add leading '+' to force posixly correct behaviour.
1982 2004-02-11 Corinna Vinschen <corinna@vinschen.de>
1984 * strace.cc (opts): Add leading '+' to force posixly correct
1986 (main): Revert POSIXLY_CORRECT manipulations.
1988 2004-02-10 Christopher Faylor <cgf@redhat.com>
1990 * strace.cc (main): Guard against previous setting of POSIXLY_CORRECT.
1992 2004-02-10 Christopher Faylor <cgf@redhat.com>
1994 * strace.cc: Update copyrights.
1995 * cygcheck.cc: Update copyrights.
1997 2004-02-10 Christopher Faylor <cgf@redhat.com>
1999 * strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
2000 * cygcheck.cc (main): Ditto.
2002 2004-01-23 Christopher Faylor <cgf@redhat.com>
2004 * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
2006 2004-01-22 Corinna Vinschen <corinna@vinschen.de>
2008 * cygpath.cc (dowin): Revert accidental checkin from November.
2010 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
2012 * mkgroup.c (main): Print "root" group with local admins group sid
2015 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
2017 * Makefile.in: Add rules to build ipcrm and ipcs.
2018 * ipcrm.c: New file.
2021 2003-11-14 Corinna Vinschen <corinna@vinschen.de>
2023 * mkgroup.c: Avoid compiler warnings throughout.
2024 * mkpasswd.c: Ditto.
2027 2003-11-07 Mark Blackburn <marklist@fangorn.ca>
2029 * cygpath.cc (main): Allow multiple pathnames on command line.
2031 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2033 * passwd.c (PrintPW): Turn around meaning printed for "Password not
2034 required" option to be in line with Windows meaning.
2035 (main): Use more appropriate 1008 option when calling
2036 NetUserSetInfo to change flag values.
2038 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2040 * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).
2041 (version): Bump version number to 1.5.
2042 (longopts): Add -c, -C, -e, -E, -p, -P options.
2044 (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and
2045 UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress
2046 correct system password settings just because the account has admin
2048 (usage): Define as "noreturn" function. Restructure and rephrase
2049 output. Accommodate new options.
2050 (print_version): Fix copyright dates.
2051 (main): Accommodate new options for setting UF_PASSWD_CANT_CHANGE,
2052 UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
2054 2003-10-17 Christopher Faylor <cgf@redhat.com>
2056 * cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2058 2003-09-20 Christopher Faylor <cgf@redhat.com>
2060 * kill.cc (main): Allow negative pids (indicates process groups).
2062 2003-09-17 Christopher Faylor <cgf@redhat.com>
2064 * parse_pe.cc (exclusion::sort_and_check): Make error message a little
2065 more explicit and ignore (hopefully) harmless region overlap.
2067 2003-09-13 Christopher Faylor <cgf@redhat.com>
2069 * kill.c (forcekill): Wait for process to terminate even if
2070 TerminateProcess says it failed.
2072 2003-09-11 Christopher Faylor <cgf@redhat.com>
2074 * Makefile.in: Tweak mingw libz.a detection to make it more reliably
2075 detect when libz.a is not available.
2077 2003-09-11 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2079 * cygcheck.cc (dump_only): New global variable.
2080 (usage): Add "--dump-only" option, fix "--verbose" line.
2081 (longopts, opts): Add "--dump-only" option.
2082 (main): Process the "--dump-only" flag. Add new semantic check.
2083 Pass dump_only information to dump_setup().
2085 2003-09-11 Corinna Vinschen <corinna@vinschen.de>
2087 * getfacl (main): Remove extern declaration of optind.
2088 * setfacl (main): Remove extern declaration of optarg and optind.
2090 2003-09-10 Christopher Faylor <cgf@redhat.com>
2092 * Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
2093 * cygcheck.cc: Just include <getopt.h> rather than cygwin version.
2094 (pretty_id): Avoid compiler warnings.
2095 * cygpath.cc (usage): Ditto.
2097 2003-09-10 Christopher Faylor <cgf@redhat.com>
2099 * Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
2100 * path.cc: Include more path info in cygwin-specific includes since the
2101 cygwin directory is no longer included by default.
2103 2003-09-10 Christopher Faylor <cgf@redhat.com>
2105 * Makefile.in: More fixups to adjust for the fact that mingw_getopt.o
2108 2003-09-10 Christopher Faylor <cgf@redhat.com>
2110 * Makefile.in: Remove references to getopt since it is now part of
2113 2003-09-08 Christopher Faylor <cgf@redhat.com>
2115 * Makefile.in: Rename libz.h -> zlib.h.
2117 2003-09-07 Christopher Faylor <cgf@redhat.com>
2119 * Makefile.in: Detect existence of mingw zlib headers and libraries.
2120 Build cygcheck without package checking if they are unavailable.
2121 * dump_setup.cc: Generate dummy zlib macros when zlib is not available.
2122 (open_package_list): Use zlib functions to uncompress package lists.
2123 Return gzFile rather than FILE *.
2124 (check_package_files): Change fp to gzFile to accommodate zlib
2125 functions. Use gzgets to read from package file. Use gzclose to close
2127 (package_list): Ditto.
2128 (package_find): Ditto.
2130 2003-09-05 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2132 * dump_setup.cc (check_package_files): Don't fail on empty package.
2134 2003-09-01 AJ Reins <reinsaj@yahoo.com>
2136 * mount.cc (mount_commands): Ensure user mode is actually user mode and
2137 not the default system mode.
2139 2003-08-31 Christopher Faylor <cgf@redhat.com>
2141 * kill.cc (forcekill): Silence some compiler warnings.
2143 2003-08-31 Christopher Faylor <cgf@redhat.com>
2145 * Makefile.in: Oops. Put the '...' in the right place.
2147 2003-08-31 Christopher Faylor <cgf@redhat.com>
2149 * Makefile.in: Display "..." when not-verbose.
2151 * kill.cc (forcekill): Default to entered pid when pinfo fails. Issue
2152 some warnings when things don't work.
2154 2003-08-17 David Rothenberger <daveroth@acm.org>
2156 * dump_setup.cc (check_package_files): Strip leading / and ./ from
2159 2003-08-16 David Rothenberger <daveroth@acm.org>
2161 * dump_setup.cc (package_find): Don't stop searching on missing
2163 (package_list): Ditto.
2165 2003-08-16 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2167 * dump_setup.cc: (package_list): Make output terse unless
2168 verbose requested. Fix formatting.
2169 (package_find): Ditto.
2171 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2173 * cygcheck.cc (main): Fix some formatting and help text printing.
2175 2003-08-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2177 * cygcheck.cc (find_package,list_package): New global
2179 (usage): Add "--find-package" and "--list-package" options,
2181 (longopts, opts): Add "--find-package" and "--list-package"
2183 (main): Process the "--find-package" and "--list-package"
2184 flags. Add new semantic checks. Add calls to find_package()
2186 * dump_setup.cc: Fix header comment.
2187 (match_argv): Change return type to int to distinguish
2188 between real matches and default ones.
2189 (open_package_list): New static function.
2190 (check_package_files): Factor out opening the package list
2191 file into open_package_list().
2192 (get_packages): New static function.
2193 (dump_setup): Factor out getting a list of packages into
2195 (package_list, package_find): New global functions.
2197 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2199 * regtool.cc (usage): Add missing linefeed. Move example to --help
2200 text. Fix forward slash description.
2202 2003-08-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2204 * dump_setup.cc (check_package_files): Fix extra '/' in filename.
2205 Resize command buffer. Fix buffer overflow bug.
2207 2003-08-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2208 Christopher Faylor <cgf@redhat.com>
2210 * dump_setup.cc (dump_setup): Check for the existence of the package
2211 list file. Rework slightly to use static buffer for popen commands.
2213 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2214 Christopher Faylor <cgf@redhat.com>
2216 * dump_setup.cc (version_len): New static variable.
2217 (could_not_access,directory_exists): New static function.
2218 (file_exists): Ditto.
2219 (check_package_files): Ditto.
2220 (dump_setup): Check the contents of each package if check_files is true
2221 and output the result in the "Status" column. Flush output after each
2224 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2225 Christopher Faylor <cgf@redhat.com>
2227 * dump_setup.cc (dump_setup): Remove redundant null check. Add
2228 informative message if package info not found.
2230 2003-07-26 Christopher Faylor <cgf@redhat.com>
2232 * mount.cc (do_mount): Issue warning when using managed mount option on
2233 non-empty directory.
2235 2003-07-25 Christopher Faylor <cgf@redhat.com>
2237 * configure.in: Use 'install-sh -c'.
2238 * configure: Regenerate.
2240 2003-07-25 Christopher Faylor <cgf@redhat.com>
2242 * configure.in: Always use install-sh.
2243 * configure: Regenerate.
2245 2003-07-03 Christopher Faylor <cgf@redhat.com>
2247 * mount.cc (struct opt): Remove posix option.
2249 2003-07-03 Christopher Faylor <cgf@redhat.com>
2251 * mount.cc (longopts): Add long "options" keyword.
2252 (opts): Add -o option.
2253 (usage): Display -o option.
2255 (concat3): New function.
2256 (main): Handle -o flag.
2258 2003-06-12 Christopher Faylor <cgf@redhat.com>
2260 * cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2262 2003-06-12 Christopher Faylor <cgf@redhat.com>
2264 * cygpath.cc: Throughout, always return error when GetShortPathName
2267 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2269 * mkpasswd.c (usage) Remove extra newline from description output.
2271 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2273 * cygcheck.cc (usage) Add description output.
2274 * cygpath.cc (usage) Add description output.
2275 * dumper.cc (usage) Add newline to description output.
2276 * kill.cc (usage) Add description output.
2277 * mkgroup.c (usage) Grammatical change to description output.
2278 * mkpasswd.c (usage) Grammatical change to description output.
2279 * mount.cc (usage) Add description output.
2280 * passwd.c (usage) Add description output.
2281 * ps.cc (usage) Add description output.
2282 * regtool.cc (usage) Add description output.
2283 * setfacl.c (usage) Remove extra newline from description output.
2284 * ssp.c (usage) Add description output.
2285 * strace.cc (usage) Add description output.
2286 * umount.cc (usage) Add description output.
2288 2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
2290 * mkpasswd.c (current_user): print uid and gid as unsigned.
2291 (enum_users): Ditto. Do not free servername.
2292 (usage): Update to allow several domains and improve -p.
2293 (main): On Win9x limit uids to 1000. Only print specials
2294 when -l is specified. Add a loop to allow several domains
2295 and free servername in the loop.
2296 * mkgroup.c (enum_groups): Do not free servername.
2297 (usage): Update to allow several domains. Change uid to gid.
2298 (main): Only print specials when -l is specified. Add a
2299 loop to allow several domains and free servername in the loop.
2301 2003-03-24 Christopher Faylor <cgf@redhat.com>
2303 * cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable
2306 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
2308 * getfacl.c (username): Fix ambiguous printf calls.
2312 2003-03-04 Christopher Faylor <cgf@redhat.com>
2314 * Makefile.in (strace.exe): Include mingw_getopt.o in link line.
2315 * cygcheck.cc (print_version): Update copyright.
2316 * strace.cc (print_version): Ditto.
2317 (main): Allow cygwin paths for -o option.
2318 (create_child): Allow cygwin path as argv[0].
2319 * path.cc (path.cc): Allow UNC paths.
2321 2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
2323 * mkpasswd.cc (main): On Win95, output both a default line and a
2324 line for the current user (if known) with a pseudorandom uid. If
2325 the -u switch is given, produce a line for the specified user.
2326 * mkgroup.cc (main): On Win95 change the group name from "unknown" to
2329 2003-02-28 Christopher Faylor <cgf@redhat.com>
2331 * Makefile.in (cygcheck.o): Fix so that actual mingw include files are
2333 * cygcheck.cc (find_on_path): Translate from cygwin path when qualified
2335 (pretty_id): New function. Dump output of id command.
2336 (dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2338 2003-02-12 Christopher Faylor <cgf@redhat.com>
2340 * cygpath.cc (doit): Allocate more space for non-path filename.
2342 2003-02-07 Christopher Faylor <cgf@redhat.com>
2344 * dump_setup.cc (compar): Use case insensitive comparisons.
2345 (dump_setup): Calculate package_len based on already used "len". Don't
2346 bother with version_len.
2348 2003-02-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2350 * dump_setup.cc (dump_setup): Compute the longest package name
2351 and align columns properly.
2353 2003-02-06 Christopher Faylor <cgf@redhat.com>
2355 * cygcheck.cc (common_apps): Add some more apps.
2356 * path.cc (get_cygdrive): Correctly set system flag.
2358 2003-01-22 Corinna Vinschen <corinna@vinschen.de>
2360 * Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
2361 (MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2363 2003-01-15 Corinna Vinschen <corinna@vinschen.de>
2365 * mkgroup.c: Fix copyright date.
2366 * mkpasswd.c: Ditto.
2369 2003-01-09 Pierre Humblet <pierre.humblet@ieee.org>
2371 * setfacl.c (usage): Remove double ":" for mask and other.
2373 2003-01-07 Pierre Humblet <pierre.humblet@ieee.org>
2375 * mkpasswd.c (current_user): Create.
2376 (usage): Reorganize to support Win95/98/ME.
2377 (main): Add option for -c. Reorganize to parse options for
2378 Win95/98/ME and to call current_user. Add username in gecos field
2380 * mkgroup.c (enum_groups): Print gid with %u.
2381 (print_win_error): Create from passwd.cc.
2382 (current_group): Create.
2383 (usage): Reorganize to support Win95/98/ME.
2384 (main): Add option for -c. Reorganize to parse options for
2385 Win95/98/ME and to call current_group.
2387 2002-12-14 Pierre Humblet <pierre.humblet@ieee.org>
2389 * setfacl.c (main): Place a single : after other and mask.
2390 * getfacl.c (getaclentry): Allow both : and :: for other and mask.
2391 (main): Remove extraneous break.
2393 2002-11-25 Corinna Vinschen <corinna@vinschen.de>
2395 * mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.
2397 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2399 * setfacl.c (getperm): Set only `other' permission bits.
2400 (getaclentry): Set a_id to -1 by default.
2402 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2404 * getfacl.c (permstr): Use `other' permission bits for requesting
2407 2002-11-08 Corinna Vinschen <corinna@vinschen.de>
2409 * setfacl.c (usage): Add missing LF.
2411 2002-10-30 Christopher Faylor <cgf@redhat.com>
2413 * cygpath.cc (get_long_path_name_w32impl): Define similarly to
2415 (get_long_name): Correctly prototype GetLongPathName.
2416 (get_long_paths): Implement using get_long_name to cut down on code
2418 (doit): Do various things to make path output work predictably.
2420 2002-10-19 Christopher Faylor <cgf@redhat.com>
2422 * mount.cc (usage): Correctly report default mode.
2423 * strace.cc (main): Use strtoul as appropriate.
2425 2002-09-29 Christopher Faylor <cgf@redhat.com>
2427 * cygpath.cc (close_arg): Remove unused static.
2428 * mkgroup.c (enum_local_users): Avoid compiler warning.
2429 (enum_users): Ditto.
2430 * mkpasswd.c: Ditto throughout.
2431 * ssp.c: Ditto throughout.
2433 2002-09-18 Christopher Faylor <cgf@redhat.com>
2435 * cygcheck.cc: Include sys/time.h rather than time.h to avoid a
2438 2002-09-17 Christopher Faylor <cgf@redhat.com>
2440 * cygcheck.cc: Reorder includes to avoid compiler error.
2442 2002-09-15 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2444 * cygcheck.cc (print_version) Add final newline.
2445 * getfacl.c (print_version) Add final newline.
2446 * kill.cc (print_version) Add final newline.
2447 * mkgroup.c (print_version) Add final newline.
2448 * mkpasswd.c (print_version) Add final newline.
2449 * mount.cc (print_version) Add final newline.
2450 * passwd.c (print_version) Add final newline.
2451 * ps.cc (print_version) Add final newline.
2452 * regtool.cc (print_version) Add final newline.
2453 * setfacl.c (print_version) Add final newline.
2454 * ssp.c (print_version) Add final newline.
2455 * strace.cc (print_version) Add final newline.
2456 * umount.cc (print_version) Add final newline.
2458 2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2460 * cygpath.cc (options) New global variable.
2461 (main) Make short options global for easier change.
2462 (print_version) Add a missing newline.
2464 2002-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2466 * regtool.cc (find_key): Add support for custom key separator.
2467 (usage): Document it.
2469 2002-08-02 Corinna Vinschen <corinna@vinschen.de>
2471 * mkgroup.c (main): Don't print an entry for "Everyone".
2472 * mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
2473 (main): Don't print an entry for "Everyone".
2475 2002-07-06 Christopher Faylor <cgf@redhat.com>
2477 * configure.in: Check for libiconv.a.
2478 * configure: Regenerate.
2479 * Makefile.in: Add libiconv.a to libraries required for dumper.exe.
2481 2002-07-06 Christopher Faylor <cgf@redhat.com>
2483 * Makefile.in: Use MINGW stuff from Makefile.common.
2485 2002-07-01 Corinna Vinschen <corinna@vinschen.de>
2487 * mkgroup.c: Add function pointers for functions from advapi32.dll.
2488 (load_netapi): Load used functions from advapi32.dll.
2489 (main): Use function pointers instead of statically linked functions
2492 2002-07-01 Christopher Faylor <cgf@redhat.com>
2494 * mount.cc (main): Ensure that mount_already_exists() also gets default
2495 flag that is passed to do_mount.
2497 2002-06-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2499 * cygpath.cc (long_options): Add "dos" and "mixed", correct "close",
2500 "file" and "type" to use NULL flag.
2501 (usage): Clean up usage output (more), accomodate new options.
2502 (main): Add --dos and --mixed options; accomodate all output forms in
2503 --type. Make UNIXy output default.
2505 2002-06-18 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2507 * cygpath.cc (usage): Clean up usage output.
2508 (dowin): Correct output of -t mixed for -ADHPSW options.
2510 2002-06-14 Corinna Vinschen <corinna@vinschen.de>
2512 * passwd.c: Rearrange includes to avoid unnecessary warnings.
2513 (GetPW): Add parameter to (dis)allow printing of Windows username.
2514 Use defines instead of numerical constants where possible.
2515 Try avoiding impersonation problem. Rearrange to print Windows
2516 username only if it's different from Cygwin username.
2517 (ChangePW): Use defines instead of numerical constants where possible.
2518 (main): Call GetPW with additional parameter. Change error text.
2520 2002-06-14 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2522 * passwd.c (GetPW): Handle case of user-edited /etc/passwd
2523 with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2525 2002-06-09 Christopher Faylor <cgf@redhat.com>
2527 * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2530 2002-06-09 Christopher Faylor <cgf@redhat.com>
2532 * mount.cc (main): Use default system/user flag for cygdrive stuff,
2534 (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2535 * umount.cc (remove_cygdrive_prefix): Ditto.
2536 (main): Use default system/user flag for cygdrive stuff, too.
2538 2002-06-08 Christopher Faylor <cgf@redhat.com>
2540 * mount.cc (opts): Remove '-i' option.
2543 (longopts): Remove --import-old-mounts option.
2545 2002-06-07 David Peterson <chief@mail.idrive.com>
2546 Christopher Faylor <cgf@redhat.com>
2548 * cygpath.cc: Add option to output windows paths in different formats:
2550 (main): Process options.
2551 (doit): Check new options flags.
2553 2002-06-06 Egor Duda <deo@logos-m.ru>
2555 * regtool.cc (Fail): Be more verbose.
2556 (find_key): Add support for remote registry access.
2557 (usage): Document it.
2558 * utils.sgml: Document it.
2560 2002-06-06 Christopher Faylor <cgf@redhat.com>
2562 * strace.cc (main): Make toggle a local variable.
2564 2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
2566 * strace.cc (toggle): New global variable.
2567 (error): Use exit instead of ExitProcess so that stdio buffers get
2569 (create_child): Remove command line error checking.
2571 (dotoggle): New function.
2572 (usage): Add entry for new option -T|--toggle. Alphabetize.
2573 (longopts): Add new option -T|--toggle.
2575 (main): Handle new -T|--toggle option. Move all command line checking
2576 here from other functions.
2577 * utils.sgml: Update section for strace.
2579 2002-06-05 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2581 * strace.cc (version): New global variable.
2582 (usage): Accommodate stdout output.
2583 (print_version): New function.
2585 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2587 * ssp.c (version): New global variable.
2590 (run_program): Correct cmd_line typos to cmdline.
2591 (usage): New function. Standardize usage output. Add ssp.txt to
2593 (print_version): New function.
2594 (main): Accommodate getopt.
2596 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2598 * umount.cc (version): New global variable.
2599 (longopts): Accommodate new --version option.
2601 (usage): Standardize usage output.
2602 (print_version): New function.
2603 (main): Accommodate --help, --version options.
2605 2002-06-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2607 * regtool.cc (prog_name): New global variable.
2610 (usage): Standardize usage output. Rearrange/add descriptions.
2611 (print_version): New function.
2612 (main): Accommodate longopts and new --help, --version options. Add
2613 check for (_argv[optind+1] == NULL).
2615 2002-06-02 Christopher Faylor <cgf@redhat.com>
2617 * strace.cc (forkdebug): Make true by default.
2618 (attach_process): Use window pid if cygwin pid isn't available (yet).
2619 (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS,
2620 exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
2622 2002-05-30 Christopher Faylor <cgf@redhat.com>
2624 * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
2626 2002-05-29 Christopher Faylor <cgf@redhat.com>
2628 * mount.cc (main): Make -b the default.
2630 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2632 * ps.cc (main): Use uid or uid32 member of struct external_pinfo
2633 dependent of the value of the struct's version member.
2635 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2637 * ps.cc (main): Change print format for uid to unsigned. Use uid32
2638 member of struct external_pinfo instead of uid.
2640 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2642 * passwd.c (prog_name): New global variable.
2645 (usage): Standardize output. Accommodate new options.
2646 (print_version): New function.
2647 (main): Accommodate longopts and new --help, --version options.
2649 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2651 * ps.cc (usage): Fix typo.
2653 2002-05-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2655 * ps.cc (prog_name): New global variable.
2658 (usage): New function.
2659 (print_version): New function.
2660 (main): Accommodate longopts and new --help, --version options.
2662 2002-05-26 Christopher Faylor <cgf@redhat.com>
2664 * strace.cc (attach_process): Don't tell process to start stracing
2666 (proc_child): Do it here, instead, after first debug event. This
2667 should work around inexplicable races with DebugActiveProcess.
2668 (dostrace): Pass any pid argument to proc_child.
2670 2002-05-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2672 * getfacl.c (usage): Standardize usage output. Change return type to
2674 (print_version): New function.
2675 (longopts): Added longopts for all options.
2676 (main): Accommodate new help and version options.
2678 2002-05-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2680 * mount.cc (version): New global variable.
2681 (usage): Standardize usage output. Accommodate new version option.
2682 (print_version): New function.
2683 (longopts): Accommodate new version option.
2687 2002-05-22 Corinna Vinschen <corinna@vinschen.de>
2689 * cygpath.cc (usage): Change usage output slightly.
2691 2002-05-20 Joerg Schaible <joerg.schaible@gmx.de>
2693 * cygpath.cc (main): Add option l to support conversion to
2694 Windows long file names. Refactured code for capital options.
2695 Support of options from file for capital options.
2696 (dowin): New function. Refactured from main.
2697 (doit): Call long path conversion.
2698 (get_long_name): New function.
2699 (get_long_paths): New function.
2700 (get_long_path_name_w32impl): New function. Reimplementation
2701 of Windows API function GetLongPathName (only 98/Me/2000/XP or
2703 (get_short_name): Call GetShortPathName only once.
2704 (get_short_paths): Fix calculating buffer size.
2705 * utils.sgml: Update cygpath section for l option.
2707 2002-05-18 Christopher Faylor <cgf@redhat.com>
2709 * strace.cc (add_child): Use calloc since new requires working
2711 (remove_child): Ditto for delete/free.
2713 2002-05-15 Mark Blackburn <marklist@fangorn.ca>
2715 * cygpath.cc (get_short_paths): Fix more error checking.
2716 (get_short_name): Ditto.
2718 2002-05-14 Joerg Schaible <joerg.schaible@gmx.de>
2720 * cygpath.cc (main): Add option H to show the Windows' profiles
2721 directory. Support short names for options DPSW. Clean up
2723 * utils.sgml: Update cygpath section for H option and s support.
2725 2002-05-14 Mark Blackburn <marklist@fangorn.ca>
2727 * cygpath.cc (get_short_paths): Fix error checking.
2729 2002-05-13 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2731 * kill.cc (prog_name): New global variable.
2732 (usage): Standardize usage output. Add descriptions.
2733 (print_version): New function.
2734 (longopts): Accommodate new version option.
2738 2002-05-13 Christopher Faylor <cgf@redhat.com>
2740 * kill.cc (listsig): Display numeric id when given symbolic input.
2742 2002-05-13 Christopher Faylor <cgf@redhat.com>
2744 * kill.cc (usage): Show new options. Allow specification of output
2746 (main): Implement 'h' option.
2748 2002-05-13 Christopher Faylor <cgf@redhat.com>
2750 * Makefile.in (kill.exe): Add as a specific target.
2751 * kill.cc (longopts): New.
2753 (get_sig): Accept const char * parameter. Return -1 on unknown signal.
2754 (test_for_unknown_sig): New function.
2755 (listsig): New function.
2756 (main): Use getopt_long for option parsing. Implement -l, and -s
2757 options. Use test_for_unknown_sig() to test for signal validity.
2759 * mount.cc (longopts): Make static.
2762 2002-05-12 Christopher Faylor <cgf@redhat.com>
2764 * mount.cc (do_mount): Default to non-exec option for remote drives.
2765 Report warnings before attempting a mount.
2766 (longopts): Add no-executable option.
2767 (mount_commands): Ditto.
2769 (usage): Ditto. Indicate that system mount is now the default.
2770 (main): Accommodate no-executable option. Make system mount the
2772 * umount.cc (usage): Indicate that system umount is now the default.
2773 (main): Make system umount the default.
2775 2002-05-07 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2777 * dumper.cc (usage): Standardize usage output. Generalize to allow use
2779 (longopts): New struct. Added longopts for all options.
2780 (print_version): New function.
2781 (main): Change getopt to getopt_long. Accommodate new help and version
2784 2002-03-29 Corinna Vinschen <corinna@vinschen.de>
2786 * mkgroup.c (main): Change call to exit() to a return statement.
2787 * mkpasswd.c (main): Ditto.
2789 2002-03-27 Joshua Daniel Franklin joshuadfranklin@yahoo.com
2791 * mkpasswd.c (usage): Simplify usage output. Generalize to allow use
2792 for help. Correct '?' typo to 'h'.
2793 (longopts): Add version option.
2794 (opts): Add 'v' version option.
2795 (print_version): New function.
2796 (main): Accommodate new version option. Accommodate usage parameter
2799 2002-03-19 Christopher Faylor <cgf@redhat.com>
2801 * mkgroup.c (usage): Use one just fprintf + string concatenation for
2803 (print_version): Add void to function type and update copyright.
2805 2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2807 * mkgroup.c (usage): Simplify usage output. Generalize to allow use
2808 for help. Correct '?' typo to 'h'.
2809 (longopts): Add version option.
2810 (opts): Add 'v' version option.
2811 (print_version): New function.
2812 (main): Accommodate new version option. Accommodate usage parameter
2813 changes. Use usage to output help message.
2815 2002-03-15 Corinna Vinschen <corinna@vinschen.de>
2817 * mkgroup.c (main): When generating group 513, check for computer's
2818 primary domain instead of current user's domain.
2820 2002-03-14 Corinna Vinschen <corinna@vinschen.de>
2822 * mkgroup.c (main): When generating group 513, check for domain SID
2823 if computer name isn't mapped to a SID.
2825 2001-03-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2827 * kill.cc (usage): Move to top of file.
2831 2002-03-06 Christopher Faylor <cgf@redhat.com>
2833 * cygcheck.cc: Reformat.
2835 2002-03-06 Christopher Faylor <cgf@redhat.com>
2837 * cygcheck.cc (longopts): Use correct short option for --version.
2839 2002-03-06 Christopher Faylor <cgf@redhat.com>
2841 * cygpath.cc: Reformat.
2843 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2845 * cygpath.cc (print_version): New function.
2846 (main): Accommodate new version function. Initialize 'o' to prevent
2849 2002-02-27 Christopher Faylor <cgf@redhat.com>
2851 * cygcheck.cc (main): Eliminate non-GNU formatting glitch.
2853 2002-02-27 Christopher Faylor <cgf@redhat.com>
2855 * ssp.c (help_desk): Fix compiler warning.
2857 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2858 Christopher Faylor <cgf@redhat.com>
2860 Change appropriate globals to statics throughout.
2861 * cygcheck.cc (usage): Simplify usage output. Generalize to allow use
2863 (longopts): Add version option.
2864 (opts): Add 'V" version option.
2865 (print_version): New function.
2866 (main): Accommodate new version option. Accommodate usage parameter
2867 changes. Use usage to output help message.
2869 002-02-19 Christopher Faylor <cgf@redhat.com>
2871 * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is
2873 (libbfd): Use -B rather than -L so that bfd from build directory is
2877 2002-02-15 Christopher Faylor <cgf@redhat.com>
2879 * mount.cc (usage): Fix typo in output.
2881 2002-02-14 Christopher Faylor <cgf@redhat.com>
2883 * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
2885 2002-01-31 Corinna Vinschen <corinna@vinschen.de>
2887 * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
2890 2002-01-30 Corinna Vinschen <corinna@vinschen.de>
2892 * passwd.cc (ChangePW): Add parameter to differ between called for
2893 checking old password and called for changing password. If called
2894 for checking old password, return non-zero only if password is surely
2896 (main): Call ChangePW() with additional parameter.
2898 2002-01-29 Christopher Faylor <cgf@redhat.com>
2900 * dump_setup.cc (parse_filename): Don't consider '_' part of the
2903 2002-01-28 Christopher Faylor <cgf@redhat.com>
2905 * cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in
2906 sys/cygwin.h instead.
2907 * getfacl.c: Add include to remove warning.
2908 * mkgroup.c (main): Assign variables outside of parameter passing.
2909 This seems to eliminate some compiler warnings.
2911 2002-01-28 Christopher Faylor <cgf@redhat.com>
2913 * cygcheck.cc: Use specific cygwin includes, as required.
2915 2002-01-28 Christopher Faylor <cgf@redhat.com>
2917 * Makefile.in (MINGW_INCLUDES): Change cygwin include.
2918 * strace.cc: Use specific cygwin includes, as required.
2919 (load_cygwin): New function. Loads cygwin DLL, if necessary.
2920 (attach_process): Attaches strace to a running process.
2921 (dostrace): Accept pid argument. Attach to pid if supplied.
2922 (usage): Describe -p option. Correct system description.
2923 (longopts): Alphabetize.
2925 (main): Ditto. Handle -p option.
2927 2002-01-21 Christopher Faylor <cgf@redhat.com>
2929 * Makefile.in (CXXFLAGS): Ensure that important settings are preserved
2930 even when overriden by command line.
2932 2002-01-21 Christopher Faylor <cgf@redhat.com>
2934 * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
2935 * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning.
2936 (dump_sysinfo): Make variables unsigned to quiet g++ warnings.
2937 * strace.cc (version_string): Rename from SCCSid.
2938 (add_child): Remove unused variable.
2939 (version): Use version_string. Avoid use of fprintf.
2941 2002-01-21 DJ Delorie <dj@redhat.com>
2943 * Makefile.in: Use CXX instead of CC to compile C++ sources.
2945 2002-01-17 DJ Delorie <dj@redhat.com>
2947 * cygcheck.cc (already_did): Avoid default constructors, which may
2948 require exception support.
2950 2001-01-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2952 * cygpath.cc (main): Add options to show Desktop and Start
2953 Menu's Programs directory for current user or all users.
2954 Move bulk of DPWS options outside the getopt case statement.
2955 * utils.sgml: Update cygpath section for ADPWS options.
2957 2002-01-15 Joerg Schaible <joerg.schaible@gmx.de>
2959 * cygpath.cc (doit): Empty file ignored using option -i.
2961 2002-01-15 Mark Bradshaw <bradshaw@crosswalk.com>
2963 * mkpasswd.c (print_win_error): Add a new function.
2964 (enum_users): Use print_win_error.
2965 (enum_local_groups): Ditto.
2968 2001-12-26 Jonathan Kamens <jik@curl.com>
2970 * cygpath.cc (doit): Detect and warn about an empty path. Detect and
2971 warn about errors converting a path.
2972 (main): Set prog_name correctly -- don't leave an extra slash or
2973 backslash at the beginning of it.
2975 Fri Dec 14 14:04:37 2001 Jason Tishler <jason@tishler.net>
2977 * mkpasswd.c (enum_users): Change to unconditionally use
2978 the --path-to-home option, if supplied by the user. Use default
2979 --path-to-home option value, if appropriate.
2980 (usage): Change usage statement to reflect new semantics.
2981 (main): Remove defaulting of the --path-to-home option.
2983 Fri Dec 14 12:10:39 2001 Jason Tishler <jason@tishler.net>
2985 * mkpasswd.c (opts): Add indication that '-p' option requires an
2988 2001-12-11 Christopher Faylor <cgf@redhat.com>
2990 * Makefile.in: Add define to CXXFLAGS.
2992 2001-12-03 Christopher Faylor <cgf@redhat.com>
2994 * cygcheck.cc (usage): Add -c description.
2995 * cygpath.cc (usage): Alphabetize options.
2996 * strace.cc (usage): Ditto.
2998 2001-11-21 Christopher Faylor <cgf@redhat.com>
3000 * path.cc (cygpath): Don't consider cygdrive stuff when trying to derive
3003 2001-11-20 Mark Bradshaw <bradshaw@staff.crosswalk.com>
3005 * mkpasswd.c: include lmerr.h
3006 (main): New -u option to allow specifying a
3007 specific user. If specified, groups aren't displayed and
3008 output is limited to only the specified user.
3009 (enum_users): If specific user is specified, via -u option,
3010 display only that user's record. With -u use NetUserGetInfo
3011 instead of NetUserEnum.
3012 (load_netapi): Added netusergetinfo.
3014 2001-11-15 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3016 * strace.cc (main): Change getopt() to getopt_long().
3017 Add support for help and version info.
3018 Use new parse_mask() function for -m/--mask option.
3019 (longopts): Add long options structure.
3020 (opts): Move options string from getopts call to static var.
3021 (usage): Print usage information.
3022 (SCCSid): Version info.
3023 (version): New function for displaying version info.
3024 (parse_mask): New function supporting parsing of mnemonics,
3025 hex, and basic expressions in masks.
3026 (mnemonic2ul): New mnemonic parsing function.
3027 (tag_mask_mnemonic): New type.
3028 (mnemonic_table): New table of mnemonics for mnemonic2ul() to
3031 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3033 * cygcheck.cc (dump_sysinfo): Redefine output format slightly.
3034 Print correct build number on 9x/ME systems.
3036 2001-11-12 Christopher Faylor <cgf@redhat.com>
3038 * cygcheck.cc (main): Slight formatting tweak.
3040 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3042 * cygcheck.cc (dump_sysinfo): Add some more details.
3044 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3046 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string
3047 using OSVERSIONINFOEX information.
3049 2001-11-11 Christopher Faylor <cgf@redhat.com>
3053 2001-11-11 Christopher Faylor <cgf@redhat.com>
3055 * cygcheck.cc (scan_registry): Open registry with read-only access.
3056 (main): Reflect argument change for dump_setup.
3057 * dump_setup.cc (dump_setup): Add preliminary extra argument for future
3059 * path.cc (read_mounts): Open registry with read-only access.
3061 2001-11-11 Christopher Faylor <cgf@redhat.com>
3063 * cygcheck.cc (main): Display package info when '-s' is specified.
3064 * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort
3067 2001-11-11 Christopher Faylor <cgf@redhat.com>
3069 * dump_setup.cc: New file.
3070 * Makefile.in: Add info for dump_setup.o.
3071 * cygcheck.cc (main): Recognize '-c' option for checking setup
3073 * path.cc (cygpath): Read mount table if not loaded.
3075 2001-11-10 Christopher Faylor <cgf@redhat.com>
3077 * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.
3078 * path.cc: New file.
3079 * cygcheck.cc (init_paths): Use MS-DOS path syntax.
3080 (cygwin_info): Properly display cygwin version numbers. Prettify some
3082 (dump_sysinfo): Calculate max names of posix and ms-dos paths for
3085 2001-11-09 Corinna Vinschen <corinna@vinschen.de>
3087 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
3089 2001-11-04 Corinna Vinschen <corinna@vinschen.de>
3091 * getfacl.c (username): New function.
3093 (usage): Ditto. Add more user friendly help text.
3094 (main): Add -n and --help option. Print names instead of IDs
3095 unless -n option is given.
3096 * setfacl.c (getperm): Tolerate whitespace and comment chars in input.
3097 (getaclentry): Fix several input string misdetections.
3098 (getaclentries): Allow - as input file name to read from stdin.
3099 Tolerate whitespace and comment chars in input.
3100 (usage): Add more user friendly help text.
3101 (main): Add --help option.
3103 2001-11-04 Egor Duda <deo@logos-m.ru>
3105 * strace.cc (main): New option '-w'. Start traced process in separate
3106 window. New option '-S x'. Flush buffered output every x seconds.
3107 (create_child): Start child process in new window, when requested.
3108 When requested, periodically flush debugging output.
3110 2001-10-24 Christopher Faylor <cgf@redhat.com>
3112 * Makefile.in: Remove EXEEXT consideration. We always need .exe
3115 2001-10-20 Corinna Vinschen <corinna@vinschen.de>
3117 * mkgroup.c: Avoid compiler warnings.
3118 (print_special): New function.
3119 (main): Print special accounts by calling print_special().
3120 * mkpasswd.c: Avoid compiler warnings.
3121 (enum_users): Print additional U-domain\username info in gecos
3122 field when SIDs are printed.
3123 (print_special): New function.
3124 (main): Print special accounts by calling print_special().
3126 2001-10-15 Christopher Faylor <cgf@redhat.com>
3128 * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
3130 2001-10-13 Christopher Faylor <cgf@redhat.com>
3132 * Makefile.in: Allow stdinc searching for dumper.
3134 Tue Oct 9 21:59:00 2001 Christopher Faylor <cgf@cygnus.com>
3136 * Makefile.in (MINGW_INCLUDES): Accommodate changes in Makefile.common.
3138 Sun Oct 7 23:06:39 2001 Christopher Faylor <cgf@cygnus.com>
3140 * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor
3143 Fri Sep 21 20:40:30 2001 Christopher Faylor <cgf@cygnus.com>
3145 * Makefile.in (mingw_getopt.o): Ensure that newlib include directories
3148 Thu Sep 20 21:00:20 2001 Christopher Faylor <cgf@cygnus.com>
3150 * Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.
3152 Wed Sep 19 12:22:08 2001 Christopher Faylor <cgf@cygnus.com>
3154 * Makefile.in: Filter newlib includes from mingw compilation.
3156 2001-09-14 Egor Duda <deo@logos-m.ru>
3158 * dumper.cc (dumper::dumper): Print error code in case of error.
3159 (dumper::add_thread): Ditto.
3160 (dumper::collect_memory_sections): Ditto.
3161 (dumper::dump_memory_region): Ditto.
3162 (dumper::collect_process_information): Ditto.
3163 (print_section_name): Fix formatting.
3165 2001-09-13 Egor Duda <deo@logos-m.ru>
3167 * dumper.cc (main): Properly recognize negative pids (used by w9x).
3169 2001-09-09 Egor Duda <deo@logos-m.ru>
3171 * dumper.cc (main): Change command-line arguments format to be
3172 similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to
3173 CYGWIN environment variable to perform core dumping in case of
3177 Wed Sep 5 22:37:21 2001 Christopher Faylor <cgf@cygnus.com>
3179 * Makefile.in (dumper): Change logic for libbfd and libintl so that
3180 they will be found either in the build tree or the installed directory.
3181 * mkpasswd.c (enum_users): Add a comment as a password for NT.
3183 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3185 * mount.cc (mount_commands): Don't write /cygdrive/u mount points.
3187 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3189 * mount.cc (longopts): Add mount-commands to options list.
3190 (usage): Add mount-commands option.
3191 (mount_commands): New function. Write commands to recreate current
3194 Sat Sep 1 15:58:11 2001 Christopher Faylor <cgf@cygnus.com>
3196 * mount.cc (main): Eliminate excess arguments in printf.
3198 2001-08-30 Egor Duda <deo@logos-m.ru>
3200 * dumper.h: Update copyright notice.
3202 * dumper.cc: (dumper::print_core_section_list): New function.
3203 * dumper.h: (dumper::print_core_section_list): Declare it.
3204 * dumper.cc (print_section_name): New function.
3205 (dumper::collect_process_information): Augment debugging output.
3206 Stop debugee processing if it posts double exception.
3207 (usage): Fix typo in option name.
3209 Tue Aug 28 14:45:02 2001 Christopher Faylor <cgf@cygnus.com>
3211 * mount.cc (main): Issue correct warning for 'not enough arguments'.
3213 2001-08-14 Joerg Schaible <joerg.schaible@gmx.de>
3215 * cygpath.cc (main): Support -w for Windows (System) directories and
3216 return physical correct orthography for the Windows System dir.
3218 2001-07-14 Chris Genly <chgenly@alum.mit.edu>
3220 * regtool.cc (find_key): Handle keys with only one subkey.
3222 Wed Jun 27 22:46:10 2001 Christopher Faylor <cgf@cygnus.com>
3224 * regtool.cc (find_key): Revert previous change.
3226 Wed Jun 27 13:37:41 2001 Keith Starsmeare" <keith_starsmeare@yahoo.co.uk>
3228 * regtool.cc (find_key): Allow '/' as a synonym for '\\'.
3230 Fri Jun 15 00:49:21 2001 Christopher Faylor <cgf@cygnus.com>
3232 * mkpasswd.c (main): Output passwd file in binary mode so that there
3233 are no CRs in the file.
3234 * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive
3237 Tue May 1 10:50:48 2001 Christopher Faylor <cgf@cygnus.com>
3239 * mkpasswd.c (enum_users): Use /bin/bash as the default shell.
3242 Sat Apr 28 22:32:01 2001 Christopher Faylor <cgf@cygnus.com>
3244 * passwd.cc (ttymnam): New function.
3245 (main): Use ttynam() to report name of tty.
3247 2001-04-19 Egor Duda <deo@logos-m.ru>
3249 * dumper.cc (dumper::init_core_dump): Set architecture field in dump
3252 Mon Apr 16 15:08:00 2001 Corinna Vinschen <vinschen@redhat.com>
3254 * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
3256 (load_netapi): Load function pointers `netlocalgroupgetmembers'
3257 and `netgroupgetusers'.
3258 (enum_local_users): New function.
3259 (enum_local_groups): Call `enum_local_users' for each group if
3260 `print_users' is set.
3261 (enum_users): New function.
3262 (enum_groups): Call `enum_users' for each group if `print_users' is set.
3263 (usage): Add usage text for `-u/--users'.
3264 (longopts): Add option `--users'.
3265 (opts): Add option character `u'.
3266 (main): Set `print_users' according to option `-u/--users'.
3267 Call `enum_local_groups' and `enum_groups' with additional parameter
3270 2001-04-15 Michael A Chase <mchase@ix.netcom.com>
3272 * mount.cc (longopts): Add help to options list.
3273 (opts): Add 'h' to options string.
3274 * umount.cc (longopts): Add help to options list.
3275 (opts): Add 'h' to options string and change 'R' to 'A'.
3277 2001-04-13 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
3279 * mkgroup.c (enum_groups): Use RID + offset specified an additional
3281 (usage): Add description of -o option.
3282 (longopts, opts): Add specifications of -o/--id-offset option.
3283 (main): Add -o option. Invoke enum_groups with specified offset.
3284 * mkpasswd.c (enum_users): Just like mkgroup.c.
3285 (usage, longopts, opts): Ditto.
3286 (main): Add -o option. Invoke enum_users with specified offset only
3287 against domain accounts.
3289 2001-04-11 Egor Duda <deo@logos-m.ru>
3291 * mkgroup.c (uni2ansi): Use native method to convert from Unicode
3292 to multi-byte strings.
3293 * mkpasswd.c (uni2ansi): Ditto.
3294 (enum_users): Pass buffer size when converting string.
3295 (enum_local_groups): Ditto.
3296 * mkgroup.c (enum_groups): Ditto.
3297 (enum_local_groups): Ditto.
3299 Mon Apr 2 22:41:33 2001 Christopher Faylor <cgf@cygnus.com>
3301 * mount.cc (main): Use getopt_long for parsing arguments.
3302 (usage): Reformat, show long and short options.
3303 * umount.cc (main): Ditto, all of the above.
3305 Mon Apr 2 10:58:26 2001 Christopher Faylor <cgf@cygnus.com>
3307 * mount.cc (show_mounts): Change format string to more closely resemble
3308 UNIX when displaying mount table.
3310 Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
3312 * kill.cc (forcekill): Use dwProcessId when opening a process, not the
3315 Mon Mar 5 18:50:00 2001 Corinna Vinschen <vinschen@redhat.com>
3317 * getfacl.c: Add copyright hint.
3321 Tue Jan 09 10:26:23 2001 Tony Sideris <tonys1110@home.com>
3323 * regtool.cc (cmd_list): Add new registry display options.
3324 (cmd_list): Add code to implement -p, -k, and -l options.
3326 * regtool.cc (Fail): Add call to LocalFree to free memory allocated by
3329 Wed Jan 10 09:16:57 2001 Christopher Faylor <cgf@cygnus.com>
3331 * regtool.cc (translate): Ensure that 'c' is initialized.
3332 (cmd_set): Ditto for rv.