1 2011-12-22 Corinna Vinschen <corinna@vinschen.de>
3 * Makefile.in (ps.exe): Revert previous change.
4 * ps.cc: Include psapi.h again.
5 (main): In CW_GETPINFO_FULL case. Evaluate minimal process access mask
6 required per OS and use that in OpenProcess call. Use
7 GetModuleFileNameExW on Windows 2000 or if fetching the drive mapping
8 failed. Handle empty process name.
10 2011-12-22 Corinna Vinschen <corinna@vinschen.de>
12 * Makefile.in (ps.exe): Drop -lpsapi from ALL_LDFLAGS.
13 * ps.cc: Don't include psapi.h.
15 (unicode_buf): Define.
16 (main): Simplify path evaluation in CW_GETPINFO_FULL case. Fetch drive
17 map from Cygwin DLL. Use it to convert NT device paths to Win32 paths.
19 2011-12-02 Corinna Vinschen <corinna@vinschen.de>
21 * Makefile.in (cygpath.exe): Add -luserenv to ALL_LDFLAGS.
22 * cygpath.cc: Throughout, use cygwin_conv_path WIN_W rather than WIN_A
24 (get_long_path_name_w32impl): Remove.
25 (get_long_name): Drop pre-Windows 2000 accommodations. Just call
26 GetLongPathNameW here directly.
27 (get_special_folder): Convert first parameter to WCHAR buffer pointer.
28 Drop conversion of result from WCHAR * to char *.
29 (do_sysfolders): Accommodate change to get_special_folder and only
30 convert result to char * last. Drop pre-Windows 2000 accommodations
31 and just call GetProfilesDirectoryW directly. Replace call to
32 GetWindowsDirectoryW with call to GetSystemWindowsDirectoryW.
33 Just call GetShortPathNameW directly.
34 (do_pathconv): Simplify buffer handling.
36 2011-12-01 Corinna Vinschen <corinna@vinschen.de>
38 * mkgroup.c: Drop support for NT4 domains.
41 (current_user): Drop support for -m option. Use $HOME as is since it's
43 (enum_users): Drop support for -m option.
44 (usage): Mention -m option as ignored.
45 (main): Drop support for -m option. Mark ignored options as deprecated.
46 * utils.sgml (mkpasswd): Remove description of -m option.
48 2011-11-28 Corinna Vinschen <corinna@vinschen.de>
50 * locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
51 path and convert that to POSIX.
53 2011-11-28 Corinna Vinschen <corinna@vinschen.de>
55 * ps.cc: Remove all Win 9x considerations. Use psapi functions
56 directly. Drop support for older Cygwin DLLs. Just use progname_long
57 as is since it's already a POSIX path now. Rename "tty" to "pty" as in
58 the Cygwin DLL. Call setlocale to make sure wcstombs does the right
59 thing according to the current locale.
60 * Makefile.in (ps.exe): Link against psapi.dll.
62 2011-11-24 Christopher Faylor <me.cygwin2011@cgf.cx>
64 * strace.cc (attach_process): Use NT_SUCCESS to figure out if
65 NtSetInformationProcess succeeded.
66 (handle_output_debug_string): Put back DebugActiveProcess since it
67 seems to still be needed (on my system at least). Detect new format
68 _STRACE_INTERFACE_ACTIVATE_ADDR which informs whether this is a forked
69 process or not. Use that to decide if forkdebug should be handled.
71 2011-11-14 Christopher Faylor <me.cygwin2011@cgf.cx>
73 * strace.cc (handle_output_debug_string): Disable code which attempted
74 to add stuff in between '****' blocks since they no longer are the
75 first thing output by an straced process.
77 2011-10-13 Corinna Vinschen <corinna@vinschen.de>
79 * cygcheck.cc (dump_sysinfo): Add Windows 8 recognition. Note as
80 unsupported. Update products array.
82 2011-10-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
84 * utils.sgml (getconf): Expand documentation.
86 2011-10-10 Corinna Vinschen <corinna@vinschen.de>
88 * ldd.cc (VERSION): Remove.
90 2011-10-10 Christopher Faylor <me.cygwin2011@cgf.cx>
92 * ldd.cc: Update copyright.
94 2011-10-10 Corinna Vinschen <corinna@vinschen.de>
96 * Align usage output, version output, as well as usage and version
97 option handling to use the same style throughout all Cygwin utils.
98 Throughout use program_invocation_short_name to refer to current
99 process name in Cygwin executables.
100 * utils.sgml: Align documentation to above change. Add missing
101 sections for getconf, ldd, and setmetamode.
102 * strace.cc (proc_child): Avoid compiler warning.
104 2011-10-10 Andy Koppe <andy.koppe@gmail.com>
105 Corinna Vinschen <corinna@vinschen.de>
107 * locale.cc (usage): Restructure, rephrase, add new options. Drop
108 arguments, don't exit.
109 (print_version): New function.
110 (longopts): Add -f, -n, and -V options. Reorder.
111 (opts): Add -f, -n, and -V options.
112 (main): Call GetSystemDefaultUILanguage for -s option. Call
113 GetUserDefaultUILanguage for -u option. Add -f and -n options and
114 call GetUserDefaultLCID and GetSystemDefaultLCID respectively. Return
115 0 after calling usage in -h case. Add -V option and call print_version.
116 Don't print full usage in default case, rather just a short help message
117 similar to GNU tools.
118 * utils.sgml (locale): Align to above changes. Rephrase description.
120 2011-10-10 Corinna Vinschen <corinna@vinschen.de>
122 * cygcheck.cc (check_keys): Use UNICODE Win32 functions.
124 2011-09-12 Jon TURNEY <jon.turney@dronecode.org.uk>
126 * strace.cc (attach_process): Try to turn off DEBUG_ONLY_THIS_PROCESS
127 if Attaching to a process with the trace-children flag set.
128 (handle_output_debug_string): Apparently we don't need to explicitly
129 attach for debugging when a child process starts
130 * Makefile.in (strace.exe): Link with ntdll
132 2011-08-21 Christopher Faylor <me.cygwin2011@cgf.cx>
134 * Makefile.in: Check for header file existence when building dumper.exe
137 2011-08-10 Corinna Vinschen <corinna@vinschen.de>
139 * ps.cc (main): Don't overwrite process name, just attach <defunct>
140 to it for zombie processes.
142 2011-07-19 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
144 * Makefile.in (CYGWIN_BINS): Add getconf.
145 (getconf.c): New file.
147 2011-06-14 Christopher Faylor <me.cygwin2011@cgf.cx>
149 * mingw: Force use of bash.
151 2011-05-29 Christopher Faylor <me.cygwin2011@cgf.cx>
153 * ps.cc (ttynam): Accommodate new console numbering.
156 2011-05-03 Corinna Vinschen <corinna@vinschen.de>
158 * locale.cc (print_locale_with_codeset): Align printing of locale names
161 2011-04-18 Corinna Vinschen <corinna@vinschen.de>
163 * setfacl.c (getaclentry): Allow extra colon in mask and other entries.
165 2011-04-12 Jon TURNEY <jon.turney@dronecode.org.uk>
167 * utils.sgml (strace): Fix a pair of exchanged lines in usage text.
169 2011-04-04 Corinna Vinschen <corinna@vinschen.de>
171 * passwd.c (main): Add the ability to specify a username for the -R
173 * utils.sgml: Document the aforementioned change.
175 2011-02-29 Corinna Vinschen <corinna@vinschen.de>
177 * regtool.cc (cmd_set): Avoid a compiler warning.
179 2011-02-29 Corinna Vinschen <corinna@vinschen.de>
181 * cygcheck.cc (handle_unique_object_name): Avoid a compiler warning.
182 (dump_sysinfo): Ditto.
183 * loadlib.h (_load_sys_library): Mark as used, to avoid a compiler
185 * path.cc (oopt): Gurad with !FSTAB_ONLY to avoid a compiler warning.
188 2011-02-28 Corinna Vinschen <corinna@vinschen.de>
190 * setfacl.c (strchrnul): Drop local implementation.
192 2011-02-15 Corinna Vinschen <corinna@vinschen.de>
194 * cygcheck.cc: Fix copyright dates.
196 2011-01-10 Jon TURNEY <jon.turney@dronecode.org.uk>
198 * cygcheck.cc (main): don't imply -d from -s option to cygcheck
200 2010-12-11 Corinna Vinschen <corinna@vinschen.de>
202 * setfacl.c (strchrnul): New function.
203 (getaclentry): Rewrite.
205 2010-12-06 Corinna Vinschen <corinna@vinschen.de>
207 * cygpath.cc (get_device_name): Fix path length test.
209 2010-10-30 Dmitry Potapov <dpotapov@gmail.com>
211 * regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ
214 2010-09-06 Corinna Vinschen <corinna@vinschen.de>
216 * cygpath.cc (RtlEqualUnicodePathPrefix): New helper function.
217 (HARDDISK_PREFIX): Move.
218 (GLOBALROOT_PREFIX): Define.
219 (get_device_name): Take GLOBALROOT_PREFIX into account.
220 Improve check for path to allow filesystem access via block devices.
221 Potentially drop \\.\ prefix if resulting path is a valid DOS
223 (do_pathconv): Make sure to drop \\?\ prefix only if path is
224 actually a filesystem based path.
225 (print_version): Fix copyright.
227 2010-08-28 Corinna Vinschen <corinna@vinschen.de>
229 * ldh.cc (WinMain): Change DONT_RESOLVE_DLL_REFERENCES to
230 LOAD_WITH_ALTERED_SEARCH_PATH.
232 2010-08-28 Corinna Vinschen <corinna@vinschen.de>
234 * loadlib.h: New header implementing safe LoadLibrary calls.
235 Include throughout files using LoadLibrary function.
236 * cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via
237 GetModuleHandle, rather than using LoadLibrary.
238 * cygpath.cc (get_long_name): Ditto.
239 (do_sysfolders): Append .dll suffix in LoadLibrary call.
240 * ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES
241 to avoid loading malicious library code.
242 * locale.cc (print_locale_with_codeset): Change way to retrieve
245 2010-08-26 Corinna Vinschen <corinna@vinschen.de>
247 * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
248 harddisks, if available.
250 2010-08-21 Corinna Vinschen <corinna@vinschen.de>
252 * ldd.cc (report): Drop long pathname considerations which result in
253 invalid path, now that this is done in cygwin_conv_path.
255 2010-08-13 Corinna Vinschen <corinna@vinschen.de>
257 * mount.cc (from_fstab): Fix potentially fatal typo.
259 2010-08-11 Corinna Vinschen <corinna@vinschen.de>
261 * mount.cc (do_mount): Don't treat "bind" mount as remote mount.
262 (mount_entries): Drop the "bind" option from output.
263 * utils.sgml (mount): Match examples to actual mount output. Add
264 "bind" option and add example.
266 2010-08-10 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
268 * mingw: Use sysroot, if present, for mingw_dir.
270 2010-07-21 Corinna Vinschen <corinna@vinschen.de>
272 * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.
273 (transform_chars): New function, copied from Cygwin.
274 (simple_nt_stat): New function to check file existance using native
275 NT function. Explain why.
276 (directory_exists): Call simple_nt_stat.
277 (file_exists): Ditto.
279 2010-07-05 Christopher Faylor <me+cygwin@cgf.cx>
281 * ldd.cc: Clean up formatting throughout.
282 (head): Move earlier.
284 (print_dlls): Reset head here. Record seen dll names so they will
285 not potentially be printed later.
286 (process_file): Remove clearing of head here.
288 2010-07-05 Corinna Vinschen <corinna@vinschen.de>
290 * dump_setup.cc (dump_file): Read requested content from setup.rc
291 file created by newer setup.exe.
293 2010-06-29 Corinna Vinschen <corinna@vinschen.de>
295 * utils.sgml (locale): Change stray local cygdrive prefix to Cygwin's
298 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
300 * utils.sgml (mount): Add description for "dos" and "ihash" mount
303 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
305 * path.cc: Include sys/cygwin.h if built for mount(1).
306 (struct opt): Add "dos" and "ihash" options.
307 (from_fstab_line): Call cygwin_internal rather than read_flags if
310 2010-04-29 Corinna Vinschen <corinna@vinschen.de>
312 * mount.cc (oopts): Remove entirely.
313 (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
315 (print_version): Fix copyright date.
316 (main): Replace option processing loop with single call to
317 cygwin_internal (CW_CVT_MNT_OPTS).
319 2010-04-28 Corinna Vinschen <corinna@vinschen.de>
321 * locale.cc (print_lc_xxx_charset): Remove.
322 (enum type_t): Change according to the fact that nl_langinfo now returns
323 all locale category values.
324 (lc_ctype_names): Add new category members. Redefine for exclusive
326 (lc_numeric_names): Ditto.
327 (lc_time_names): Ditto.
328 (lc_collate_names): Ditto.
329 (lc_monetary_names): Ditto.
330 (lc_messages_names): Ditto.
331 (print_lc): Change switch according to new type_t values.
333 2010-03-27 Corinna Vinschen <corinna@vinschen.de>
335 * locale.cc (print_charmaps): Add EUC-CN and GB2312.
337 2010-03-24 Corinna Vinschen <corinna@vinschen.de>
339 * regtool.cc (find_key): Fix allocation size of "value".
341 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
343 * locale.cc (add_locale_alias_locales): Always use loc_num at function
344 start to avoid confusing bsearch.
346 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
348 * locale.cc: Revert accidental checkin of unfinished changes.
350 2010-03-23 Corinna Vinschen <corinna@vinschen.de>
352 * locale.cc (print_locale_with_codeset): Drop redundant name parameter.
353 Simplify creating locale string. Add "@" in case of a modifier.
354 (print_locale): Drop name parameter in calls to
355 print_locale_with_codeset.
357 2010-02-25 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
359 * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.
361 2010-02-25 Corinna Vinschen <corinna@vinschen.de>
363 * utils.sgml (locale): Change description of -a and -av to match
366 2010-02-23 Corinna Vinschen <corinna@vinschen.de>
368 * locale.cc (printlocale): Remove.
369 (loc_t): New type to keep locale information for printing.
370 (print_codeset): New function to print codeset as on Linux.
371 (print_locale_with_codeset): New function to print single locale.
372 Print verbose style as the Linux locale(1) tool.
373 (print_locale): New function to print single locale plus its UTF-8
374 variation, if available.
375 (compare_locales): New helper function for bsearch and qsort on loc_t.
376 (add_locale): New function to store locale in loc_t array.
377 (add_locale_alias_locales): New function to store locales from
378 locale.alias file in loc_t.
379 (print_all_locales): Call add_locale instead of printlocale.
380 Call add_locale_alias_locales, sort locales alphabetically and print
383 2010-02-22 Christopher Faylor <me+cygwin@cgf.cx>
385 * strace.cc (mnemonic_table): Add "special" mask option.
386 (usage): Document it.
389 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
391 * cygpath.cc (do_pathconv): Fix erroneously printing native NT path
392 prefix introduced by previous patch.
394 2010-02-22 Corinna Vinschen <corinna@vinschen.de>
396 * locale.cc (lc_time_names): Add "date_fmt" entry.
398 2010-02-19 Christopher Faylor <me+cygwin@cgf.cx>
400 * strace.cc (mnemonic_table): Add pthread mask option.
401 (usage): Document strace pthread mask option.
404 2010-02-19 Corinna Vinschen <corinna@vinschen.de>
406 * locale.cc (print_lc_mstrings): New function to print
407 semicolon-separated strings.
408 (enum type_t): New type is_sepstrings_linf.
409 (lc_time_names): Change type of era and alt_digits entry to
411 (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings
414 2010-02-17 Corinna Vinschen <corinna@vinschen.de>
416 * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.
417 * getlocale.c: Rename to ...
418 * locale.cc: Revamp to add full functionality of POSIX locale(1) tool,
419 as far as Cygwin supports it.
420 * utils.sgml (getlocale): Move and rename to ...
421 (locale): Accommodate new functionality.
423 2010-02-13 Ilguiz Latypov <ilatypov@infradead.org>
425 * cygpath.cc (do_pathconv): Fix potential crash.
427 2010-02-11 Corinna Vinschen <corinna@vinschen.de>
429 * getlocale.c (main): Rename local variable to avoid problems.
430 Avoid string comparisons, rather test language and sublanguage codes
431 wheere possible. Add more code to handle Serbian language/territory
432 state identical on all Windows versions. Fix handling for "@latin"
433 modifier in Belarusian locale.
434 * utils.sgml (getlocale): Try to make wording and example clearer.
436 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
438 * getlocale.c (usage): Change text slightly.
440 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
442 * getlocale.c (main): Restrict -a loop to avoid psudo language entries
445 2010-02-10 Corinna Vinschen <corinna@vinschen.de>
447 * getlocale.c (main): Revamp -a loop to avoid duplicates and to print
448 locales with the correct, supported modifiers.
450 2010-01-25 Corinna Vinschen <corinna@vinschen.de>
452 * getlocale.c (main): Use setlocale and fetch string from Windows
453 using GetLocaleInfoW. Explain why.
455 2010-01-22 Corinna Vinschen <corinna@vinschen.de>
457 * Makefile.in (CYGWIN_BINS): Add getlocale.
458 * getlocale.c: New file.
459 * utils.sgml (getlocale): New section describing new getlocale tool.
461 2010-01-16 Corinna Vinschen <corinna@vinschen.de>
463 * cygpath.cc (get_mixed_name): Drop function. Replace with call to
464 convert_slashes throughout.
465 (do_sysfolders): Free allocated buffer.
466 (do_pathconv): Fix freeing last buffer.
468 2010-01-11 Corinna Vinschen <corinna@vinschen.de>
470 * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
472 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
474 * cygpath.cc: Throughout, free obsolete path buffers.
476 2010-01-07 Corinna Vinschen <corinna@vinschen.de>
478 * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
479 Revert usage of argz functions when reading input from file and
480 simplify option usage. Allow only one option argument and use
481 the rest as filename argument to allow spaces in filenames. Restrict
482 processing special folder type options to one line.
484 2009-12-17 Christopher Faylor <me+cygwin@cgf.cx>
486 * ps.cc (main): Return 0 if pid found.
488 2009-12-16 Corinna Vinschen <corinna@vinschen.de>
490 * regtool.cc: Throughout, convert all registry calls to wide char
491 calls and use string conversion according to current locale.
492 (longopts): Change "dword-le" to "dword-be", as was originally
494 (usage): Change usage accordingly.
495 (print_version): Simplify copyright dates in output.
496 (cmd_list): Handle REG_LINK like REG_SZ.
498 (main): Call setlocale.
499 * utils.sgml (regtool): Fix options and add missing descriptions for
502 2009-11-29 Corinna Vinschen <corinna@vinschen.de>
504 * setfacl.c (getaclentry): Allow to delete default entries for the
505 owner and owner group.
507 2009-11-27 Corinna Vinschen <corinna@vinschen.de>
509 * cygcheck.cc (dump_sysinfo): Fix typo in products.
511 2009-11-11 Corinna Vinschen <corinna@vinschen.de>
513 * getfacl.c (print_version): Fix copyright.
514 (main): Don't reuse local variables confusingly. Don't print any file
515 information if acl() fails. Improve error message. Always print a
516 trailing empty line. Set return code to 2 if accessing some file fails.
518 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
520 * path.cc (read_mounts): Skip unnecessary test if path has been
521 fetched from loaded cygwin1.dll.
523 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
525 * cygcheck.cc (cygwin_dll_path): New global variable.
526 (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path.
527 * strace.cc: Full ditto.
528 * path.cc (read_mounts): First use the path stored in cygwin_dll_path,
529 if available. Then fall back to fetching own path. Add comment.
530 Drop printing warnings since they look funny in strace output.
532 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
534 * path.cc (read_mounts): First get installation path from own path.
535 Check if cygwin1.dll exists in same directory. Only if not, try to
536 get installation path from setup registry key. Add ample warnings.
538 2009-11-04 Corinna Vinschen <corinna@vinschen.de>
540 * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.
542 2009-10-31 Corinna Vinschen <corinna@vinschen.de>
544 * cygcheck.cc: Include cygprops.h.
545 (del_orphaned_reg): New option variable.
546 (unique_object_name_opt): Ditto.
547 (handle_reg_installation): New function.
548 (print_reg_installations): Ditto.
549 (del_orphaned_reg_installations): Ditto.
551 (handle_unique_object_name): Ditto.
552 (dump_sysinfo): Call print_reg_installations from here.
553 (usage): Add usage for new options --delete-orphaned-installation-keys,
554 --enable-unique-object-names, --disable-unique-object-names, and
555 --show-unique-object-names.
556 (longopts): Add new options --delete-orphaned-installation-keys,
557 --enable-unique-object-names, --disable-unique-object-names, and
558 --show-unique-object-names.
559 (main): Handle new options.
560 * utils.sgml (cygcheck): Change documentaion accordingly.
562 2009-10-28 Corinna Vinschen <corinna@vinschen.de>
564 * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWIN
565 environment variable.
566 (dump_sysinfo): Don't tweak CYGWIN environment variable, just call
569 2009-10-20 Corinna Vinschen <corinna@vinschen.de>
571 * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
573 2009-10-15 Corinna Vinschen <corinna@vinschen.de>
575 * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
577 (get_user_folder): Remove.
578 (do_sysfolders): Use get_special_folder instead of get_user_folder.
579 Fetch system paths as WCHAR and convert using my_wcstombs.
581 2009-10-12 Corinna Vinschen <corinna@vinschen.de>
583 * kill.cc (main): Skip to PID loop on invalid option to handle
586 2009-08-11 Corinna Vinschen <corinna@vinschen.de>
588 * mkgroup.c (enum_local_groups): Avoid error message if given group
589 name isn't found and return 0 to allow searching to proceed. Always
590 return 0 or 1, not -1.
591 (enum_groups): Avoid error message if given group name isn't found.
592 * mkpasswd.c (enum_users): Ditto.
594 2009-08-10 Dave Korn <dave.korn.cygwin@gmail.com>
596 * mingw: Add fallbacks to search for MinGW components in standard
597 install locations if not found in compiler's $prefix.
599 2009-08-09 Corinna Vinschen <corinna@vinschen.de>
601 * mount.cc (do_mount): Don't exit, just return.
603 2009-07-23 Corinna Vinschen <corinna@vinschen.de>
605 * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
608 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
610 * mount.cc (do_mount): Replace --no-executable flag with notexec
611 mount option in hint for remote filesystems.
612 * path.cc (getmntent): Fix typo (noexec -> notexec).
614 2009-07-22 Corinna Vinschen <corinna@vinschen.de>
616 * Makefile.in (path-mount.o): Add a rule to build stripped down version
617 of path.cc for usage in mount.
618 (mount.exe): Add dependency to path-mount.o.
619 * mount.cc (force): Convert to bool value. Accommodate throughout.
620 (from_fstab): New function.
621 (do_mount_from_fstab): New function.
622 (longopts): Add --all option.
623 (opts): Add -a option.
624 (usage): Document -a/--all option.
625 (main): Handle -a option as well as single parameter.
626 * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
627 (mount_table): Remove static storage class.
628 (max_mount_entry): Ditto.
629 (root_here): Unused. Remove.
630 (from_fstab_line): Remove static.
631 * path.h (struct mnt_t): Define here rather than in path.cc.
632 (from_fstab_line): Declare.
633 (mount_table): Declare.
634 (max_mount_entry): Declare.
635 * utils.sgml (mount): Document -a/--all option and mounting of single
636 path from fstab files.
638 2009-07-15 Corinna Vinschen <corinna@vinschen.de>
640 * strace.cc (main): Open trace output file in UNIX mode.
642 2009-07-13 Corinna Vinschen <corinna@vinschen.de>
644 * cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.
646 2009-07-04 Christopher Faylor <me+cygwin@cgf.cx>
648 * cygwin-console-helper.cc: New file.
650 2009-06-10 Corinna Vinschen <corinna@vinschen.de>
652 * path.cc (oopts): Sort alphabetically, add missing "auto" and
654 (from_fstab_line): Handle mount points same as Cygwin itself. Use
655 "cygdrive prefix" as posix name of cygdrive prefix.
656 (from_fstab): Add auto entries for /usr/bin and /usr/lib. Add
657 MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
658 Use "cygdrive prefix" as posix name of default cygdrive prefix.
659 (getmntent): Allocate smaller buffers. Align output closer to output
662 2009-05-17 Corinna Vinschen <corinna@vinschen.de>
664 * cygpath.cc (codepage): New variable.
665 (long_options): Add --codepage option.
666 (options): Add -C option.
667 (usage): Add -C/--codepage description.
668 (my_wcstombs): New function. Use througout instead of wcstombs.
669 (do_options): Handle -C/--codepage option.
670 * utils.sgml (cygpath): Add description for new -C/--codepage option.
672 2009-05-16 Corinna Vinschen <corinna@vinschen.de>
674 * Makefile.in (cygpath.exe): Link against cygwin.a before linking
675 against ntdll.dll to avoid linking symbols defined in both DLLs
679 2009-05-15 Corinna Vinschen <corinna@vinschen.de>
681 * cygpath.cc (main): Only setlocale for LC_CTYPE category. Fallback
682 to UTF-8 if locale is "C".
683 * ldd.cc (main): Ditto.
684 * mkgroup.c (main): Ditto.
685 * mkpasswd.c (main): Ditto.
686 * passwd.c (main): Ditto.
688 2009-05-13 Corinna Vinschen <corinna@vinschen.de>
689 Christopher Faylor <me+cygwin@cgf.cx>
691 * mount.cc (oopts): Sort. Add override option. Add dummy "auto"
692 option for consistency.
693 (mount_entries): Avoid adding auto-mounted entries to -m output.
695 * utils.sgml: Sort mount options. Add description of override option.
697 2009-05-11 Corinna Vinschen <corinna@vinschen.de>
699 * Makefile.in: Link ps.exe agains ntdll.dll.
700 * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes
701 have to be enumerated. Workaround EnumProcessModules problem when
702 running under WOW64 and use NtQueryInformationProcess to fetch
705 2009-05-06 Corinna Vinschen <corinna@vinschen.de>
707 * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generate
710 * mkgroup.c: Accommodate ctype changes.
715 2009-05-04 Christopher Faylor <me+cygwin@cgf.cx>
717 * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if
718 find_on_path doesn't find the app on the path.
720 2009-05-04 Corinna Vinschen <corinna@vinschen.de>
722 * cygcheck.cc (usage): Fix option order and print.
724 2009-04-22 Christopher Faylor <me+cygwin@cgf.cx>
726 * strace.cc (create_child): Set CYGWIN=noglob when starting new process
727 so that Cygwin will leave already-parsed the command line alonw.
729 2009-04-15 Corinna Vinschen <corinna@vinschen.de>
731 * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
732 given. Do backslash to slash conversion for mixed paths after
733 handling \\?\ prefix.
735 2009-04-13 Dave Korn <dave.korn.cygwin@gmail.com>
737 * Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.
739 2009-04-07 Corinna Vinschen <corinna@vinschen.de>
741 * path.cc (readlink): Accommodate new UTF-16 symlinks.
743 2009-04-03 Kevin Buettner <kevinb@redhat.com>
745 * utils.sgml: Various syntactical and semantical fixes.
746 * cygcheck.cc (usage): Fix --find-package explanation.
748 2009-03-26 Yaakov Selkowitz <yselkowitz@cygwin.com>
750 * utils.sgml (passwd -R): Remove references to CYGWIN="server".
752 2009-03-24 Corinna Vinschen <corinna@vinschen.de>
754 * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
755 * strace.cc (proc_child): Ditto.
756 * ldd.cc: Remove now useless undef wcscasecmp.
758 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
760 * passwd.c (usage): Change description for -d option according to
763 * utils.sgml: Add missing description for passwd -d option.
765 2009-03-23 Corinna Vinschen <corinna@vinschen.de>
767 * passwd.c (caller_is_admin): New function to test if calling user
768 is an administrator by inspecting user token.
769 (main): Drop fetching caller info from logonserver. Only fetch
770 server from environment when trying to change password for own
771 account. Drop admin check entirely in case of doing account
772 maintainance. Otherwise replace check for admin by result of
773 caller_is_admin call.
775 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
777 * passwd.c (main): Always get logonserver from environment and
778 use when fetching user info for caller.
780 2009-03-22 Corinna Vinschen <corinna@vinschen.de>
782 * ldd.cc: Fix compiler warning.
784 * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
785 (main): Call setlocale. Fix a bug in fetching the logon server from
788 2009-03-18 Christopher Faylor <me+cygwin@cgf.cx>
792 2009-03-17 Christopher Faylor <me+cygwin@cgf.cx>
794 * ldd.cc (load_dll): Start helper program rather than ldd.exe.
795 (set_entry_point_break): Rename from get_entry_point.
796 (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing
797 specific dll name if we're looking at a dll.
798 (report): Always dump dlls on process exit. Don't allow thread
799 creation. Accommodate get_entry_point rename.
800 (start_process): Start process with DEBUG_ONLY_THIS_PROCESS.
801 (longopts): Eliminate "dll" option.
804 2009-03-17 Corinna Vinschen <corinna@vinschen.de>
805 Christopher Faylor <me+cygwin@cgf.cx>
807 * ldd.cc: Use wide character Win32 paths throughout.
808 (load_dll): Fix size expression (add fn) in realloc.
810 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
812 * ldd.cc (longopts): Add --dll option.
813 (get_module_filename): Generalized wrapper function which avoid path
815 (load_dll): Handle special-case of inspecting a DLL.
816 (start_process): Accept an output parameter "isdll". Detect when file
817 to start is a DLL and start a wrapper instead.
818 (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
819 everything before the DLL itself first appears. (This is not strictly
820 correct and should be fixed eventually)
821 (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let
822 captive ldd process terminate normally. Pass dll info to
823 print_dlls_and_kill_inferior.
824 (main): Handle special-case "--dll" option by loading the DLL and
827 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
829 * path.cc (from_fstab): Use wcstombs/mbstowcs instead of
830 WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
832 2009-03-14 Corinna Vinschen <corinna@vinschen.de>
834 * wide_path.h (class wide_path): New class to convert Windows path
835 to WCHAR win32 path, including long path conversion if necessary.
836 * cygcheck.cc: Use class wide_path throughout to call Win32 functions
837 taking potentially long filenames.
838 (display_error): Use snprintf rather than sprintf.
839 (display_error_fmt): Ditto.
840 (dump_sysinfo): Use FindFirstFileW/FindNextFileW.
841 * cygpath.cc: Use class wide_path throughout to call Win32 functions
842 taking potentially long filenames.
843 (get_device_name): Raise buffer size to take long pathnames.
844 (get_short_paths): Convert to using GetShortPathNameW.
845 (get_short_name): Ditto.
846 (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW.
847 (get_long_name): Convert to using GetLongPathNameW.
848 (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX.
849 (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t
850 Win32 path name and drop long pathname prefix if possible.
851 (main): Call setlocale to accommodate wide char/multibyte conversions.
853 2009-03-14 Christopher Faylor <me+cygwin@cgf.cx>
855 * ldd.cc: Rework to detect missing DLLs.
856 (start_process): Change to expect windows filename as input.
857 (tocyg): New function - convert cygwin fn to windows fn.
858 (print_dlls_and_kill_inferior): Accept extra argument denoting whether
859 to open input and look for nonexistent DLLs. Use tocyg to convert
860 filename and pass it to start_process.
861 (report): Flag when an DLL-not-found exception occurs and pass this
862 information to print_dlls_and_kill_inferior.
863 (filelist): New structure.
864 (saw_file): New function.
865 (dump_import_directory): Ditto.
867 (skip_dos_stub): Ditto.
868 (get_directory_index): Ditto.
869 (process_file): Ditto.
871 2009-03-09 Corinna Vinschen <corinna@vinschen.de>
873 * utils.sgml: Fix typo.
875 2009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
877 * cygcheck.cc (usage): Fix typo.
879 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
881 * utils.sgml: Set example prompt to "$" throughout. Don't use "/"
882 as example cygdrive prefix. Remove reference to -u and -s options.
883 Add an example using the -o flag.
885 2009-03-02 Corinna Vinschen <corinna@vinschen.de>
887 * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
890 2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
892 * Makefile.in: Add DESTDIR functionality.
894 2009-01-29 Corinna Vinschen <corinna@vinschen.de>
896 * cygcheck.cc (dump_sysinfo): Evaluate and print state of
897 obcaseinsensitive kernel flag.
899 2009-01-21 Corinna Vinschen <corinna@vinschen.de>
901 * passwd.c: Remove CYGWIN=server requirement from usage text.
903 2009-01-17 Corinna Vinschen <corinna@vinschen.de>
905 * Makefile.in: Fix copyright date.
906 * cygcheck.cc (scan_registry): Take additional parameter and add code
907 to avoid recursion in Wow6432Node subkey. Rename variable cygnus to
908 cygwin. Scan for "Cygwin" instead of for "cygnus" substring.
909 (dump_sysinfo): Drop unused calls to scan_registry. Drop scanning
912 2009-01-16 Corinna Vinschen <corinna@vinschen.de>
914 * cygcheck.cc (dump_sysinfo): Raise size of osname. Add Windows 7
915 and Windows 2008 R2 as recognized OSes. Update products array to
916 the latest documented list.
918 2009-01-09 Christopher Faylor <me+cygwin@cgf.cx>
920 * ldd.cc: New file. First stab at implementing ldd-like functionality
922 * Makefile.in (CYGWIN_BINS): Add ldd.
923 (ldd.exe): Use -lpsapi.
925 2009-01-05 Pierre Humblet <Pierre.Humblet@ieee.org>
927 * cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
929 2008-12-30 Pierre Humblet <Pierre.Humblet@ieee.org>
931 * cygcheck.cc (pretty_id): Quote the path for popen.
932 (dump_sysinfo_services): Ditto.
934 2008-12-16 Corinna Vinschen <corinna@vinschen.de>
936 * utils.sgml: Fix typo in passwd screen text.
938 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
940 * passwd.c (main): Put how to delete the registry password on its own
941 line in passwd -R output.
943 2008-12-13 Christopher Faylor <me+cygwin@cgf.cx>
945 * utils.sgml: Convert some backslashes to slashes.
947 2008-11-26 Corinna Vinschen <corinna@vinschen.de>
949 * passwd.c (longopts): Add --reg-store-pwd option.
950 (opts): Add -R option.
951 (usage): Add text for -R/--reg-store-pwd option.
952 (main): Fix size of local user and password string arrays.
954 * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
956 2008-10-29 Christopher Faylor <me+cygwin@cgf.cx>
958 * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything
961 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
963 * mingw: Set sawcfile when -xc* is detected. Extend list of detected
966 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
968 * mingw: Add more checks to allow more varied use.
970 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
972 * mingw: Use a better method to find where mingw directory lives.
974 2008-10-11 Christopher Faylor <me+cygwin@cgf.cx>
976 * mingw: New front-end script to control building of MinGW files
977 without using the deprecated -mno-cygwin option.
978 * Makefile.in: Use mingw front-end.
980 2008-09-12 Christopher Faylor <me+cygwin@cgf.cx>
982 * cygcheck.cc (pathlike::check_existence): Remove class name from
984 (display_internet_error): Use proper format specifier for DWORD.
985 (environ): Remove unneeded declaration.
986 (main): Use brace around nested if to avoid an overly-helpful compiler
988 * dump_setup.cc (parse_filename): Reorganize nested if to avoid an
989 overly-helpful compiler warning.
990 * path.cc (GUID_shortcut): Use braces around part of initializer which
992 (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a
994 (struct opt): Make static.
995 * ps.cc (main): Reorganize nested if to avoid an overly-helpful
997 * regtool.cc: Make some anonymous structs static to avoid a compiler
999 * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
1001 * strace.cc (add_child): Use proper format specifier for DWORD.
1002 (remove_child): Ditto.
1003 (proc_child): Ditto.
1005 2008-08-27 Christopher Faylor <me+cygwin@cgf.cx>
1007 * cygcheck.cc (nuke): Use malloc rather than alloca for environment
1009 (load_cygwin): Ditto.
1010 * dump_setup.cc (parse_filename): Cosmetic changes.
1011 (get_packages): Ditto.
1013 2008-08-25 Corinna Vinschen <corinna@vinschen.de>
1015 * mkgroup.c (enum_local_groups): Don't skip printing groups when
1016 print_current is set and group SID is not curr_pgrp.
1017 (enum_groups): Ditto.
1018 (main): Fix condition when SYSTEM group gets printed.
1019 * mkpasswd.c (enum_users): Don't skip printing users when print_current
1020 is set and user SID is not curr_user.
1021 (main): Allow printing standard accounts even when print_current is set.
1023 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
1025 * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
1026 if a group exists, rather than just allocating a buffer and going ahead.
1028 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
1030 * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
1031 as argument when LookupAccountXXX failed.
1032 (enum_groups): Ditto.
1034 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
1036 * mkgroup.c (enum_local_groups): Return failure if looking for a single
1037 group succeeded. Add comment.
1039 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
1041 * mkgroup.c (main): Keep correctly track of optional arguments.
1042 * mkpasswd.c (main): Ditto.
1044 2008-08-18 Corinna Vinschen <corinna@vinschen.de>
1046 * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
1047 Keep track of optional argumnts and fix up optind afterwards.
1048 * mkpasswd.c (main): Ditto.
1050 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
1052 * cygcheck.cc (print_version): Update copyright dates.
1054 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
1056 * mkpasswd.c (main): Avoid printing system accounts when a single user
1057 name has been requested.
1059 2008-08-17 Christopher Faylor <me+cygwin@cgf.cx>
1061 * Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet
1063 * mkgroup.c: Change all global variables and most functions to static.
1064 (enum_local_groups): Add a print_current parameter to control whether
1065 entries for everything should be printed or just the current user.
1066 (enum_groups): Ditto.
1067 (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL
1068 deference when no command line arguments are specified. Accommodate
1069 argument changes to above functions. Avoid printing SYSTEM account
1070 when print_current is specified. Issue error when extra stuff is found
1071 on the command line.
1072 * mkpasswd.c: Change all global variables and most functions to static.
1073 (enum_users): Add a print_current parameter to control whether entries
1074 for everything should be printed or just the current user.
1075 (main): Move call fetch_current_user_sid earlier to avoid a NULL
1076 deference when no command line arguments are specified. Accommodate
1077 argument change to above function. Avoid printing standard accounts
1078 when print_current is specified. Issue error when extra stuff is found
1079 on the command line.
1081 2008-08-15 Corinna Vinschen <corinna@vinschen.de>
1083 * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
1084 group SID from user token.
1085 (current_group): Move up in file. Move fetching primary group SID to
1086 fetch_current_pgrp_sid.
1087 (enum_local_groups): Check if current SID is the same as current user's
1089 (enum_groups): Ditto.
1090 (main): Call fetch_current_pgrp_sid before enumerating groups. Call
1091 current_group only if current group hasn't been enumerated already.
1092 * mkpasswd.c (fetch_current_user_sid): New function to fetch current
1093 user SID from user token.
1094 (current_user): Move fetching current user SID to
1095 fetch_current_user_sid.
1096 (enum_users): Check if current SID is the same as current user's SID.
1097 (main): Call fetch_current_user_sid before enumerating users. Call
1098 current_user only if current user hasn't been enumerated already.
1100 2008-08-13 Corinna Vinschen <corinna@vinschen.de>
1102 * mount.cc (NT_MAX_PATH): Define.
1103 (longopts): Rename mount-commands option to mount-entries.
1104 (opts): Remove removed options.
1105 (struct opt): Move up in file to allow using it in usage.
1106 (usage): Change text for --mount-entries option. Remove
1107 -X option. Add valid options output.
1108 (main): Remove handling -b option.
1109 (convert_spaces): New static function to convert spaces to "\040"
1111 (mount_entries): Renamed from mount_commands. Rewrite to emit
1112 /etc/fstab compatible output.
1113 (show_cygdrive_info): Print "nouser" rather than "system".
1114 * umount.cc (longopts): Remove remove-all-mounts,
1115 remove-cygdrive-prefix, remove-system-mounts, system and user options.
1116 (opts): Remove A, c, s, S, u options.
1117 (usage): Remove text for all removed options.
1118 (main): Remove handling for all removed options.
1119 (remove_all_mounts): Remove.
1120 (remove_all_system_mounts): Remove.
1121 (remove_cygdrive_prefix): Remove.
1122 * utils.sgml: Fix mount and umount documentation. Move description
1123 of (cyg,not)exec options to mount table section.
1125 2008-08-04 Christopher Faylor <me+cygwin@cgf.cx>
1127 * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears
1128 when cygwin1.dll is unloaded.
1130 2008-07-30 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
1132 * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
1134 2008-07-27 Christopher Faylor <me+cygwin@cgf.cx>
1136 * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with
1139 2008-07-25 Christopher Faylor <me+cygwin@cgf.cx>
1141 * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
1142 (oopts): Use boolean constants for slightly increased clarity.
1144 * configure.in: Remove apparently unneeded program_transfer_name code.
1145 * configure: Regenerate.
1147 2008-07-24 Corinna Vinschen <corinna@vinschen.de>
1149 * utils.sgml: Remove useless text.
1151 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
1153 * mkgroup.c (main): Fix test for duplicate domain/machine request.
1154 * mkpasswd.c (main): Ditto.
1156 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
1158 * mkgroup.c: Rework to allow per-domain/per-machine id_offset.
1159 Add -b option to skip builtin groups.
1160 (main): Simplify code.
1161 * mkpasswd.c: Rework to allow per-domain/per-machine id_offset.
1162 (main): Simplify code.
1163 * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options.
1164 Add mkgroup -b option.
1166 2008-07-23 Corinna Vinschen <corinna@vinschen.de>
1168 * mkgroup.c: Consolidate variable names.
1169 (enum_unix_groups): New function.
1170 (print_special): Use LookupAccountSidW instead of LookupAccountSidA.
1171 (current_group): Ditto.
1172 (usage): Add -U option.
1173 (longopts): Add --unix option.
1174 (opts): Add -U option.
1175 (main): Handle -U option. Call enum_unix_groups if set.
1176 * mkpasswd.c: Consolidate variable names.
1177 (current_user): Use LookupAccountSidW instead of LookupAccountSidA.
1178 (enum_unix_users): New function.
1179 (usage): Add -U option.
1180 (longopts): Add --unix option.
1181 (opts): Add -U option.
1182 (main): Handle -U option. Call enum_unix_groups if set.
1183 * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
1185 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
1187 * mkgroup.c (enum_groups): Create full qualified groupname using
1188 domain or servername, depending on printing domain or machine accounts.
1189 * mkpasswd.c (enum_users): Ditto for users.
1191 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
1193 * mkgroup.c (main): Remove special root group code. Only print
1194 SYSTEM group in case of printing local machine or local domain groups.
1196 2008-07-22 Corinna Vinschen <corinna@vinschen.de>
1198 * Makefile.in (cygcheck.exe): Link against ntdll.
1199 * bloda.cc: Use statically linked functions throughout.
1200 * cygpath.cc: Drop 9x considerations.
1201 * mkgroup.c: Revamp. Redefine -l and -d options to take optional
1202 machine and domain parameters. Redefine -c to work always, using
1203 token information. Add -L, -D, -C to create unique groupnames in
1204 domain\group syntax. Add -S option to define domain\group separator
1205 char. Ignore -u and -s options.
1206 * mkpasswd.c: Revamp. Redefine -l and -d options to take optional
1207 machine and domain parameters. Redefine -c to work always, using
1208 token information. Add -L, -D, -C to create unique usernames in
1209 domain\user syntax. Add -S option to define domain\user separator
1210 char. Ignore -g and -s options. Prefer to take homedir from $HOME
1211 over $HOMEDRIVE/$HOMEPATH.
1212 * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options.
1213 (getmntent): Accomodate throughout.
1214 * ps.cc: Fix copyright dates.
1215 * utils.sgml: Fix text for mkgroup and mkpasswd.
1217 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
1219 * mount.cc (do_mount): Remove MOUNT_ENC code.
1220 (oopts): Remove "managed" option.
1221 (mount_commands): Drop "managed" handling.
1222 * path.cc (oopts): Remove "managed" option.
1223 (getmntent): Remove MOUNT_ENC code.
1225 2008-07-17 Corinna Vinschen <corinna@vinschen.de>
1227 * utils.sgml: Add id's to all examples.
1229 2008-07-09 Corinna Vinschen <corinna@vinschen.de>
1231 * mkgroup.c: Use statically linked functions throughout, except for
1232 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1233 Use defines instead of constants throughout.
1234 (MAX_SID_LEN): Define.
1235 (load_netapi): Just load DsGetDcNameW pointer.
1238 (enum_local_users): Take server name and use in Net... call.
1239 (DBGSID): Define datastructure.
1240 (MAX_BUILTIN_SIDS): Define.
1241 (builtin_sid_list): Define global sid list.
1242 (builtin_sid_cnt): Define counter for global sid list.
1243 (enum_local_groups): Take server name and use in Net... and Lookup...
1244 calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to
1245 NetLocalGroupEnum. Check for duplicate builtin groups.
1246 (enum_users): Take server name and use in Net... call.
1247 (usage): Change text slightly.
1248 (print_version): Fix copyright.
1249 (main): Call enum_local_groups for domains as well.
1250 * mkpasswd.c: Use statically linked functions throughout, except for
1251 DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout.
1252 Use defines instead of constants throughout.
1253 (MAX_SID_LEN): Define.
1254 (load_netapi): Just load DsGetDcNameW pointer.
1255 (uni2ansi): Use wcstombs.
1256 (current_user): Replace "unused_by_nt/2000/xp" by
1258 (enum_users): Ditto.
1259 (print_version): Fix copyright.
1261 2008-05-22 Corinna Vinschen <corinna@vinschen.de>
1263 * setfacl.c (setfacl): Change from void to int. Return 2 in case of
1265 (main): Return with error code from setfacl.
1267 2008-05-15 Corinna Vinschen <corinna@vinschen.de>
1269 * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.
1273 2008-03-23 Corinna Vinschen <corinna@vinschen.de>
1275 * mount.cc (usage): Mark -s and -u as ignored.
1276 (print_version): Simplify printing copyright dates.
1277 (main): Remove default_flag. Dont set flags on -s and -u options.
1278 (mount_commands): Drop handling -s and -u options.
1280 2008-03-22 Corinna Vinschen <corinna@vinschen.de>
1282 * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
1283 * path.cc: Fetch mount points from fstab files instead of from
1284 registry. Use adapted functions copied from Cygwin DLL.
1285 (mnt_t): Drop issys member. Define as "mnt_t" instead of "struct mnt_t"
1287 (max_mount_entry): New variable.
1288 (unconvert_slashes): Move to earlier location in file. Make inline.
1290 (get_cygdrive0): Remove.
1291 (get_cygdrive): Remove.
1292 (skip_ws): New function.
1294 (conv_fstab_spaces): Ditto.
1295 (read_flags): Ditto.
1296 (from_fstab_line): Ditto.
1298 (from_fstab): Ditto.
1300 (read_mounts): Drop old registry code. Fetch
1301 "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key. Use
1302 rootdir extracted from module path as fallback. Call from_fstab for
1303 nouser and user mount points.
1304 (setmntent): Check max_mount_entry to test if read_mounts must be
1306 (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
1308 2008-03-16 Brian Dessent <brian@dessent.net>
1310 * path.cc: Include malloc.h for alloca.
1311 (is_symlink): Rewrite. Just read the whole file in memory rather
1312 than by parts. Account for an ITEMIDLIST if present, as well as
1313 the new style of Cygwin shortcut supporting targets > MAX_PATH.
1315 2008-03-12 Corinna Vinschen <corinna@vinschen.de>
1317 * cygpath.cc (do_sysfolders): Use cygwin_conv_path.
1318 (do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list.
1319 * dumper.cc (main): Use cygwin_conv_path. Allocate target path
1321 * mkpasswd.c (current_user): Use cygwin_conv_path.
1322 (enum_users): Ditto.
1323 * ps.cc (NT_MAX_PATH): Define.
1324 (main): Use cygwin_conv_path.
1325 * regtool.cc (find_key): Ditto. Allocate target path dynamically.
1328 2008-03-11 Brian Dessent <brian@dessent.net>
1330 * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
1333 2008-03-11 Brian Dessent <brian@dessent.net>
1335 * cygcheck.cc (dirname): New static function.
1336 (find_app_on_path): Use SYMLINK_MAX. Resolve symlink relative
1337 to link's location. Adjust to the fact that cygpath already
1338 normalizes its return value.
1339 * path.cc (rel_vconcat): Add cwd parameter, and use it instead
1340 of calling GetCurrentDirectory() if possible. Rename throughout.
1341 (vcygpath): Rename from cygpath and accept cwd and va_list. Pass
1342 cwd on to rel_vconcat().
1343 (cygpath_rel): New front end for vcygpath.
1345 * path.h (cygpath_rel): Declare.
1346 (SYMLINK_MAX): Define to 4095.
1348 2008-03-09 Brian Dessent <brian@dessent.net>
1350 * Makefile.in (install): Don't install the testsuite.
1352 2008-03-08 Brian Dessent <brian@dessent.net>
1354 * Makefile.in: Add a 'check' target that builds and runs
1355 testsuite.exe from path-testsuite.o and testsuite.o.
1356 * path.cc: Include testsuite.h.
1357 (struct mnt): Change to a mnt_t typedef and don't define
1358 mount_table when TESTSUITE is defined.
1359 (find2): Don't include when TESTSUITE is defined to avoid warning.
1360 (get_cygdrive0): Ditto.
1361 (get_cygdrive): Ditto.
1362 (read_mounts): Provide empty implementation when TESTSUITE is
1364 (vconcat): Use the isslash macro.
1365 (unconvert_slashes): New helper to convert to backslashses.
1366 (rel_vconcat): Handle relative paths more gracefully.
1367 (cygpath): Skip a leading "./" sequence. Avoid double-slashes.
1368 Normalize final output to backslashes and remove redundant path
1370 * testsuite.cc: New file implementing testsuite driver.
1371 * testsuite.h: New header implementing harness mount table and
1374 2008-03-08 Brian Dessent <brian@dessent.net>
1376 * Makefile.in: Reorganize considerably, using GNU make's
1377 static pattern rules and target-specific variables.
1379 2008-02-28 Corinna Vinschen <corinna@vinschen.de>
1381 * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entries
1382 for LocalService and NetworkService accounts. Change comments.
1384 2008-01-13 Corinna Vinschen <corinna@vinschen.de>
1386 * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
1387 first. Load kernel32.dll earlier. Make osname a buffer. Simplify
1388 Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up
1389 non-Vista version info. Exit early if not on NT.
1391 2007-12-29 Dave Korn <dave.korn@artimi.com>
1393 * bloda.cc (enum bad_app): Add BYTEMOBILE.
1394 (dodgy_app_detects[]): Add FILENAME entry to detect bmnet.dll.
1395 (big_list_of_dodgy_apps[]): Add description for BYTEMOBILE.
1397 2007-12-20 Brian Dessent <brian@dessent.net>
1399 * Makefile.in (cygcheck.exe): Don't link to ntdll.
1400 * bloda.cc (pNtQuerySystemInformation): Add.
1401 (pRtlAnsiStringToUnicodeString): Add.
1402 (get_process_list): Use function pointers for NT functions.
1403 (dump_dodgy_apps): Skip dodgy app check on non-NT platforms.
1404 Use GetProcAddress for NT-specific functions.
1406 2007-12-07 Corinna Vinschen <corinna@vinschen.de>
1408 * regtool.cc (opts): Add missing 'W'.
1410 2007-12-06 Corinna Vinschen <corinna@vinschen.de>
1412 * ps.cc: Include limits.h.
1413 (main): Set file name buffer size to PATH_MAX. Use progname or
1414 progname_long member of struct external_pinfo dependent of the value of
1415 the struct's version member.
1417 2007-08-31 Dave Korn <dave.korn@artimi.com>
1419 * mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum
1420 call so that it will automatically size returned buffer sufficiently.
1422 2007-08-03 Dave Korn <dave.korn@artimi.com>
1424 * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjusting
1425 dependency-filtering $(wordlist ...) call appropriately. Link ntdll.
1426 (bloda.o): New rule to build bloda.o
1427 * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps().
1428 * bloda.cc: New file implements detection of applications from the
1429 Big List Of Dodgy Apps.
1431 2007-07-24 Corinna Vinschen <corinna@vinschen.de>
1433 * COPYING.dumper: New file.
1434 * dumper.cc: Change license to plain GPLv2 + later.
1436 * parse_pe.cc: Ditto.
1438 2007-07-23 Christopher Faylor <me+cygwin@cgf.cx>
1440 * strace.cc (create_child): Don't convert a path from cygwin format
1441 unless it has a slash.
1443 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1445 * strace.cc (usage): Add missing description for -q.
1447 2007-07-09 Christopher Faylor <me+cygwin@cgf.cx>
1449 * Makefile.in (kill.exe): Remove reliance on libiberty.
1450 * kill.cc (strsigno): New function patterned after libiberty but using
1451 newly exported cygwin array.
1453 2007-06-03 Christopher Faylor <me+cygwin@cgf.cx>
1455 * cygcheck.cc (pathlike): New class.
1456 (paths): Redefine as type pathlike.
1457 (display_error): Declare a few different ways to allow more flexible
1459 (display_error_fmt): New function for those cases where C++ just isn't
1461 (add_path): Rewrite to allocate pathlike paths. Always tack on a
1462 trailing slash since that's what everyone who uses it wants. NULL
1463 terminate the path list. Register "it's a system path" field.
1464 (init_path): Call add_path with info regarding whether path is a system
1466 (pathlike::check_existence): Move into pathlike class. Accept file and
1467 extension arguments to build up path on the fly. Modify other
1469 (find_on_path): Constify return value and appropriate arguments.
1470 Eliminate short-circuit for fully-qualified paths. Simplify loop which
1472 (already_did): Constify argument.
1473 (track_down): Ditto. Regularize some error messages.
1474 (find_app_on_path): Ditto.
1475 (cygcheck): Constify argument. Use 20th century string handling
1477 (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case".
1478 Accommodate change of paths to pathlike.
1479 * path.cc (isslash): Rename from SLASH_P and use throughout.
1480 (rel_vconcat): Front-end to vconcat which prepends cwd to path before
1481 passing along for conversion to native windows.
1482 (cygpath): Remove "./" test. Call rel_vconcat if filename appears to
1485 2007-05-29 Pedro Alves <pedro_alves@portugalmail.pt>
1487 * dumper.cc (dumper::prepare_core_dump): Record a phdr for each section.
1489 2007-05-29 Corinna Vinschen <corinna@vinschen.de>
1491 * cygpath.cc (do_options): Allow outputflag combined with other
1492 basic flags. Only check options_from_file_flag if reading options
1494 (main): Check for NULL argz vector. Don't free argz vector prematurely.
1495 Don't force flag combination in !options_from_file_flag case.
1497 2007-05-23 Corinna Vinschen <corinna@vinschen.de>
1499 * cygpath.cc: Include argz.h.
1500 (options_from_file_flag): Move from main to global static variable.
1502 (do_sysfolders): Rename from dowin and accommodate throughout.
1503 Don't exit from here.
1504 (do_pathconv): Rename from doit and accommodate throughout.
1505 (print_version): Change copyright.
1506 (do_options): New function, centralizing option processing.
1507 Rework checking options for correctness.
1508 (action): New function, centralizing calling worker functions.
1509 (main): Simplify. Move option processing to do_options. Move calling
1510 worker functions to action. Rework getting arguments from files.
1512 2007-03-30 Mark Mitchell <mark@codesourcery.com>
1514 * utils/cygpath.cc (get_long_path_name_w32impl): Close handles returned
1517 2007-03-30 Christopher Faylor <me@cgf.cx>
1519 * mount.cc (main): Turn dos file warnings off since we know what we're
1522 2007-02-22 Corinna Vinschen <corinna@vinschen.de>
1524 * ipcs.c (_POSIX2_LINE_MAX): Drop definition.
1526 2007-02-20 Corinna Vinschen <corinna@vinschen.de>
1528 * cygcheck.cc (dump_sysinfo): Add "not supported" to osname on 9x
1529 machines. Drop "not supported" for Vista. Drop "Longhorn" text
1532 2007-01-09 Christian Franke <franke@computer.org>
1534 * cygpath.cc (usage): Add -O and -F, remove tabs.
1535 (get_special_folder): New function.
1536 (get_user_folder): New function.
1537 (dowin): Add -O and -F, better -D, -P error handling.
1538 (main): Add -O and -F.
1539 * utils.sgml (cygpath): Document -O and -F.
1541 2006-12-21 Corinna Vinschen <corinna@vinschen.de>
1543 * dumper.cc: Include ansidecl.h before including bfd.h to woraround
1544 a problem with the order in which system include files are included.
1546 2006-12-11 Christopher Faylor <me@cgf.cx>
1548 * dumper.cc: Add an include to accommodate new include/elf usage.
1550 2006-12-10 Christopher Faylor <me+cygwin@cgf.cx>
1552 * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and
1553 pass POSIX path directly - this avoids a cygwin DLL warning.
1555 2006-10-21 Corinna Vinschen <corinna@vinschen.de>
1557 * regtool.cc (key_type): Drop.
1559 (value_type): Replace key_type. Use REG_xxx values directly.
1560 Accomodate change throughout.
1561 (longopts): Add --dword, --dword-le, --none, --qword and --hex options.
1562 (opts): Add -d, -D, -n, -Q and -x options.
1563 (types): Array to convert REG_xxx into strings.
1564 (hex): New variable to keep value of --hex option.
1565 (usage): Accomodate new options. Print only the necessary by default.
1566 Only be verbose in case of -h/--help option.
1567 (cmd_list): Use key separator from -K option when printing.
1568 Print value type when verbose option is given. Handle so far not
1569 handled REG_xxx types.
1570 (cmd_set): Avoid SEGV due to missing argument. Handle so far not
1571 handled REG_xxx types.
1572 (cmd_get): Handle --binary option type agnostic. Handle so far not
1573 handled REG_xxx types.
1574 (main): Handle new options.
1576 2006-10-19 Corinna Vinschen <corinna@vinschen.de>
1578 * regtool.cc (longopts): Add --wow32 option.
1579 (opts): Add -W option.
1580 (usage): Add text for --wow32/-W option.
1581 (main): Handle --wow32/-W option.
1582 * utils.sgml: Document the new -W option.
1584 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1586 * regtool.cc (KEY_WOW64_64KEY): Drop definition. Instead define
1587 WINVER to 0x0502 before including windows.h.
1589 2006-10-16 Corinna Vinschen <corinna@vinschen.de>
1591 * regtool.cc (KEY_WOW64_64KEY): Define.
1592 (longopts): Add --wow64 option.
1593 (opts): Add -w option.
1594 (wow64): New variable to control usage of KEY_WOW64_64KEY access flag.
1595 (usage): Add text for --wow64/-w option.
1596 (print_version): Fix copyright.
1597 (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx.
1598 (cmd_add): Use wow64 value in call to RegCreateKeyEx.
1599 (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function
1601 (cmd_remove): Load and use regDeleteKeyEx when wow64 is set.
1602 (main): Handle --wow64/-w option.
1603 * utils.sgml: Document the new -w option.
1605 2006-10-05 Igor Peshansky <pechtcha@cs.nyu.edu>
1607 * cygcheck.cc (get_word, get_dword): Move to path.cc.
1608 (LINK_EXTENSION): New macro.
1609 (check_existence): New static function.
1610 (find_on_path): Check for symbolic links if asked.
1611 (dll_info): New error handling.
1612 (track_down): Only call dll_info() for executables, display
1613 an error for symlinks, and print magic number for others.
1614 (find_app_on_path): New static function.
1615 (cygcheck, dump_sysinfo): Call find_app_on_path() instead of
1617 * path.cc (cmp_shortcut_header): New static function.
1618 (get_word, get_dword): Moved from cygcheck.cc.
1619 (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New
1621 (is_exe, is_symlink, readlink): New functions.
1622 * path.h (is_exe, is_symlink, readlink): Declare.
1623 (get_word, get_dword): Ditto.
1625 2006-09-12 Christopher Faylor <cgf@timesys.com>
1627 * Makefile.in: Fix -ntdll typo.
1629 2006-09-11 Eric Blake <ebb9@byu.net>
1631 * cygcheck.cc (main): Restore POSIXLY_CORRECT before displaying user's
1634 2006-08-03 Corinna Vinschen <corinna@vinschen.de>
1636 * path.cc (vconcat): Don't convert backslahes to slashes.
1637 (cygpath): Return native path with all backslashes.
1639 2006-08-02 Corinna Vinschen <corinna@vinschen.de>
1641 * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.
1642 * cygpath.cc: Include DDK headers.
1643 (RtlAllocateUnicodeString): New static inline function.
1644 (get_device_name): New static function to evaluate DOS path from
1646 (get_device_paths): New function to do the same for path lists.
1647 (doit): Call get_device_paths/get_device_name where appropriate.
1649 2006-07-30 Ilya Bobir <ilya@po4ta.com>
1651 * cygpath.cc (get_long_name): Fallback to get_long_path_name_w32impl.
1653 2006-07-27 Corinna Vinschen <corinna@vinschen.de>
1655 * cygpath.c (get_long_name): Cover the case that GetLongPathName
1656 doesn't return valid information for non-existant files. Just return
1657 incoming filename in that case.
1659 2006-07-03 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
1661 * Makefile.in: Build setmetamode.exe.
1662 * setmetamode.c: New file.
1664 2006-05-24 Christopher Faylor <cgf@timesys.com>
1666 * configure.in: Update to newer autoconf.
1667 (thanks to Steve Ellcey)
1668 * configure: Regenerate.
1669 * aclocal.m4: New file.
1671 2006-05-24 Christopher Faylor <cgf@timesys.com>
1673 * strace.cc (proc_child): Propagate return code from child process.
1677 2006-03-03 Christian Franke <franke@computer.org>
1679 * regtool.cc (options): Add 'binary'.
1680 (usage): Document 'load|unload|save' and '-b'.
1681 (find_key): Add 'options' parameter, add load/unload.
1682 (cmd_set): Add KT_BINARY case.
1683 (cmd_get): Add hex output in KT_BINARY case.
1684 (cmd_load): New function.
1685 (cmd_unload): New function.
1686 (set_privilege): New function.
1687 (cmd_save): New function.
1688 (commands): Add load, unload and save.
1690 * utils.sgml (regtool): Document it.
1692 2006-02-17 Corinna Vinschen <corinna@vinschen.de>
1694 * cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrect
1696 (doit): Create mixed filename after converting to short or long pathname
1699 2006-02-17 Jerry D. Hedden <jerry@hedden.us>
1701 * ps.cc (main): Set aflag if -p option is given.
1703 2006-02-16 Jerry D. Hedden <jerry@hedden.us>
1705 * ps.cc (longopts): Add --process option.
1706 (opts): Add -p option.
1707 (usage): Mention -p/--process option.
1708 (main): Handle -p option.
1709 * utils.sgml: Describe -p/--process option.
1711 2006-02-15 Igor Peshansky <pechtcha@cs.nyu.edu>
1713 * regtool.cc (usage): Clarify help for "-K".
1715 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1717 * cygcheck.cc (find_on_path): Update copyright text.
1719 2006-02-08 Corinna Vinschen <corinna@vinschen.de>
1721 * cygcheck.cc (find_on_path): Create copy of rv on successful access
1722 check, since rv can be reused in subsequent calls.
1724 2006-01-19 Christopher Faylor <cgf@timesys.com>
1726 * cygcheck.cc (common_paths): Add "patch".
1728 2006-01-19 Christopher Faylor <cgf@timesys.com>
1730 * cygcheck.cc (init_paths): Record first_nonsys_path.
1731 (find_on_path): Start on first nonsys path when !search_sysdirs.
1733 2006-01-18 Christopher Faylor <cgf@timesys.com>
1735 * Makefile.in (sysconfdir): Remove unneeded variable.
1737 * mkgroup.c: Replace ` with ' throughout.
1738 * mkpasswd.c: Ditto.
1742 2006-01-18 Dave Korn <dave.korn@artimi.com>
1744 * cygpath.cc (dowin): Remove stray debugging printf statement.
1746 2006-01-17 Corinna Vinschen <corinna@vinschen.de>
1748 * Makefile.in: Replace etcdir with sysconfdir.
1750 2006-01-13 Brian Dessent <brian@dessent.net>
1752 * Makefile.in (cygcheck.exe): Do not link against libwininet.a.
1753 * cygcheck.cc (pInternetCloseHandle): Define global function pointer.
1754 (display_internet_error): Use it.
1755 (package_grep): Attempt to load wininet.dll at runtime. Call WinInet
1756 API through function pointers throughout.
1758 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1760 * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.
1762 2006-01-13 Corinna Vinschen <corinna@vinschen.de>
1764 * cygcheck.cc (dump_sysinfo): Convert osname to const and remove casts
1765 in subsequent assignments. Recognize Longhorn/Vista and report as not
1766 yet supported. Recognize when running under WOW64 and report native
1767 CPU type. Slightly rearrange \n printing.
1769 2006-01-12 Christopher Faylor <cgf@timesys.com>
1771 * cygcheck.cc: Replace ` with ' throughout.
1773 2006-01-05 Christopher Faylor <cgf@timesys.com>
1775 * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent
1778 2005-12-29 Christopher Faylor <cgf@timesys.com>
1780 * strace.cc (nprocesses): Make static global.
1781 (quiet): New variable.
1782 (strace_active): Ditto.
1783 (add_child): Increment nprocesses here. Don't add a child if it is
1784 already added (windows bug?). Report on child if not quiet.
1785 (get_child): Just return NULL if child not found.
1786 (remove_child): Report on child if not quiet.
1787 (attach_process): Don't complain if given a windows process. Use
1788 windows pid in error.
1789 (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about.
1790 Handle _STRACE_CHILD_PID - attach to reported child when we get this.
1791 (proc_child): Move nprocesses to file scope.
1792 Report on exceptions.
1793 (longopts): Implement "--quiet".
1794 (opts): Implement "-q".
1795 (main): Manipulate quiet flag.
1796 * utils.sgml (strace): Add words describing '-q'.
1798 2005-12-29 Christopher Faylor <cgf@timesys.com>
1800 * cygcheck.cc (common_apps): Add crontab, vi, vim.
1802 2005-12-19 Igor Pechtchanski <pechtcha@cs.nyu.edu>
1804 * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".
1806 2005-12-14 Christopher Faylor <cgf@timesys.com>
1808 * cygcheck.cc (common_apps): Add a few more binaries to look for.
1810 2005-12-05 Christopher Faylor <cgf@timesys.com>
1812 * strace.cc (show_usecs): Renamed from 'usecs'.
1813 (main): Use show_usecs rather than usecs. Toggle delta if '-u' is
1815 (handle_output_debug_string): Avoid printing microsecond timestamp if
1817 * utils.sgml (strace): Add words to describe '-u'.
1819 2005-11-22 Brian Dessent <brian@dessent.net>
1821 * Makefile.in: Link cygcheck with libwininet.a.
1822 * cygcheck.cc: Add includes.
1823 (grep_packages): New global variable.
1824 (display_internet_error): New function.
1825 (safe_chars): New global variable.
1827 (package_grep): New function.
1828 (usage): Reword --help output for clarity. Document new argument.
1829 (longopts): Add 'package-query' option.
1830 (opts): Add 'p' option, reorder to be consistent with 'longopts'.
1831 (main): Accommodate new option.
1832 * utils.sgml (cygcheck): Update --help output. Document new -p option.
1834 2005-09-22 Corinna Vinschen <corinna@vinschen.de>
1836 Align error message handling to mkpasswd's error messages throughout.
1837 * mkgroup.c (print_win_error): Create macro calling ...
1838 (_print_win_error): ... this function created from former
1839 print_win_error. Move up in source.
1840 (PDOMAIN_CONTROLLER_INFOW): Define return type of DsGetDcNameW.
1841 (dsgetdcname): New function pointer for DsGetDcNameW.
1842 (load_netapi): Get DsGetDcNameW address.
1843 (main): If DsGetDcNameW is available, use it.
1844 * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of
1846 (dsgetdcname): New function pointer for DsGetDcNameW.
1847 (load_netapi): Get DsGetDcNameW address.
1848 (main): If DsGetDcNameW is available, use it. Rename local variable
1849 domain_name_specified to domain_specified as in mkgroup.c.
1851 2005-09-08 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
1853 * regtool.cc: Extend copyright-years.
1854 (print_version): Ditto.
1855 (cmd_list): Don't depend on terminating '\0' being present on
1857 (cmd_get): Don't attempt to read more than present, but keep
1858 extra space for terminating '\0'. Really output REG_BINARY.
1860 (cmd_set): Include trailing '\0' in string's length.
1862 2005-08-18 Corinna Vinschen <corinna@vinschen.de>
1864 * passwd.c (longopts): Add --logonserver option.
1865 (opts): Add -d option.
1866 (GetPW): Add server parameter which is given to Net functions.
1870 (usage): Add description for -d/--logonserver option.
1871 (main): Add option handling for -d/--logonserver. Use LOGONSERVER
1872 environment variable content for server to contact, unless
1873 -d/--logonserver option is given. If both is missing, use NULL.
1875 2005-08-16 Brian Dessent <brian@dessent.net>
1877 * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.
1878 Avoid extraneous cygrunsrv invocation if 'verbose' is true.
1880 2005-08-03 Corinna Vinschen <corinna@vinschen.de>
1882 * mount.cc (longopts): Fix typo which disallows --options option.
1884 2005-07-19 Christopher Faylor <cgf@timesys.com>
1885 Eric Blake <ebb9@byu.net>
1887 * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
1889 2005-07-05 Eric Blake <ebb9@byu.net>
1891 * cygcheck.cc (track_down, cygcheck): Return true on success.
1892 (main): Reflect cygcheck failures in exit status.
1894 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
1896 * parse_pe.c (exclusion::sort_and_check): Remove crude cast.
1898 2005-05-30 Corinna Vinschen <corinna@vinschen.de>
1900 * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
1901 Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server
1902 and Datacenter Server. Report when running in terminal server session.
1904 2005-05-27 Christopher Faylor <cgf@timesys.com>
1906 * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with
1908 * strace.cc (load_cygwin): Ditto.
1910 2005-05-22 Brian Dessent <brian@dessent.net>
1912 * cygcheck.cc (dump_sysinfo_services): Add new function that uses
1913 new cygrunsrv options to dump service info.
1914 (dump_sysinfo): Call dump_sysinfo_services if running under NT.
1915 Change 'Cygnus' to 'Cygwin' in output.
1917 2005-05-20 Christopher Faylor <cgf@timesys.com>
1919 * cygcheck.cc (load_cygwin): Remove debugging statement.
1921 2005-05-20 Christopher Faylor <cgf@timesys.com>
1923 * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not
1925 (nuke): Fix off by one error in allocation of environment variable.
1926 (load_cygwin): Always set PATH even if cygwin environment is empty.
1928 2005-05-16 Christopher Faylor <cgf@timesys.com>
1930 * cygcheck.cc (cygwin_internal): Define as a "C" function.
1931 * strace.cc (cygwin_internal): Ditto.
1933 * cygpath.cc (print_version): Update copyright.
1935 2005-05-15 Christopher Faylor <cgf@timesys.com>
1937 * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.
1939 2005-05-15 Corinna Vinschen <corinna@vinschen.de>
1941 * cygcheck.cc (load_cygwin): Don't touch $PATH for now.
1942 (print_version): Fix copyright.
1943 * strace.cc (print_version): Ditto.
1945 2005-05-13 Christopher Faylor <cgf@timesys.com>
1947 * mount.cc (mount_commands): Display "-X" option when appropriate.
1949 2005-05-08 Christopher Faylor <cgf@timesys.com>
1951 * cygcheck.cc (nuke): New function.
1952 (load_cygwin): New function.
1953 (main): Use load_cygwin to load argv/envp from cygwin environment, if
1956 2005-05-08 Christopher Faylor <cgf@timesys.com>
1958 * strace.cc (attach_process): Don't call load_cygwin(). Assume that
1959 it's already happened.
1961 (main): Set argv from cygwin environment, if it exists.
1963 2005-05-01 Christopher Faylor <cgf@timesys.com>
1965 * mount.cc (usage): Clarify action of -m option.
1967 2005-04-29 Dave Korn <dave.korn@artimi.com>
1969 * path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'
1970 flags to mnt_opts string if present in mount flags.
1972 2005-04-20 Brian Dessent <brian@dessent.net>
1974 * utils.sgml (mount): Clarify setting cygdrive prefix for user
1977 2005-03-24 Brian Dessent <brian@dessent.net>
1979 * cygcheck.cc (init_paths): Use full path instead of "." for the
1980 current directory. Do not add "." if present in $PATH.
1981 (dump_sysinfo): Skip placeholder first value of paths[].
1983 2005-03-07 Christopher Faylor <cgf@timesys.com>
1985 * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't
1986 pad signal name with spaces.
1988 2005-03-07 Corinna Vinschen <corinna@vinschen.de>
1990 * strace.cc (handle_output_debug_string): Fix compiler warning.
1992 2005-03-06 Christopher Faylor <cgf@timesys.com>
1994 * cygpath.cc (usage): Pass in one more copy of program_name to printf
1997 2005-02-27 Christopher Faylor <cgf@timesys.com>
1999 * regtool.cc (opts): The argument to 'K' is not optional.
2000 (main): Revert previous change. Just let getopt deal with missing
2003 2005-02-27 Christopher Faylor <cgf@timesys.com>
2005 * regtool.cc (main): Avoid a SEGV when nothing follows -K.
2007 2005-02-26 Christopher Faylor <cgf@timesys.com>
2009 * kill.cc (getsig): Avoid buffer overflow when generating a signal name.
2011 * strace.cc (handle_output_debug_string): Make error a little more specific.
2013 2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2015 * cygpath.cc (usage): Clarify help output to indicate acceptance
2016 of multiple file names as arguments.
2018 2005-01-16 Christopher Faylor <cgf@timesys.com>
2020 * ps.cc (main): Eliminate use of PID_ZOMBIE.
2021 * strace.cc (main): Recognize new option for displaying hex value of
2023 (handle_output_debug_string): Prepend output with hex value of strace
2024 message if -H is specified.
2026 2005-01-11 Pierre Humblet <pierre.humblet@ieee.org>
2028 * mkpasswd.c (print_win_error): Transform into macro.
2029 (_print_win_error): Upgrade former print_win_error by
2031 (current_user): Call _print_win_error.
2032 (enum_users): Print name in case of lookup failure.
2033 (enum_local_groups): Ditto.
2035 2004-11-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2037 * cygcheck.cc (eprintf): New function.
2039 2004-11-16 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2041 * cygcheck.cc (find_on_path): Clear show_error and/or print_failed
2042 parameters to display_error.
2043 (rva_to_offset): Ditto.
2045 (track_down): Ditto.
2047 2004-11-13 Pierre Humblet <pierre.humblet@ieee.org>
2049 * kill.cc (forcekill): Do not pass negative pids to
2050 cygwin_internal. Check if sig == 0. Improve error messages.
2051 (main): Make pid a long long and distinguish between pids, gpids
2052 (i.e. negative pids) and Win9x pids.
2054 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2056 * cygcheck.cc: Change "keyeprint" to "display_error" throughout.
2058 2004-11-11 Christopher Faylor <cgf@timesys.com>
2060 * cygcheck.cc (main): Allow a '-l' without an additional argument.
2062 2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2064 * cygcheck.cc (keyeprint): New optional parameters: show_error and
2067 2004-10-31 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2069 * cygcheck.cc (get_dword): Fix errormessage.
2070 (cygwin_info): Ditto.
2071 (track_down): Ditto.
2072 (check_keys): Ditto.
2074 2004-10-27 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2076 * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
2079 2004-10-25 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2081 * cygcheck.cc (dump_sysinfo): Add leading newline before legend for
2084 2004-10-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2086 * cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
2087 ``unk''. Use single puts. Add leading newline. Line up equal-signs.
2089 2004-10-20 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2091 * cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list.
2092 Change ``Used'' to ``Free'' in helptext-title for drive-list.
2094 2004-10-18 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2096 * cygcheck.cc (pretty_id): Don't let i become negative. Fix
2099 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2101 * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
2103 2004-10-17 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2104 Christopher Faylor <cgf@timesys.com>
2106 * cygcheck.cc (pretty_id): Allocate space for trailing '\0' in uid and
2109 2004-10-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2110 Christopher Faylor <cgf@timesys.com>
2112 * cygcheck.cc (pretty_id): Don't exit on id error. Fix size
2115 2004-10-14 Christopher Faylor <cgf@timesys.com>
2116 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2118 * cygcheck.cc (pretty_id): Correct column calculations. Abort if id is
2121 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2123 * cygcheck.cc (add_path): Don't leak memory when path is already in
2126 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2128 * cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount
2131 2004-10-10 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2133 * cygcheck.cc (dump_sysinfo): Don't warn about empty path components,
2136 2004-10-06 Corinna Vinschen <corinna@vinschen.de>
2138 * strace.cc (_impure_ptr): Remove.
2140 2004-10-06 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2142 * cygcheck.cc (dump_sysinfo): Warn about empty path components.
2144 2004-10-04 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2146 * cygcheck.cc (pretty_id): Close pipe.
2148 2004-09-23 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2150 * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
2153 2004-09-22 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2154 Corinna Vinschen <corinna@vinschen.de>
2156 * dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
2158 2004-09-15 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
2160 * getfacl.c (main): Correct layout when nopt is set.
2162 2004-07-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2164 * mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
2166 (load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
2167 (enum_local_groups,enum_groups): Add disp_groupname parameter.
2168 Load info for disp_groupname if specified.
2169 (usage): Add description of "-g/--group" option.
2170 (longopts,opts): Add "-g/--group" option.
2171 (main): Process "-g/--group" option.
2172 * utils.sgml (mkgroup): Add description of "-g/--group" option
2174 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2176 * dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
2177 instead of _raw_size.
2178 (dumper::write_core_dump): Likewise.
2179 * parse_pe.cc (select_data_section): Likewise.
2181 2004-05-29 John Paul Wallington <jpw@gnu.org>
2183 * ssp.c (usage): Add missing linefeed.
2185 2004-05-27 Christopher Faylor <cgf@alum.bu.edu>
2187 * kill.cc (listsig): Fix "kill -l" segv. NSIG includes Signal 0, so we
2188 need to avoid calling strtosigno with NSIG - 1.
2190 2004-03-21 Christopher Faylor <cgf@redhat.com>
2192 * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
2194 2004-03-15 Christopher Faylor <cgf@redhat.com>
2196 * cygpath.cc (usage): Don't issue helpful message if -i is used.
2197 (from Igor Pechtchanski)
2199 2004-03-13 Rob Siklos <rob2@siklos.ca>
2201 * kill.cc (get_debug_priv): New function.
2202 (forcekill): Call get_debug_priv before trying to kill process.
2204 2004-02-24 Christopher Faylor <cgf@redhat.com>
2206 * cygpath.cc (long_options): Add "mode" option.
2208 (usage): Report on new option.
2209 (report_mode): New function.
2210 (main): Implement -M option.
2212 2004-02-20 Christopher Faylor <cgf@redhat.com>
2214 * Makefile.in (build_dumper): Detect missing iconv library.
2216 * cygpath.cc (dowin): Report on filename conversion errors.
2219 * strace.cc (main): Use symbolic constant for _STRACE_ALL when setting
2222 2004-02-14 Corinna Vinschen <corinna@vinschen.de>
2224 * ssp.c (opts): Add leading '+' to force posixly correct behaviour.
2226 2004-02-11 Corinna Vinschen <corinna@vinschen.de>
2228 * strace.cc (opts): Add leading '+' to force posixly correct
2230 (main): Revert POSIXLY_CORRECT manipulations.
2232 2004-02-10 Christopher Faylor <cgf@redhat.com>
2234 * strace.cc (main): Guard against previous setting of POSIXLY_CORRECT.
2236 2004-02-10 Christopher Faylor <cgf@redhat.com>
2238 * strace.cc: Update copyrights.
2239 * cygcheck.cc: Update copyrights.
2241 2004-02-10 Christopher Faylor <cgf@redhat.com>
2243 * strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
2244 * cygcheck.cc (main): Ditto.
2246 2004-01-23 Christopher Faylor <cgf@redhat.com>
2248 * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
2250 2004-01-22 Corinna Vinschen <corinna@vinschen.de>
2252 * cygpath.cc (dowin): Revert accidental checkin from November.
2254 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
2256 * mkgroup.c (main): Print "root" group with local admins group sid
2259 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
2261 * Makefile.in: Add rules to build ipcrm and ipcs.
2262 * ipcrm.c: New file.
2265 2003-11-14 Corinna Vinschen <corinna@vinschen.de>
2267 * mkgroup.c: Avoid compiler warnings throughout.
2268 * mkpasswd.c: Ditto.
2271 2003-11-07 Mark Blackburn <marklist@fangorn.ca>
2273 * cygpath.cc (main): Allow multiple pathnames on command line.
2275 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2277 * passwd.c (PrintPW): Turn around meaning printed for "Password not
2278 required" option to be in line with Windows meaning.
2279 (main): Use more appropriate 1008 option when calling
2280 NetUserSetInfo to change flag values.
2282 2003-11-04 Corinna Vinschen <corinna@vinschen.de>
2284 * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).
2285 (version): Bump version number to 1.5.
2286 (longopts): Add -c, -C, -e, -E, -p, -P options.
2288 (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and
2289 UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress
2290 correct system password settings just because the account has admin
2292 (usage): Define as "noreturn" function. Restructure and rephrase
2293 output. Accommodate new options.
2294 (print_version): Fix copyright dates.
2295 (main): Accommodate new options for setting UF_PASSWD_CANT_CHANGE,
2296 UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
2298 2003-10-17 Christopher Faylor <cgf@redhat.com>
2300 * cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2302 2003-09-20 Christopher Faylor <cgf@redhat.com>
2304 * kill.cc (main): Allow negative pids (indicates process groups).
2306 2003-09-17 Christopher Faylor <cgf@redhat.com>
2308 * parse_pe.cc (exclusion::sort_and_check): Make error message a little
2309 more explicit and ignore (hopefully) harmless region overlap.
2311 2003-09-13 Christopher Faylor <cgf@redhat.com>
2313 * kill.c (forcekill): Wait for process to terminate even if
2314 TerminateProcess says it failed.
2316 2003-09-11 Christopher Faylor <cgf@redhat.com>
2318 * Makefile.in: Tweak mingw libz.a detection to make it more reliably
2319 detect when libz.a is not available.
2321 2003-09-11 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2323 * cygcheck.cc (dump_only): New global variable.
2324 (usage): Add "--dump-only" option, fix "--verbose" line.
2325 (longopts, opts): Add "--dump-only" option.
2326 (main): Process the "--dump-only" flag. Add new semantic check.
2327 Pass dump_only information to dump_setup().
2329 2003-09-11 Corinna Vinschen <corinna@vinschen.de>
2331 * getfacl (main): Remove extern declaration of optind.
2332 * setfacl (main): Remove extern declaration of optarg and optind.
2334 2003-09-10 Christopher Faylor <cgf@redhat.com>
2336 * Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
2337 * cygcheck.cc: Just include <getopt.h> rather than cygwin version.
2338 (pretty_id): Avoid compiler warnings.
2339 * cygpath.cc (usage): Ditto.
2341 2003-09-10 Christopher Faylor <cgf@redhat.com>
2343 * Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
2344 * path.cc: Include more path info in cygwin-specific includes since the
2345 cygwin directory is no longer included by default.
2347 2003-09-10 Christopher Faylor <cgf@redhat.com>
2349 * Makefile.in: More fixups to adjust for the fact that mingw_getopt.o
2352 2003-09-10 Christopher Faylor <cgf@redhat.com>
2354 * Makefile.in: Remove references to getopt since it is now part of
2357 2003-09-08 Christopher Faylor <cgf@redhat.com>
2359 * Makefile.in: Rename libz.h -> zlib.h.
2361 2003-09-07 Christopher Faylor <cgf@redhat.com>
2363 * Makefile.in: Detect existence of mingw zlib headers and libraries.
2364 Build cygcheck without package checking if they are unavailable.
2365 * dump_setup.cc: Generate dummy zlib macros when zlib is not available.
2366 (open_package_list): Use zlib functions to uncompress package lists.
2367 Return gzFile rather than FILE *.
2368 (check_package_files): Change fp to gzFile to accommodate zlib
2369 functions. Use gzgets to read from package file. Use gzclose to close
2371 (package_list): Ditto.
2372 (package_find): Ditto.
2374 2003-09-05 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2376 * dump_setup.cc (check_package_files): Don't fail on empty package.
2378 2003-09-01 AJ Reins <reinsaj@yahoo.com>
2380 * mount.cc (mount_commands): Ensure user mode is actually user mode and
2381 not the default system mode.
2383 2003-08-31 Christopher Faylor <cgf@redhat.com>
2385 * kill.cc (forcekill): Silence some compiler warnings.
2387 2003-08-31 Christopher Faylor <cgf@redhat.com>
2389 * Makefile.in: Oops. Put the '...' in the right place.
2391 2003-08-31 Christopher Faylor <cgf@redhat.com>
2393 * Makefile.in: Display "..." when not-verbose.
2395 * kill.cc (forcekill): Default to entered pid when pinfo fails. Issue
2396 some warnings when things don't work.
2398 2003-08-17 David Rothenberger <daveroth@acm.org>
2400 * dump_setup.cc (check_package_files): Strip leading / and ./ from
2403 2003-08-16 David Rothenberger <daveroth@acm.org>
2405 * dump_setup.cc (package_find): Don't stop searching on missing
2407 (package_list): Ditto.
2409 2003-08-16 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2411 * dump_setup.cc: (package_list): Make output terse unless
2412 verbose requested. Fix formatting.
2413 (package_find): Ditto.
2415 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2417 * cygcheck.cc (main): Fix some formatting and help text printing.
2419 2003-08-15 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2421 * cygcheck.cc (find_package,list_package): New global
2423 (usage): Add "--find-package" and "--list-package" options,
2425 (longopts, opts): Add "--find-package" and "--list-package"
2427 (main): Process the "--find-package" and "--list-package"
2428 flags. Add new semantic checks. Add calls to find_package()
2430 * dump_setup.cc: Fix header comment.
2431 (match_argv): Change return type to int to distinguish
2432 between real matches and default ones.
2433 (open_package_list): New static function.
2434 (check_package_files): Factor out opening the package list
2435 file into open_package_list().
2436 (get_packages): New static function.
2437 (dump_setup): Factor out getting a list of packages into
2439 (package_list, package_find): New global functions.
2441 2003-08-15 Corinna Vinschen <corinna@vinschen.de>
2443 * regtool.cc (usage): Add missing linefeed. Move example to --help
2444 text. Fix forward slash description.
2446 2003-08-13 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2448 * dump_setup.cc (check_package_files): Fix extra '/' in filename.
2449 Resize command buffer. Fix buffer overflow bug.
2451 2003-08-09 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2452 Christopher Faylor <cgf@redhat.com>
2454 * dump_setup.cc (dump_setup): Check for the existence of the package
2455 list file. Rework slightly to use static buffer for popen commands.
2457 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2458 Christopher Faylor <cgf@redhat.com>
2460 * dump_setup.cc (version_len): New static variable.
2461 (could_not_access,directory_exists): New static function.
2462 (file_exists): Ditto.
2463 (check_package_files): Ditto.
2464 (dump_setup): Check the contents of each package if check_files is true
2465 and output the result in the "Status" column. Flush output after each
2468 2003-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2469 Christopher Faylor <cgf@redhat.com>
2471 * dump_setup.cc (dump_setup): Remove redundant null check. Add
2472 informative message if package info not found.
2474 2003-07-26 Christopher Faylor <cgf@redhat.com>
2476 * mount.cc (do_mount): Issue warning when using managed mount option on
2477 non-empty directory.
2479 2003-07-25 Christopher Faylor <cgf@redhat.com>
2481 * configure.in: Use 'install-sh -c'.
2482 * configure: Regenerate.
2484 2003-07-25 Christopher Faylor <cgf@redhat.com>
2486 * configure.in: Always use install-sh.
2487 * configure: Regenerate.
2489 2003-07-03 Christopher Faylor <cgf@redhat.com>
2491 * mount.cc (struct opt): Remove posix option.
2493 2003-07-03 Christopher Faylor <cgf@redhat.com>
2495 * mount.cc (longopts): Add long "options" keyword.
2496 (opts): Add -o option.
2497 (usage): Display -o option.
2499 (concat3): New function.
2500 (main): Handle -o flag.
2502 2003-06-12 Christopher Faylor <cgf@redhat.com>
2504 * cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2506 2003-06-12 Christopher Faylor <cgf@redhat.com>
2508 * cygpath.cc: Throughout, always return error when GetShortPathName
2511 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2513 * mkpasswd.c (usage) Remove extra newline from description output.
2515 2003-04-26 Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2517 * cygcheck.cc (usage) Add description output.
2518 * cygpath.cc (usage) Add description output.
2519 * dumper.cc (usage) Add newline to description output.
2520 * kill.cc (usage) Add description output.
2521 * mkgroup.c (usage) Grammatical change to description output.
2522 * mkpasswd.c (usage) Grammatical change to description output.
2523 * mount.cc (usage) Add description output.
2524 * passwd.c (usage) Add description output.
2525 * ps.cc (usage) Add description output.
2526 * regtool.cc (usage) Add description output.
2527 * setfacl.c (usage) Remove extra newline from description output.
2528 * ssp.c (usage) Add description output.
2529 * strace.cc (usage) Add description output.
2530 * umount.cc (usage) Add description output.
2532 2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
2534 * mkpasswd.c (current_user): print uid and gid as unsigned.
2535 (enum_users): Ditto. Do not free servername.
2536 (usage): Update to allow several domains and improve -p.
2537 (main): On Win9x limit uids to 1000. Only print specials
2538 when -l is specified. Add a loop to allow several domains
2539 and free servername in the loop.
2540 * mkgroup.c (enum_groups): Do not free servername.
2541 (usage): Update to allow several domains. Change uid to gid.
2542 (main): Only print specials when -l is specified. Add a
2543 loop to allow several domains and free servername in the loop.
2545 2003-03-24 Christopher Faylor <cgf@redhat.com>
2547 * cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable
2550 2003-03-09 Corinna Vinschen <corinna@vinschen.de>
2552 * getfacl.c (username): Fix ambiguous printf calls.
2556 2003-03-04 Christopher Faylor <cgf@redhat.com>
2558 * Makefile.in (strace.exe): Include mingw_getopt.o in link line.
2559 * cygcheck.cc (print_version): Update copyright.
2560 * strace.cc (print_version): Ditto.
2561 (main): Allow cygwin paths for -o option.
2562 (create_child): Allow cygwin path as argv[0].
2563 * path.cc (path.cc): Allow UNC paths.
2565 2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
2567 * mkpasswd.cc (main): On Win95, output both a default line and a
2568 line for the current user (if known) with a pseudorandom uid. If
2569 the -u switch is given, produce a line for the specified user.
2570 * mkgroup.cc (main): On Win95 change the group name from "unknown" to
2573 2003-02-28 Christopher Faylor <cgf@redhat.com>
2575 * Makefile.in (cygcheck.o): Fix so that actual mingw include files are
2577 * cygcheck.cc (find_on_path): Translate from cygwin path when qualified
2579 (pretty_id): New function. Dump output of id command.
2580 (dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2582 2003-02-12 Christopher Faylor <cgf@redhat.com>
2584 * cygpath.cc (doit): Allocate more space for non-path filename.
2586 2003-02-07 Christopher Faylor <cgf@redhat.com>
2588 * dump_setup.cc (compar): Use case insensitive comparisons.
2589 (dump_setup): Calculate package_len based on already used "len". Don't
2590 bother with version_len.
2592 2003-02-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2594 * dump_setup.cc (dump_setup): Compute the longest package name
2595 and align columns properly.
2597 2003-02-06 Christopher Faylor <cgf@redhat.com>
2599 * cygcheck.cc (common_apps): Add some more apps.
2600 * path.cc (get_cygdrive): Correctly set system flag.
2602 2003-01-22 Corinna Vinschen <corinna@vinschen.de>
2604 * Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
2605 (MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2607 2003-01-15 Corinna Vinschen <corinna@vinschen.de>
2609 * mkgroup.c: Fix copyright date.
2610 * mkpasswd.c: Ditto.
2613 2003-01-09 Pierre Humblet <pierre.humblet@ieee.org>
2615 * setfacl.c (usage): Remove double ":" for mask and other.
2617 2003-01-07 Pierre Humblet <pierre.humblet@ieee.org>
2619 * mkpasswd.c (current_user): Create.
2620 (usage): Reorganize to support Win95/98/ME.
2621 (main): Add option for -c. Reorganize to parse options for
2622 Win95/98/ME and to call current_user. Add username in gecos field
2624 * mkgroup.c (enum_groups): Print gid with %u.
2625 (print_win_error): Create from passwd.cc.
2626 (current_group): Create.
2627 (usage): Reorganize to support Win95/98/ME.
2628 (main): Add option for -c. Reorganize to parse options for
2629 Win95/98/ME and to call current_group.
2631 2002-12-14 Pierre Humblet <pierre.humblet@ieee.org>
2633 * setfacl.c (main): Place a single : after other and mask.
2634 * getfacl.c (getaclentry): Allow both : and :: for other and mask.
2635 (main): Remove extraneous break.
2637 2002-11-25 Corinna Vinschen <corinna@vinschen.de>
2639 * mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.
2641 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2643 * setfacl.c (getperm): Set only `other' permission bits.
2644 (getaclentry): Set a_id to -1 by default.
2646 2002-11-24 Corinna Vinschen <corinna@vinschen.de>
2648 * getfacl.c (permstr): Use `other' permission bits for requesting
2651 2002-11-08 Corinna Vinschen <corinna@vinschen.de>
2653 * setfacl.c (usage): Add missing LF.
2655 2002-10-30 Christopher Faylor <cgf@redhat.com>
2657 * cygpath.cc (get_long_path_name_w32impl): Define similarly to
2659 (get_long_name): Correctly prototype GetLongPathName.
2660 (get_long_paths): Implement using get_long_name to cut down on code
2662 (doit): Do various things to make path output work predictably.
2664 2002-10-19 Christopher Faylor <cgf@redhat.com>
2666 * mount.cc (usage): Correctly report default mode.
2667 * strace.cc (main): Use strtoul as appropriate.
2669 2002-09-29 Christopher Faylor <cgf@redhat.com>
2671 * cygpath.cc (close_arg): Remove unused static.
2672 * mkgroup.c (enum_local_users): Avoid compiler warning.
2673 (enum_users): Ditto.
2674 * mkpasswd.c: Ditto throughout.
2675 * ssp.c: Ditto throughout.
2677 2002-09-18 Christopher Faylor <cgf@redhat.com>
2679 * cygcheck.cc: Include sys/time.h rather than time.h to avoid a
2682 2002-09-17 Christopher Faylor <cgf@redhat.com>
2684 * cygcheck.cc: Reorder includes to avoid compiler error.
2686 2002-09-15 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2688 * cygcheck.cc (print_version) Add final newline.
2689 * getfacl.c (print_version) Add final newline.
2690 * kill.cc (print_version) Add final newline.
2691 * mkgroup.c (print_version) Add final newline.
2692 * mkpasswd.c (print_version) Add final newline.
2693 * mount.cc (print_version) Add final newline.
2694 * passwd.c (print_version) Add final newline.
2695 * ps.cc (print_version) Add final newline.
2696 * regtool.cc (print_version) Add final newline.
2697 * setfacl.c (print_version) Add final newline.
2698 * ssp.c (print_version) Add final newline.
2699 * strace.cc (print_version) Add final newline.
2700 * umount.cc (print_version) Add final newline.
2702 2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2704 * cygpath.cc (options) New global variable.
2705 (main) Make short options global for easier change.
2706 (print_version) Add a missing newline.
2708 2002-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu>
2710 * regtool.cc (find_key): Add support for custom key separator.
2711 (usage): Document it.
2713 2002-08-02 Corinna Vinschen <corinna@vinschen.de>
2715 * mkgroup.c (main): Don't print an entry for "Everyone".
2716 * mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
2717 (main): Don't print an entry for "Everyone".
2719 2002-07-06 Christopher Faylor <cgf@redhat.com>
2721 * configure.in: Check for libiconv.a.
2722 * configure: Regenerate.
2723 * Makefile.in: Add libiconv.a to libraries required for dumper.exe.
2725 2002-07-06 Christopher Faylor <cgf@redhat.com>
2727 * Makefile.in: Use MINGW stuff from Makefile.common.
2729 2002-07-01 Corinna Vinschen <corinna@vinschen.de>
2731 * mkgroup.c: Add function pointers for functions from advapi32.dll.
2732 (load_netapi): Load used functions from advapi32.dll.
2733 (main): Use function pointers instead of statically linked functions
2736 2002-07-01 Christopher Faylor <cgf@redhat.com>
2738 * mount.cc (main): Ensure that mount_already_exists() also gets default
2739 flag that is passed to do_mount.
2741 2002-06-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2743 * cygpath.cc (long_options): Add "dos" and "mixed", correct "close",
2744 "file" and "type" to use NULL flag.
2745 (usage): Clean up usage output (more), accomodate new options.
2746 (main): Add --dos and --mixed options; accomodate all output forms in
2747 --type. Make UNIXy output default.
2749 2002-06-18 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2751 * cygpath.cc (usage): Clean up usage output.
2752 (dowin): Correct output of -t mixed for -ADHPSW options.
2754 2002-06-14 Corinna Vinschen <corinna@vinschen.de>
2756 * passwd.c: Rearrange includes to avoid unnecessary warnings.
2757 (GetPW): Add parameter to (dis)allow printing of Windows username.
2758 Use defines instead of numerical constants where possible.
2759 Try avoiding impersonation problem. Rearrange to print Windows
2760 username only if it's different from Cygwin username.
2761 (ChangePW): Use defines instead of numerical constants where possible.
2762 (main): Call GetPW with additional parameter. Change error text.
2764 2002-06-14 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2766 * passwd.c (GetPW): Handle case of user-edited /etc/passwd
2767 with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2769 2002-06-09 Christopher Faylor <cgf@redhat.com>
2771 * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2774 2002-06-09 Christopher Faylor <cgf@redhat.com>
2776 * mount.cc (main): Use default system/user flag for cygdrive stuff,
2778 (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2779 * umount.cc (remove_cygdrive_prefix): Ditto.
2780 (main): Use default system/user flag for cygdrive stuff, too.
2782 2002-06-08 Christopher Faylor <cgf@redhat.com>
2784 * mount.cc (opts): Remove '-i' option.
2787 (longopts): Remove --import-old-mounts option.
2789 2002-06-07 David Peterson <chief@mail.idrive.com>
2790 Christopher Faylor <cgf@redhat.com>
2792 * cygpath.cc: Add option to output windows paths in different formats:
2794 (main): Process options.
2795 (doit): Check new options flags.
2797 2002-06-06 Egor Duda <deo@logos-m.ru>
2799 * regtool.cc (Fail): Be more verbose.
2800 (find_key): Add support for remote registry access.
2801 (usage): Document it.
2802 * utils.sgml: Document it.
2804 2002-06-06 Christopher Faylor <cgf@redhat.com>
2806 * strace.cc (main): Make toggle a local variable.
2808 2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
2810 * strace.cc (toggle): New global variable.
2811 (error): Use exit instead of ExitProcess so that stdio buffers get
2813 (create_child): Remove command line error checking.
2815 (dotoggle): New function.
2816 (usage): Add entry for new option -T|--toggle. Alphabetize.
2817 (longopts): Add new option -T|--toggle.
2819 (main): Handle new -T|--toggle option. Move all command line checking
2820 here from other functions.
2821 * utils.sgml: Update section for strace.
2823 2002-06-05 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2825 * strace.cc (version): New global variable.
2826 (usage): Accommodate stdout output.
2827 (print_version): New function.
2829 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2831 * ssp.c (version): New global variable.
2834 (run_program): Correct cmd_line typos to cmdline.
2835 (usage): New function. Standardize usage output. Add ssp.txt to
2837 (print_version): New function.
2838 (main): Accommodate getopt.
2840 2002-06-03 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2842 * umount.cc (version): New global variable.
2843 (longopts): Accommodate new --version option.
2845 (usage): Standardize usage output.
2846 (print_version): New function.
2847 (main): Accommodate --help, --version options.
2849 2002-06-02 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2851 * regtool.cc (prog_name): New global variable.
2854 (usage): Standardize usage output. Rearrange/add descriptions.
2855 (print_version): New function.
2856 (main): Accommodate longopts and new --help, --version options. Add
2857 check for (_argv[optind+1] == NULL).
2859 2002-06-02 Christopher Faylor <cgf@redhat.com>
2861 * strace.cc (forkdebug): Make true by default.
2862 (attach_process): Use window pid if cygwin pid isn't available (yet).
2863 (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS,
2864 exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
2866 2002-05-30 Christopher Faylor <cgf@redhat.com>
2868 * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
2870 2002-05-29 Christopher Faylor <cgf@redhat.com>
2872 * mount.cc (main): Make -b the default.
2874 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2876 * ps.cc (main): Use uid or uid32 member of struct external_pinfo
2877 dependent of the value of the struct's version member.
2879 2002-05-29 Corinna Vinschen <corinna@vinschen.de>
2881 * ps.cc (main): Change print format for uid to unsigned. Use uid32
2882 member of struct external_pinfo instead of uid.
2884 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2886 * passwd.c (prog_name): New global variable.
2889 (usage): Standardize output. Accommodate new options.
2890 (print_version): New function.
2891 (main): Accommodate longopts and new --help, --version options.
2893 2002-05-28 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2895 * ps.cc (usage): Fix typo.
2897 2002-05-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2899 * ps.cc (prog_name): New global variable.
2902 (usage): New function.
2903 (print_version): New function.
2904 (main): Accommodate longopts and new --help, --version options.
2906 2002-05-26 Christopher Faylor <cgf@redhat.com>
2908 * strace.cc (attach_process): Don't tell process to start stracing
2910 (proc_child): Do it here, instead, after first debug event. This
2911 should work around inexplicable races with DebugActiveProcess.
2912 (dostrace): Pass any pid argument to proc_child.
2914 2002-05-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2916 * getfacl.c (usage): Standardize usage output. Change return type to
2918 (print_version): New function.
2919 (longopts): Added longopts for all options.
2920 (main): Accommodate new help and version options.
2922 2002-05-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2924 * mount.cc (version): New global variable.
2925 (usage): Standardize usage output. Accommodate new version option.
2926 (print_version): New function.
2927 (longopts): Accommodate new version option.
2931 2002-05-22 Corinna Vinschen <corinna@vinschen.de>
2933 * cygpath.cc (usage): Change usage output slightly.
2935 2002-05-20 Joerg Schaible <joerg.schaible@gmx.de>
2937 * cygpath.cc (main): Add option l to support conversion to
2938 Windows long file names. Refactured code for capital options.
2939 Support of options from file for capital options.
2940 (dowin): New function. Refactured from main.
2941 (doit): Call long path conversion.
2942 (get_long_name): New function.
2943 (get_long_paths): New function.
2944 (get_long_path_name_w32impl): New function. Reimplementation
2945 of Windows API function GetLongPathName (only 98/Me/2000/XP or
2947 (get_short_name): Call GetShortPathName only once.
2948 (get_short_paths): Fix calculating buffer size.
2949 * utils.sgml: Update cygpath section for l option.
2951 2002-05-18 Christopher Faylor <cgf@redhat.com>
2953 * strace.cc (add_child): Use calloc since new requires working
2955 (remove_child): Ditto for delete/free.
2957 2002-05-15 Mark Blackburn <marklist@fangorn.ca>
2959 * cygpath.cc (get_short_paths): Fix more error checking.
2960 (get_short_name): Ditto.
2962 2002-05-14 Joerg Schaible <joerg.schaible@gmx.de>
2964 * cygpath.cc (main): Add option H to show the Windows' profiles
2965 directory. Support short names for options DPSW. Clean up
2967 * utils.sgml: Update cygpath section for H option and s support.
2969 2002-05-14 Mark Blackburn <marklist@fangorn.ca>
2971 * cygpath.cc (get_short_paths): Fix error checking.
2973 2002-05-13 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2975 * kill.cc (prog_name): New global variable.
2976 (usage): Standardize usage output. Add descriptions.
2977 (print_version): New function.
2978 (longopts): Accommodate new version option.
2982 2002-05-13 Christopher Faylor <cgf@redhat.com>
2984 * kill.cc (listsig): Display numeric id when given symbolic input.
2986 2002-05-13 Christopher Faylor <cgf@redhat.com>
2988 * kill.cc (usage): Show new options. Allow specification of output
2990 (main): Implement 'h' option.
2992 2002-05-13 Christopher Faylor <cgf@redhat.com>
2994 * Makefile.in (kill.exe): Add as a specific target.
2995 * kill.cc (longopts): New.
2997 (get_sig): Accept const char * parameter. Return -1 on unknown signal.
2998 (test_for_unknown_sig): New function.
2999 (listsig): New function.
3000 (main): Use getopt_long for option parsing. Implement -l, and -s
3001 options. Use test_for_unknown_sig() to test for signal validity.
3003 * mount.cc (longopts): Make static.
3006 2002-05-12 Christopher Faylor <cgf@redhat.com>
3008 * mount.cc (do_mount): Default to non-exec option for remote drives.
3009 Report warnings before attempting a mount.
3010 (longopts): Add no-executable option.
3011 (mount_commands): Ditto.
3013 (usage): Ditto. Indicate that system mount is now the default.
3014 (main): Accommodate no-executable option. Make system mount the
3016 * umount.cc (usage): Indicate that system umount is now the default.
3017 (main): Make system umount the default.
3019 2002-05-07 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3021 * dumper.cc (usage): Standardize usage output. Generalize to allow use
3023 (longopts): New struct. Added longopts for all options.
3024 (print_version): New function.
3025 (main): Change getopt to getopt_long. Accommodate new help and version
3028 2002-03-29 Corinna Vinschen <corinna@vinschen.de>
3030 * mkgroup.c (main): Change call to exit() to a return statement.
3031 * mkpasswd.c (main): Ditto.
3033 2002-03-27 Joshua Daniel Franklin joshuadfranklin@yahoo.com
3035 * mkpasswd.c (usage): Simplify usage output. Generalize to allow use
3036 for help. Correct '?' typo to 'h'.
3037 (longopts): Add version option.
3038 (opts): Add 'v' version option.
3039 (print_version): New function.
3040 (main): Accommodate new version option. Accommodate usage parameter
3043 2002-03-19 Christopher Faylor <cgf@redhat.com>
3045 * mkgroup.c (usage): Use one just fprintf + string concatenation for
3047 (print_version): Add void to function type and update copyright.
3049 2002-03-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3051 * mkgroup.c (usage): Simplify usage output. Generalize to allow use
3052 for help. Correct '?' typo to 'h'.
3053 (longopts): Add version option.
3054 (opts): Add 'v' version option.
3055 (print_version): New function.
3056 (main): Accommodate new version option. Accommodate usage parameter
3057 changes. Use usage to output help message.
3059 2002-03-15 Corinna Vinschen <corinna@vinschen.de>
3061 * mkgroup.c (main): When generating group 513, check for computer's
3062 primary domain instead of current user's domain.
3064 2002-03-14 Corinna Vinschen <corinna@vinschen.de>
3066 * mkgroup.c (main): When generating group 513, check for domain SID
3067 if computer name isn't mapped to a SID.
3069 2001-03-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3071 * kill.cc (usage): Move to top of file.
3075 2002-03-06 Christopher Faylor <cgf@redhat.com>
3077 * cygcheck.cc: Reformat.
3079 2002-03-06 Christopher Faylor <cgf@redhat.com>
3081 * cygcheck.cc (longopts): Use correct short option for --version.
3083 2002-03-06 Christopher Faylor <cgf@redhat.com>
3085 * cygpath.cc: Reformat.
3087 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3089 * cygpath.cc (print_version): New function.
3090 (main): Accommodate new version function. Initialize 'o' to prevent
3093 2002-02-27 Christopher Faylor <cgf@redhat.com>
3095 * cygcheck.cc (main): Eliminate non-GNU formatting glitch.
3097 2002-02-27 Christopher Faylor <cgf@redhat.com>
3099 * ssp.c (help_desk): Fix compiler warning.
3101 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3102 Christopher Faylor <cgf@redhat.com>
3104 Change appropriate globals to statics throughout.
3105 * cygcheck.cc (usage): Simplify usage output. Generalize to allow use
3107 (longopts): Add version option.
3108 (opts): Add 'V" version option.
3109 (print_version): New function.
3110 (main): Accommodate new version option. Accommodate usage parameter
3111 changes. Use usage to output help message.
3113 002-02-19 Christopher Faylor <cgf@redhat.com>
3115 * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is
3117 (libbfd): Use -B rather than -L so that bfd from build directory is
3121 2002-02-15 Christopher Faylor <cgf@redhat.com>
3123 * mount.cc (usage): Fix typo in output.
3125 2002-02-14 Christopher Faylor <cgf@redhat.com>
3127 * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
3129 2002-01-31 Corinna Vinschen <corinna@vinschen.de>
3131 * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
3134 2002-01-30 Corinna Vinschen <corinna@vinschen.de>
3136 * passwd.cc (ChangePW): Add parameter to differ between called for
3137 checking old password and called for changing password. If called
3138 for checking old password, return non-zero only if password is surely
3140 (main): Call ChangePW() with additional parameter.
3142 2002-01-29 Christopher Faylor <cgf@redhat.com>
3144 * dump_setup.cc (parse_filename): Don't consider '_' part of the
3147 2002-01-28 Christopher Faylor <cgf@redhat.com>
3149 * cygcheck.cc: Fix typo. Remove uid_t kludge. Rely on kludge in
3150 sys/cygwin.h instead.
3151 * getfacl.c: Add include to remove warning.
3152 * mkgroup.c (main): Assign variables outside of parameter passing.
3153 This seems to eliminate some compiler warnings.
3155 2002-01-28 Christopher Faylor <cgf@redhat.com>
3157 * cygcheck.cc: Use specific cygwin includes, as required.
3159 2002-01-28 Christopher Faylor <cgf@redhat.com>
3161 * Makefile.in (MINGW_INCLUDES): Change cygwin include.
3162 * strace.cc: Use specific cygwin includes, as required.
3163 (load_cygwin): New function. Loads cygwin DLL, if necessary.
3164 (attach_process): Attaches strace to a running process.
3165 (dostrace): Accept pid argument. Attach to pid if supplied.
3166 (usage): Describe -p option. Correct system description.
3167 (longopts): Alphabetize.
3169 (main): Ditto. Handle -p option.
3171 2002-01-21 Christopher Faylor <cgf@redhat.com>
3173 * Makefile.in (CXXFLAGS): Ensure that important settings are preserved
3174 even when overriden by command line.
3176 2002-01-21 Christopher Faylor <cgf@redhat.com>
3178 * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
3179 * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning.
3180 (dump_sysinfo): Make variables unsigned to quiet g++ warnings.
3181 * strace.cc (version_string): Rename from SCCSid.
3182 (add_child): Remove unused variable.
3183 (version): Use version_string. Avoid use of fprintf.
3185 2002-01-21 DJ Delorie <dj@redhat.com>
3187 * Makefile.in: Use CXX instead of CC to compile C++ sources.
3189 2002-01-17 DJ Delorie <dj@redhat.com>
3191 * cygcheck.cc (already_did): Avoid default constructors, which may
3192 require exception support.
3194 2001-01-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
3196 * cygpath.cc (main): Add options to show Desktop and Start
3197 Menu's Programs directory for current user or all users.
3198 Move bulk of DPWS options outside the getopt case statement.
3199 * utils.sgml: Update cygpath section for ADPWS options.
3201 2002-01-15 Joerg Schaible <joerg.schaible@gmx.de>
3203 * cygpath.cc (doit): Empty file ignored using option -i.
3205 2002-01-15 Mark Bradshaw <bradshaw@crosswalk.com>
3207 * mkpasswd.c (print_win_error): Add a new function.
3208 (enum_users): Use print_win_error.
3209 (enum_local_groups): Ditto.
3212 2001-12-26 Jonathan Kamens <jik@curl.com>
3214 * cygpath.cc (doit): Detect and warn about an empty path. Detect and
3215 warn about errors converting a path.
3216 (main): Set prog_name correctly -- don't leave an extra slash or
3217 backslash at the beginning of it.
3219 Fri Dec 14 14:04:37 2001 Jason Tishler <jason@tishler.net>
3221 * mkpasswd.c (enum_users): Change to unconditionally use
3222 the --path-to-home option, if supplied by the user. Use default
3223 --path-to-home option value, if appropriate.
3224 (usage): Change usage statement to reflect new semantics.
3225 (main): Remove defaulting of the --path-to-home option.
3227 Fri Dec 14 12:10:39 2001 Jason Tishler <jason@tishler.net>
3229 * mkpasswd.c (opts): Add indication that '-p' option requires an
3232 2001-12-11 Christopher Faylor <cgf@redhat.com>
3234 * Makefile.in: Add define to CXXFLAGS.
3236 2001-12-03 Christopher Faylor <cgf@redhat.com>
3238 * cygcheck.cc (usage): Add -c description.
3239 * cygpath.cc (usage): Alphabetize options.
3240 * strace.cc (usage): Ditto.
3242 2001-11-21 Christopher Faylor <cgf@redhat.com>
3244 * path.cc (cygpath): Don't consider cygdrive stuff when trying to derive
3247 2001-11-20 Mark Bradshaw <bradshaw@staff.crosswalk.com>
3249 * mkpasswd.c: include lmerr.h
3250 (main): New -u option to allow specifying a
3251 specific user. If specified, groups aren't displayed and
3252 output is limited to only the specified user.
3253 (enum_users): If specific user is specified, via -u option,
3254 display only that user's record. With -u use NetUserGetInfo
3255 instead of NetUserEnum.
3256 (load_netapi): Added netusergetinfo.
3258 2001-11-15 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
3260 * strace.cc (main): Change getopt() to getopt_long().
3261 Add support for help and version info.
3262 Use new parse_mask() function for -m/--mask option.
3263 (longopts): Add long options structure.
3264 (opts): Move options string from getopts call to static var.
3265 (usage): Print usage information.
3266 (SCCSid): Version info.
3267 (version): New function for displaying version info.
3268 (parse_mask): New function supporting parsing of mnemonics,
3269 hex, and basic expressions in masks.
3270 (mnemonic2ul): New mnemonic parsing function.
3271 (tag_mask_mnemonic): New type.
3272 (mnemonic_table): New table of mnemonics for mnemonic2ul() to
3275 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3277 * cygcheck.cc (dump_sysinfo): Redefine output format slightly.
3278 Print correct build number on 9x/ME systems.
3280 2001-11-12 Christopher Faylor <cgf@redhat.com>
3282 * cygcheck.cc (main): Slight formatting tweak.
3284 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3286 * cygcheck.cc (dump_sysinfo): Add some more details.
3288 2001-11-12 Corinna Vinschen <corinna@vinschen.de>
3290 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string
3291 using OSVERSIONINFOEX information.
3293 2001-11-11 Christopher Faylor <cgf@redhat.com>
3297 2001-11-11 Christopher Faylor <cgf@redhat.com>
3299 * cygcheck.cc (scan_registry): Open registry with read-only access.
3300 (main): Reflect argument change for dump_setup.
3301 * dump_setup.cc (dump_setup): Add preliminary extra argument for future
3303 * path.cc (read_mounts): Open registry with read-only access.
3305 2001-11-11 Christopher Faylor <cgf@redhat.com>
3307 * cygcheck.cc (main): Display package info when '-s' is specified.
3308 * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort
3311 2001-11-11 Christopher Faylor <cgf@redhat.com>
3313 * dump_setup.cc: New file.
3314 * Makefile.in: Add info for dump_setup.o.
3315 * cygcheck.cc (main): Recognize '-c' option for checking setup
3317 * path.cc (cygpath): Read mount table if not loaded.
3319 2001-11-10 Christopher Faylor <cgf@redhat.com>
3321 * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.
3322 * path.cc: New file.
3323 * cygcheck.cc (init_paths): Use MS-DOS path syntax.
3324 (cygwin_info): Properly display cygwin version numbers. Prettify some
3326 (dump_sysinfo): Calculate max names of posix and ms-dos paths for
3329 2001-11-09 Corinna Vinschen <corinna@vinschen.de>
3331 * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
3333 2001-11-04 Corinna Vinschen <corinna@vinschen.de>
3335 * getfacl.c (username): New function.
3337 (usage): Ditto. Add more user friendly help text.
3338 (main): Add -n and --help option. Print names instead of IDs
3339 unless -n option is given.
3340 * setfacl.c (getperm): Tolerate whitespace and comment chars in input.
3341 (getaclentry): Fix several input string misdetections.
3342 (getaclentries): Allow - as input file name to read from stdin.
3343 Tolerate whitespace and comment chars in input.
3344 (usage): Add more user friendly help text.
3345 (main): Add --help option.
3347 2001-11-04 Egor Duda <deo@logos-m.ru>
3349 * strace.cc (main): New option '-w'. Start traced process in separate
3350 window. New option '-S x'. Flush buffered output every x seconds.
3351 (create_child): Start child process in new window, when requested.
3352 When requested, periodically flush debugging output.
3354 2001-10-24 Christopher Faylor <cgf@redhat.com>
3356 * Makefile.in: Remove EXEEXT consideration. We always need .exe
3359 2001-10-20 Corinna Vinschen <corinna@vinschen.de>
3361 * mkgroup.c: Avoid compiler warnings.
3362 (print_special): New function.
3363 (main): Print special accounts by calling print_special().
3364 * mkpasswd.c: Avoid compiler warnings.
3365 (enum_users): Print additional U-domain\username info in gecos
3366 field when SIDs are printed.
3367 (print_special): New function.
3368 (main): Print special accounts by calling print_special().
3370 2001-10-15 Christopher Faylor <cgf@redhat.com>
3372 * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
3374 2001-10-13 Christopher Faylor <cgf@redhat.com>
3376 * Makefile.in: Allow stdinc searching for dumper.
3378 Tue Oct 9 21:59:00 2001 Christopher Faylor <cgf@cygnus.com>
3380 * Makefile.in (MINGW_INCLUDES): Accommodate changes in Makefile.common.
3382 Sun Oct 7 23:06:39 2001 Christopher Faylor <cgf@cygnus.com>
3384 * kill.cc (main): Set exit value to 1 on invalid pid. Perform minor
3387 Fri Sep 21 20:40:30 2001 Christopher Faylor <cgf@cygnus.com>
3389 * Makefile.in (mingw_getopt.o): Ensure that newlib include directories
3392 Thu Sep 20 21:00:20 2001 Christopher Faylor <cgf@cygnus.com>
3394 * Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.
3396 Wed Sep 19 12:22:08 2001 Christopher Faylor <cgf@cygnus.com>
3398 * Makefile.in: Filter newlib includes from mingw compilation.
3400 2001-09-14 Egor Duda <deo@logos-m.ru>
3402 * dumper.cc (dumper::dumper): Print error code in case of error.
3403 (dumper::add_thread): Ditto.
3404 (dumper::collect_memory_sections): Ditto.
3405 (dumper::dump_memory_region): Ditto.
3406 (dumper::collect_process_information): Ditto.
3407 (print_section_name): Fix formatting.
3409 2001-09-13 Egor Duda <deo@logos-m.ru>
3411 * dumper.cc (main): Properly recognize negative pids (used by w9x).
3413 2001-09-09 Egor Duda <deo@logos-m.ru>
3415 * dumper.cc (main): Change command-line arguments format to be
3416 similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to
3417 CYGWIN environment variable to perform core dumping in case of
3421 Wed Sep 5 22:37:21 2001 Christopher Faylor <cgf@cygnus.com>
3423 * Makefile.in (dumper): Change logic for libbfd and libintl so that
3424 they will be found either in the build tree or the installed directory.
3425 * mkpasswd.c (enum_users): Add a comment as a password for NT.
3427 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3429 * mount.cc (mount_commands): Don't write /cygdrive/u mount points.
3431 2001-09-03 Michael A Chase <mchase@ix.netcom.com>
3433 * mount.cc (longopts): Add mount-commands to options list.
3434 (usage): Add mount-commands option.
3435 (mount_commands): New function. Write commands to recreate current
3438 Sat Sep 1 15:58:11 2001 Christopher Faylor <cgf@cygnus.com>
3440 * mount.cc (main): Eliminate excess arguments in printf.
3442 2001-08-30 Egor Duda <deo@logos-m.ru>
3444 * dumper.h: Update copyright notice.
3446 * dumper.cc: (dumper::print_core_section_list): New function.
3447 * dumper.h: (dumper::print_core_section_list): Declare it.
3448 * dumper.cc (print_section_name): New function.
3449 (dumper::collect_process_information): Augment debugging output.
3450 Stop debugee processing if it posts double exception.
3451 (usage): Fix typo in option name.
3453 Tue Aug 28 14:45:02 2001 Christopher Faylor <cgf@cygnus.com>
3455 * mount.cc (main): Issue correct warning for 'not enough arguments'.
3457 2001-08-14 Joerg Schaible <joerg.schaible@gmx.de>
3459 * cygpath.cc (main): Support -w for Windows (System) directories and
3460 return physical correct orthography for the Windows System dir.
3462 2001-07-14 Chris Genly <chgenly@alum.mit.edu>
3464 * regtool.cc (find_key): Handle keys with only one subkey.
3466 Wed Jun 27 22:46:10 2001 Christopher Faylor <cgf@cygnus.com>
3468 * regtool.cc (find_key): Revert previous change.
3470 Wed Jun 27 13:37:41 2001 Keith Starsmeare" <keith_starsmeare@yahoo.co.uk>
3472 * regtool.cc (find_key): Allow '/' as a synonym for '\\'.
3474 Fri Jun 15 00:49:21 2001 Christopher Faylor <cgf@cygnus.com>
3476 * mkpasswd.c (main): Output passwd file in binary mode so that there
3477 are no CRs in the file.
3478 * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive
3481 Tue May 1 10:50:48 2001 Christopher Faylor <cgf@cygnus.com>
3483 * mkpasswd.c (enum_users): Use /bin/bash as the default shell.
3486 Sat Apr 28 22:32:01 2001 Christopher Faylor <cgf@cygnus.com>
3488 * passwd.cc (ttymnam): New function.
3489 (main): Use ttynam() to report name of tty.
3491 2001-04-19 Egor Duda <deo@logos-m.ru>
3493 * dumper.cc (dumper::init_core_dump): Set architecture field in dump
3496 Mon Apr 16 15:08:00 2001 Corinna Vinschen <vinschen@redhat.com>
3498 * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
3500 (load_netapi): Load function pointers `netlocalgroupgetmembers'
3501 and `netgroupgetusers'.
3502 (enum_local_users): New function.
3503 (enum_local_groups): Call `enum_local_users' for each group if
3504 `print_users' is set.
3505 (enum_users): New function.
3506 (enum_groups): Call `enum_users' for each group if `print_users' is set.
3507 (usage): Add usage text for `-u/--users'.
3508 (longopts): Add option `--users'.
3509 (opts): Add option character `u'.
3510 (main): Set `print_users' according to option `-u/--users'.
3511 Call `enum_local_groups' and `enum_groups' with additional parameter
3514 2001-04-15 Michael A Chase <mchase@ix.netcom.com>
3516 * mount.cc (longopts): Add help to options list.
3517 (opts): Add 'h' to options string.
3518 * umount.cc (longopts): Add help to options list.
3519 (opts): Add 'h' to options string and change 'R' to 'A'.
3521 2001-04-13 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
3523 * mkgroup.c (enum_groups): Use RID + offset specified an additional
3525 (usage): Add description of -o option.
3526 (longopts, opts): Add specifications of -o/--id-offset option.
3527 (main): Add -o option. Invoke enum_groups with specified offset.
3528 * mkpasswd.c (enum_users): Just like mkgroup.c.
3529 (usage, longopts, opts): Ditto.
3530 (main): Add -o option. Invoke enum_users with specified offset only
3531 against domain accounts.
3533 2001-04-11 Egor Duda <deo@logos-m.ru>
3535 * mkgroup.c (uni2ansi): Use native method to convert from Unicode
3536 to multi-byte strings.
3537 * mkpasswd.c (uni2ansi): Ditto.
3538 (enum_users): Pass buffer size when converting string.
3539 (enum_local_groups): Ditto.
3540 * mkgroup.c (enum_groups): Ditto.
3541 (enum_local_groups): Ditto.
3543 Mon Apr 2 22:41:33 2001 Christopher Faylor <cgf@cygnus.com>
3545 * mount.cc (main): Use getopt_long for parsing arguments.
3546 (usage): Reformat, show long and short options.
3547 * umount.cc (main): Ditto, all of the above.
3549 Mon Apr 2 10:58:26 2001 Christopher Faylor <cgf@cygnus.com>
3551 * mount.cc (show_mounts): Change format string to more closely resemble
3552 UNIX when displaying mount table.
3554 Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
3556 * kill.cc (forcekill): Use dwProcessId when opening a process, not the
3559 Mon Mar 5 18:50:00 2001 Corinna Vinschen <vinschen@redhat.com>
3561 * getfacl.c: Add copyright hint.
3565 Tue Jan 09 10:26:23 2001 Tony Sideris <tonys1110@home.com>
3567 * regtool.cc (cmd_list): Add new registry display options.
3568 (cmd_list): Add code to implement -p, -k, and -l options.
3570 * regtool.cc (Fail): Add call to LocalFree to free memory allocated by
3573 Wed Jan 10 09:16:57 2001 Christopher Faylor <cgf@cygnus.com>
3575 * regtool.cc (translate): Ensure that 'c' is initialized.
3576 (cmd_set): Ditto for rv.