OSDN Git Service

* cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
[pf3gnuchains/pf3gnuchains4x.git] / winsup / utils / ChangeLog
1 2010-08-26  Corinna Vinschen  <corinna@vinschen.de>
2
3         * cygpath.cc (get_device_name): Prefer the \\.\X: DOS device for
4         harddisks, if available.
5
6 2010-08-21  Corinna Vinschen  <corinna@vinschen.de>
7
8         * ldd.cc (report): Drop long pathname considerations which result in
9         invalid path, now that this is done in cygwin_conv_path.
10
11 2010-08-13  Corinna Vinschen  <corinna@vinschen.de>
12
13         * mount.cc (from_fstab): Fix potentially fatal typo.
14
15 2010-08-11  Corinna Vinschen  <corinna@vinschen.de>
16
17         * mount.cc (do_mount): Don't treat "bind" mount as remote mount.
18         (mount_entries): Drop the "bind" option from output.
19         * utils.sgml (mount): Match examples to actual mount output.  Add
20         "bind" option and add example.
21
22 2010-08-10  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
23
24         * mingw: Use sysroot, if present, for mingw_dir.
25
26 2010-07-21  Corinna Vinschen  <corinna@vinschen.de>
27
28         * dump_setup.cc (tfx_chars): New WCHAR array, copied from Cygwin.
29         (transform_chars): New function, copied from Cygwin.
30         (simple_nt_stat): New function to check file existance using native
31         NT function.  Explain why.
32         (directory_exists): Call simple_nt_stat.
33         (file_exists): Ditto.
34
35 2010-07-05  Christopher Faylor  <me+cygwin@cgf.cx>
36
37         * ldd.cc: Clean up formatting throughout.
38         (head): Move earlier.
39         (saw_file): Ditto.
40         (print_dlls): Reset head here.  Record seen dll names so they will
41         not potentially be printed later.
42         (process_file): Remove clearing of head here.
43
44 2010-07-05  Corinna Vinschen  <corinna@vinschen.de>
45
46         * dump_setup.cc (dump_file): Read requested content from setup.rc
47         file created by newer setup.exe.
48
49 2010-06-29  Corinna Vinschen  <corinna@vinschen.de>
50
51         * utils.sgml (locale): Change stray local cygdrive prefix to Cygwin's
52         default.
53
54 2010-04-29  Corinna Vinschen  <corinna@vinschen.de>
55
56         * utils.sgml (mount): Add description for "dos" and "ihash" mount
57         options.
58
59 2010-04-29  Corinna Vinschen  <corinna@vinschen.de>
60
61         * path.cc: Include sys/cygwin.h if built for mount(1).
62         (struct opt): Add "dos" and "ihash" options.
63         (from_fstab_line): Call cygwin_internal rather than read_flags if
64         built for mount(1).
65
66 2010-04-29  Corinna Vinschen  <corinna@vinschen.de>
67
68         * mount.cc (oopts): Remove entirely.
69         (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of
70         mount options.
71         (print_version): Fix copyright date.
72         (main): Replace option processing loop with single call to
73         cygwin_internal (CW_CVT_MNT_OPTS).
74
75 2010-04-28  Corinna Vinschen  <corinna@vinschen.de>
76
77         * locale.cc (print_lc_xxx_charset): Remove.
78         (enum type_t): Change according to the fact that nl_langinfo now returns
79         all locale category values.
80         (lc_ctype_names): Add new category members.  Redefine for exclusive
81         nl_langinfo usage.
82         (lc_numeric_names): Ditto.
83         (lc_time_names): Ditto.
84         (lc_collate_names): Ditto.
85         (lc_monetary_names): Ditto.
86         (lc_messages_names): Ditto.
87         (print_lc): Change switch according to new type_t values.
88
89 2010-03-27  Corinna Vinschen  <corinna@vinschen.de>
90
91         * locale.cc (print_charmaps): Add EUC-CN and GB2312.
92
93 2010-03-24  Corinna Vinschen  <corinna@vinschen.de>
94
95         * regtool.cc (find_key): Fix allocation size of "value".
96
97 2010-03-23  Corinna Vinschen  <corinna@vinschen.de>
98
99         * locale.cc (add_locale_alias_locales): Always use loc_num at function
100         start to avoid confusing bsearch.
101
102 2010-03-23  Corinna Vinschen  <corinna@vinschen.de>
103
104         * locale.cc: Revert accidental checkin of unfinished changes.
105
106 2010-03-23  Corinna Vinschen  <corinna@vinschen.de>
107
108         * locale.cc (print_locale_with_codeset): Drop redundant name parameter.
109         Simplify creating locale string.  Add "@" in case of a modifier.
110         (print_locale): Drop name parameter in calls to
111         print_locale_with_codeset.
112
113 2010-02-25  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
114
115         * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.
116
117 2010-02-25  Corinna Vinschen  <corinna@vinschen.de>
118
119         * utils.sgml (locale): Change description of -a and -av to match
120         latest changes.
121
122 2010-02-23  Corinna Vinschen  <corinna@vinschen.de>
123
124         * locale.cc (printlocale): Remove.
125         (loc_t): New type to keep locale information for printing.
126         (print_codeset): New function to print codeset as on Linux.
127         (print_locale_with_codeset): New function to print single locale.
128         Print verbose style as the Linux locale(1) tool.
129         (print_locale): New function to print single locale plus its UTF-8
130         variation, if available.
131         (compare_locales): New helper function for bsearch and qsort on loc_t.
132         (add_locale): New function to store locale in loc_t array.
133         (add_locale_alias_locales): New function to store locales from
134         locale.alias file in loc_t.
135         (print_all_locales): Call add_locale instead of printlocale.
136         Call add_locale_alias_locales, sort locales alphabetically and print
137         them.
138
139 2010-02-22  Christopher Faylor  <me+cygwin@cgf.cx>
140
141         * strace.cc (mnemonic_table): Add "special" mask option.
142         (usage): Document it.
143         * utils.sgml: Ditto.
144
145 2010-02-22  Corinna Vinschen  <corinna@vinschen.de>
146
147         * cygpath.cc (do_pathconv): Fix erroneously printing native NT path
148         prefix introduced by previous patch.
149
150 2010-02-22  Corinna Vinschen  <corinna@vinschen.de>
151
152         * locale.cc (lc_time_names): Add "date_fmt" entry.
153
154 2010-02-19  Christopher Faylor  <me+cygwin@cgf.cx>
155
156         * strace.cc (mnemonic_table): Add pthread mask option.
157         (usage): Document strace pthread mask option.
158         * utils.sgml: Ditto.
159
160 2010-02-19  Corinna Vinschen  <corinna@vinschen.de>
161
162         * locale.cc (print_lc_mstrings): New function to print
163         semicolon-separated strings.
164         (enum type_t): New type is_sepstrings_linf.
165         (lc_time_names): Change type of era and alt_digits entry to
166         is_sepstrings_linf.
167         (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings
168         in that case.
169
170 2010-02-17  Corinna Vinschen  <corinna@vinschen.de>
171
172         * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.
173         * getlocale.c: Rename to ...
174         * locale.cc: Revamp to add full functionality of POSIX locale(1) tool,
175         as far as Cygwin supports it.
176         * utils.sgml (getlocale): Move and rename to ...
177         (locale): Accommodate new functionality.
178
179 2010-02-13  Ilguiz Latypov  <ilatypov@infradead.org>
180
181         * cygpath.cc (do_pathconv): Fix potential crash.
182
183 2010-02-11  Corinna Vinschen  <corinna@vinschen.de>
184
185         * getlocale.c (main): Rename local variable to avoid problems.
186         Avoid string comparisons, rather test language and sublanguage codes
187         wheere possible.  Add more code to handle Serbian language/territory
188         state identical on all Windows versions.  Fix handling for "@latin"
189         modifier in Belarusian locale.
190         * utils.sgml (getlocale): Try to make wording and example clearer.
191
192 2010-02-10  Corinna Vinschen  <corinna@vinschen.de>
193
194         * getlocale.c (usage): Change text slightly.
195
196 2010-02-10  Corinna Vinschen  <corinna@vinschen.de>
197
198         * getlocale.c (main): Restrict -a loop to avoid psudo language entries
199         on Vista and later.
200
201 2010-02-10  Corinna Vinschen  <corinna@vinschen.de>
202
203         * getlocale.c (main): Revamp -a loop to avoid duplicates and to print
204         locales with the correct, supported modifiers.
205
206 2010-01-25  Corinna Vinschen  <corinna@vinschen.de>
207
208         * getlocale.c (main): Use setlocale and fetch string from Windows
209         using GetLocaleInfoW.  Explain why.
210
211 2010-01-22  Corinna Vinschen  <corinna@vinschen.de>
212
213         * Makefile.in (CYGWIN_BINS): Add getlocale.
214         * getlocale.c: New file.
215         * utils.sgml (getlocale): New section describing new getlocale tool.
216
217 2010-01-16  Corinna Vinschen  <corinna@vinschen.de>
218
219         * cygpath.cc (get_mixed_name): Drop function.  Replace with call to
220         convert_slashes throughout.
221         (do_sysfolders): Free allocated buffer.
222         (do_pathconv): Fix freeing last buffer.
223
224 2010-01-11  Corinna Vinschen  <corinna@vinschen.de>
225
226         * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
227
228 2010-01-07  Corinna Vinschen  <corinna@vinschen.de>
229
230         * cygpath.cc: Throughout, free obsolete path buffers.
231
232 2010-01-07  Corinna Vinschen  <corinna@vinschen.de>
233
234         * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
235         Revert usage of argz functions when reading input from file and
236         simplify option usage.  Allow only one option argument and use
237         the rest as filename argument to allow spaces in filenames.  Restrict
238         processing special folder type options to one line.
239
240 2009-12-17  Christopher Faylor  <me+cygwin@cgf.cx>
241
242         * ps.cc (main): Return 0 if pid found.
243
244 2009-12-16  Corinna Vinschen  <corinna@vinschen.de>
245
246         * regtool.cc: Throughout, convert all registry calls to wide char
247         calls and use string conversion according to current locale.
248         (longopts): Change "dword-le" to "dword-be", as was originally
249         intended.
250         (usage): Change usage accordingly.
251         (print_version): Simplify copyright dates in output.
252         (cmd_list): Handle REG_LINK like REG_SZ.
253         (cmd_get): Ditto.
254         (main): Call setlocale.
255         * utils.sgml (regtool): Fix options and add missing descriptions for
256         new features.
257
258 2009-11-29  Corinna Vinschen  <corinna@vinschen.de>
259
260         * setfacl.c (getaclentry): Allow to delete default entries for the
261         owner and owner group.
262
263 2009-11-27  Corinna Vinschen  <corinna@vinschen.de>
264
265         * cygcheck.cc (dump_sysinfo): Fix typo in products.
266
267 2009-11-11  Corinna Vinschen  <corinna@vinschen.de>
268
269         * getfacl.c (print_version): Fix copyright.
270         (main): Don't reuse local variables confusingly.  Don't print any file
271         information if acl() fails.  Improve error message.  Always print a
272         trailing empty line.  Set return code to 2 if accessing some file fails.
273
274 2009-11-04  Corinna Vinschen  <corinna@vinschen.de>
275
276         * path.cc (read_mounts): Skip unnecessary test if path has been
277         fetched from loaded cygwin1.dll.
278
279 2009-11-04  Corinna Vinschen  <corinna@vinschen.de>
280
281         * cygcheck.cc (cygwin_dll_path): New global variable.
282         (load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path.
283         * strace.cc: Full ditto.
284         * path.cc (read_mounts): First use the path stored in cygwin_dll_path,
285         if available.  Then fall back to fetching own path.  Add comment.
286         Drop printing warnings since they look funny in strace output.
287
288 2009-11-04  Corinna Vinschen  <corinna@vinschen.de>
289
290         * path.cc (read_mounts): First get installation path from own path.
291         Check if cygwin1.dll exists in same directory.  Only if not, try to
292         get installation path from setup registry key.  Add ample warnings.
293
294 2009-11-04  Corinna Vinschen  <corinna@vinschen.de>
295
296         * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.
297
298 2009-10-31  Corinna Vinschen  <corinna@vinschen.de>
299
300         * cygcheck.cc: Include cygprops.h.
301         (del_orphaned_reg): New option variable.
302         (unique_object_name_opt): Ditto.
303         (handle_reg_installation): New function.
304         (print_reg_installations): Ditto.
305         (del_orphaned_reg_installations): Ditto.
306         (memmem): Ditto.
307         (handle_unique_object_name): Ditto.
308         (dump_sysinfo): Call print_reg_installations from here.
309         (usage): Add usage for new options --delete-orphaned-installation-keys,
310         --enable-unique-object-names, --disable-unique-object-names, and
311         --show-unique-object-names.
312         (longopts): Add new options --delete-orphaned-installation-keys,
313         --enable-unique-object-names, --disable-unique-object-names, and
314         --show-unique-object-names.
315         (main): Handle new options.
316         * utils.sgml (cygcheck): Change documentaion accordingly.
317
318 2009-10-28  Corinna Vinschen  <corinna@vinschen.de>
319
320         * cygcheck.cc (pretty_id): Drop arguments.  Don't change CYGWIN
321         environment variable.
322         (dump_sysinfo): Don't tweak CYGWIN environment variable, just call
323         pretty_id once.
324
325 2009-10-20  Corinna Vinschen  <corinna@vinschen.de>
326
327         * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
328
329 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
330
331         * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
332         using my_wcstombs.
333         (get_user_folder): Remove.
334         (do_sysfolders): Use get_special_folder instead of get_user_folder.
335         Fetch system paths as WCHAR and convert using my_wcstombs.
336
337 2009-10-12  Corinna Vinschen  <corinna@vinschen.de>
338
339         * kill.cc (main): Skip to PID loop on invalid option to handle
340         negative pids there.
341
342 2009-08-11  Corinna Vinschen  <corinna@vinschen.de>
343
344         * mkgroup.c (enum_local_groups): Avoid error message if given group
345         name isn't found and return 0 to allow searching to proceed.  Always
346         return 0 or 1, not -1.
347         (enum_groups): Avoid error message if given group name isn't found.
348         * mkpasswd.c (enum_users): Ditto.
349
350 2009-08-10  Dave Korn  <dave.korn.cygwin@gmail.com>
351
352         * mingw: Add fallbacks to search for MinGW components in standard
353         install locations if not found in compiler's $prefix.
354
355 2009-08-09  Corinna Vinschen  <corinna@vinschen.de>
356
357         * mount.cc (do_mount): Don't exit, just return.
358
359 2009-07-23  Corinna Vinschen  <corinna@vinschen.de>
360
361         * cygcheck.cc (dump_sysinfo): Add missing "Server Foundation" to
362         products array.
363
364 2009-07-22  Corinna Vinschen  <corinna@vinschen.de>
365
366         * mount.cc (do_mount): Replace --no-executable flag with notexec
367         mount option in hint for remote filesystems.
368         * path.cc (getmntent): Fix typo (noexec -> notexec).
369
370 2009-07-22  Corinna Vinschen  <corinna@vinschen.de>
371
372         * Makefile.in (path-mount.o): Add a rule to build stripped down version
373         of path.cc for usage in mount.
374         (mount.exe): Add dependency to path-mount.o.
375         * mount.cc (force): Convert to bool value.  Accommodate throughout.
376         (from_fstab): New function.
377         (do_mount_from_fstab): New function.
378         (longopts): Add --all option.
379         (opts): Add -a option.
380         (usage): Document -a/--all option.
381         (main): Handle -a option as well as single parameter.
382         * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o.
383         (mount_table): Remove static storage class.
384         (max_mount_entry): Ditto.
385         (root_here): Unused.  Remove.
386         (from_fstab_line): Remove static.
387         * path.h (struct mnt_t): Define here rather than in path.cc.
388         (from_fstab_line): Declare.
389         (mount_table): Declare.
390         (max_mount_entry): Declare.
391         * utils.sgml (mount): Document -a/--all option and mounting of single
392         path from fstab files.
393
394 2009-07-15  Corinna Vinschen  <corinna@vinschen.de>
395
396         * strace.cc (main): Open trace output file in UNIX mode.
397
398 2009-07-13  Corinna Vinschen  <corinna@vinschen.de>
399
400         * cygcheck.cc (dump_sysinfo): Remove "not yet supported" text.
401
402 2009-07-04  Christopher Faylor  <me+cygwin@cgf.cx>
403
404         * cygwin-console-helper.cc: New file.
405
406 2009-06-10  Corinna Vinschen  <corinna@vinschen.de>
407
408         * path.cc (oopts): Sort alphabetically, add missing "auto" and
409         "override" entries.
410         (from_fstab_line): Handle mount points same as Cygwin itself.  Use
411         "cygdrive prefix" as posix name of cygdrive prefix.
412         (from_fstab): Add auto entries for /usr/bin and /usr/lib.  Add
413         MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry.
414         Use "cygdrive prefix" as posix name of default cygdrive prefix.
415         (getmntent): Allocate smaller buffers.  Align output closer to output
416         of mount(1).
417
418 2009-05-17  Corinna Vinschen  <corinna@vinschen.de>
419
420         * cygpath.cc (codepage): New variable.
421         (long_options): Add --codepage option.
422         (options): Add -C option.
423         (usage): Add -C/--codepage description.
424         (my_wcstombs): New function.  Use througout instead of wcstombs.
425         (do_options): Handle -C/--codepage option.
426         * utils.sgml (cygpath): Add description for new -C/--codepage option.
427
428 2009-05-16  Corinna Vinschen  <corinna@vinschen.de>
429
430         * Makefile.in (cygpath.exe): Link against cygwin.a before linking
431         against ntdll.dll to avoid linking symbols defined in both DLLs
432         from ntdll.
433         (ps.exe): Ditto.
434
435 2009-05-15  Corinna Vinschen  <corinna@vinschen.de>
436
437         * cygpath.cc (main): Only setlocale for LC_CTYPE category.  Fallback
438         to UTF-8 if locale is "C".
439         * ldd.cc (main): Ditto.
440         * mkgroup.c (main): Ditto.
441         * mkpasswd.c (main): Ditto.
442         * passwd.c (main): Ditto.
443
444 2009-05-13  Corinna Vinschen  <corinna@vinschen.de>
445             Christopher Faylor  <me+cygwin@cgf.cx>
446
447         * mount.cc (oopts): Sort.  Add override option.  Add dummy "auto"
448         option for consistency.
449         (mount_entries): Avoid adding auto-mounted entries to -m output.
450
451         * utils.sgml: Sort mount options.  Add description of override option.
452
453 2009-05-11  Corinna Vinschen  <corinna@vinschen.de>
454
455         * Makefile.in: Link ps.exe agains ntdll.dll.
456         * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes
457         have to be enumerated.  Workaround EnumProcessModules problem when
458         running under WOW64 and use NtQueryInformationProcess to fetch
459         process image name.
460
461 2009-05-06  Corinna Vinschen  <corinna@vinschen.de>
462
463         * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generate
464         user's homedir.
465
466         * mkgroup.c: Accommodate ctype changes.
467         * mkpasswd.c: Ditto.
468         * setfacl.c: Ditto.
469         * ssp.c: Ditto.
470
471 2009-05-04  Christopher Faylor  <me+cygwin@cgf.cx>
472
473         * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if
474         find_on_path doesn't find the app on the path.
475
476 2009-05-04  Corinna Vinschen  <corinna@vinschen.de>
477
478         * cygcheck.cc (usage): Fix option order and print.
479
480 2009-04-22  Christopher Faylor  <me+cygwin@cgf.cx>
481
482         * strace.cc (create_child): Set CYGWIN=noglob when starting new process
483         so that Cygwin will leave already-parsed the command line alonw.
484
485 2009-04-15  Corinna Vinschen  <corinna@vinschen.de>
486
487         * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's really
488         given.  Do backslash to slash conversion for mixed paths after
489         handling \\?\ prefix.
490
491 2009-04-13  Dave Korn  <dave.korn.cygwin@gmail.com>
492
493         * Makefile.in (dumper.exe):  Add -lz to ALL_LDFLAGS.
494
495 2009-04-07  Corinna Vinschen  <corinna@vinschen.de>
496
497         * path.cc (readlink): Accommodate new UTF-16 symlinks.
498
499 2009-04-03  Kevin Buettner  <kevinb@redhat.com>
500
501         * utils.sgml: Various syntactical and semantical fixes.
502         * cygcheck.cc (usage): Fix --find-package explanation.
503
504 2009-03-26  Yaakov Selkowitz  <yselkowitz@cygwin.com>
505
506         * utils.sgml (passwd -R): Remove references to CYGWIN="server".
507
508 2009-03-24  Corinna Vinschen  <corinna@vinschen.de>
509
510         * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.
511         * strace.cc (proc_child): Ditto.
512         * ldd.cc: Remove now useless undef wcscasecmp.
513
514 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
515
516         * passwd.c (usage): Change description for -d option according to
517         previous change.
518         (main): Fix typo.
519         * utils.sgml: Add missing description for passwd -d option.
520
521 2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
522
523         * passwd.c (caller_is_admin): New function to test if calling user
524         is an administrator by inspecting user token.
525         (main): Drop fetching caller info from logonserver.  Only fetch
526         server from environment when trying to change password for own
527         account.  Drop admin check entirely in case of doing account
528         maintainance.  Otherwise replace check for admin by result of
529         caller_is_admin call.
530
531 2009-03-22  Corinna Vinschen  <corinna@vinschen.de>
532
533         * passwd.c (main): Always get logonserver from environment and
534         use when fetching user info for caller.
535
536 2009-03-22  Corinna Vinschen  <corinna@vinschen.de>
537
538         * ldd.cc: Fix compiler warning.
539
540         * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout.
541         (main): Call setlocale.  Fix a bug in fetching the logon server from
542         the environment.
543
544 2009-03-18  Christopher Faylor  <me+cygwin@cgf.cx>
545
546         * ldh.cc: New file.
547
548 2009-03-17  Christopher Faylor  <me+cygwin@cgf.cx>
549
550         * ldd.cc (load_dll): Start helper program rather than ldd.exe.
551         (set_entry_point_break): Rename from get_entry_point.
552         (print_dlls): Rename from print_dlls_and_kill_inferior.  Avoid printing
553         specific dll name if we're looking at a dll.
554         (report): Always dump dlls on process exit.  Don't allow thread
555         creation.  Accommodate get_entry_point rename.
556         (start_process): Start process with DEBUG_ONLY_THIS_PROCESS.
557         (longopts): Eliminate "dll" option.
558         (main): Ditto.
559
560 2009-03-17  Corinna Vinschen  <corinna@vinschen.de>
561             Christopher Faylor  <me+cygwin@cgf.cx>
562
563         * ldd.cc: Use wide character Win32 paths throughout.
564         (load_dll): Fix size expression (add fn) in realloc.
565
566 2009-03-14  Christopher Faylor  <me+cygwin@cgf.cx>
567
568         * ldd.cc (longopts): Add --dll option.
569         (get_module_filename): Generalized wrapper function which avoid path
570         length restrictions.
571         (load_dll): Handle special-case of inspecting a DLL.
572         (start_process): Accept an output parameter "isdll".  Detect when file
573         to start is a DLL and start a wrapper instead.
574         (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing
575         everything before the DLL itself first appears.  (This is not strictly
576         correct and should be fixed eventually)
577         (report): Deal with DLLs.  Don't set a breakpoint for DLLs, just let
578         captive ldd process terminate normally.  Pass dll info to
579         print_dlls_and_kill_inferior.
580         (main): Handle special-case "--dll" option by loading the DLL and
581         exiting.
582
583 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
584
585         * path.cc (from_fstab): Use wcstombs/mbstowcs instead of
586         WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
587
588 2009-03-14  Corinna Vinschen  <corinna@vinschen.de>
589
590         * wide_path.h (class wide_path): New class to convert Windows path
591         to WCHAR win32 path, including long path conversion if necessary.
592         * cygcheck.cc: Use class wide_path throughout to call Win32 functions
593         taking potentially long filenames.
594         (display_error): Use snprintf rather than sprintf.
595         (display_error_fmt): Ditto.
596         (dump_sysinfo): Use FindFirstFileW/FindNextFileW.
597         * cygpath.cc: Use class wide_path throughout to call Win32 functions
598         taking potentially long filenames.
599         (get_device_name): Raise buffer size to take long pathnames.
600         (get_short_paths): Convert to using GetShortPathNameW.
601         (get_short_name): Ditto.
602         (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW.
603         (get_long_name): Convert to using GetLongPathNameW.
604         (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX.
605         (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t
606         Win32 path name and drop long pathname prefix if possible.
607         (main): Call setlocale to accommodate wide char/multibyte conversions.
608
609 2009-03-14  Christopher Faylor  <me+cygwin@cgf.cx>
610
611         * ldd.cc: Rework to detect missing DLLs.
612         (start_process): Change to expect windows filename as input.
613         (tocyg): New function - convert cygwin fn to windows fn.
614         (print_dlls_and_kill_inferior): Accept extra argument denoting whether
615         to open input and look for nonexistent DLLs.  Use tocyg to convert
616         filename and pass it to start_process.
617         (report): Flag when an DLL-not-found exception occurs and pass this
618         information to print_dlls_and_kill_inferior.
619         (filelist): New structure.
620         (saw_file): New function.
621         (dump_import_directory): Ditto.
622         (map_file): Ditto.
623         (skip_dos_stub): Ditto.
624         (get_directory_index): Ditto.
625         (process_file): Ditto.
626
627 2009-03-09  Corinna Vinschen  <corinna@vinschen.de>
628
629         * utils.sgml: Fix typo.
630
631 2009-03-08  Christopher Faylor  <me+cygwin@cgf.cx>
632
633         * cygcheck.cc (usage): Fix typo.
634
635 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
636
637         * utils.sgml: Set example prompt to "$" throughout.  Don't use "/"
638         as example cygdrive prefix.  Remove reference to -u and -s options.
639         Add an example using the -o flag.
640
641 2009-03-02  Corinna Vinschen  <corinna@vinschen.de>
642
643         * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.
644         Add comments.
645
646 2009-02-23  Sjors Gielen <mailinglist@dazjorz.com>
647
648         * Makefile.in: Add DESTDIR functionality.
649
650 2009-01-29  Corinna Vinschen  <corinna@vinschen.de>
651
652         * cygcheck.cc (dump_sysinfo): Evaluate and print state of
653         obcaseinsensitive kernel flag.
654
655 2009-01-21  Corinna Vinschen  <corinna@vinschen.de>
656
657         * passwd.c: Remove CYGWIN=server requirement from usage text.
658
659 2009-01-17  Corinna Vinschen  <corinna@vinschen.de>
660
661         * Makefile.in: Fix copyright date.
662         * cygcheck.cc (scan_registry): Take additional parameter and add code
663         to avoid recursion in Wow6432Node subkey.  Rename variable cygnus to
664         cygwin.  Scan for "Cygwin" instead of for "cygnus" substring.
665         (dump_sysinfo): Drop unused calls to scan_registry.  Drop scanning
666         HKEY_CURRENT_CONFIG.
667
668 2009-01-16  Corinna Vinschen  <corinna@vinschen.de>
669
670         * cygcheck.cc (dump_sysinfo): Raise size of osname.  Add Windows 7
671         and Windows 2008 R2 as recognized OSes.  Update products array to
672         the latest documented list.
673
674 2009-01-09  Christopher Faylor  <me+cygwin@cgf.cx>
675
676         * ldd.cc: New file.  First stab at implementing ldd-like functionality
677         for Cygwin.
678         * Makefile.in (CYGWIN_BINS): Add ldd.
679         (ldd.exe): Use -lpsapi.
680
681 2009-01-05  Pierre Humblet  <Pierre.Humblet@ieee.org>
682
683         * cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
684
685 2008-12-30  Pierre Humblet  <Pierre.Humblet@ieee.org>
686
687         * cygcheck.cc (pretty_id): Quote the path for popen.
688         (dump_sysinfo_services): Ditto.
689
690 2008-12-16  Corinna Vinschen  <corinna@vinschen.de>
691
692         * utils.sgml: Fix typo in passwd screen text.
693
694 2008-12-15  Corinna Vinschen  <corinna@vinschen.de>
695
696         * passwd.c (main): Put how to delete the registry password on its own
697         line in passwd -R output.
698
699 2008-12-13  Christopher Faylor  <me+cygwin@cgf.cx>
700
701         * utils.sgml: Convert some backslashes to slashes.
702
703 2008-11-26  Corinna Vinschen  <corinna@vinschen.de>
704
705         * passwd.c (longopts): Add --reg-store-pwd option.
706         (opts): Add -R option.
707         (usage): Add text for -R/--reg-store-pwd option.
708         (main): Fix size of local user and password string arrays.
709         Handle -R option.
710         * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
711
712 2008-10-29  Christopher Faylor  <me+cygwin@cgf.cx>
713
714         * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything
715         here.
716
717 2008-10-12  Christopher Faylor  <me+cygwin@cgf.cx>
718
719         * mingw: Set sawcfile when -xc* is detected.  Extend list of detected
720         source files.
721
722 2008-10-12  Christopher Faylor  <me+cygwin@cgf.cx>
723
724         * mingw: Add more checks to allow more varied use.
725
726 2008-10-11  Christopher Faylor  <me+cygwin@cgf.cx>
727
728         * mingw: Use a better method to find where mingw directory lives.
729
730 2008-10-11  Christopher Faylor  <me+cygwin@cgf.cx>
731
732         * mingw: New front-end script to control building of MinGW files
733         without using the deprecated -mno-cygwin option.
734         * Makefile.in: Use mingw front-end.
735
736 2008-09-12  Christopher Faylor  <me+cygwin@cgf.cx>
737
738         * cygcheck.cc (pathlike::check_existence): Remove class name from
739         declaration.
740         (display_internet_error): Use proper format specifier for DWORD.
741         (environ): Remove unneeded declaration.
742         (main): Use brace around nested if to avoid an overly-helpful compiler
743         warning.
744         * dump_setup.cc (parse_filename): Reorganize nested if to avoid an
745         overly-helpful compiler warning.
746         * path.cc (GUID_shortcut): Use braces around part of initializer which
747         needs them.
748         (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a
749         compiler warning.
750         (struct opt): Make static.
751         * ps.cc (main): Reorganize nested if to avoid an overly-helpful
752         compiler warning.
753         * regtool.cc: Make some anonymous structs static to avoid a compiler
754         warning.
755         * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential
756         uninitialized use.
757         * strace.cc (add_child): Use proper format specifier for DWORD.
758         (remove_child): Ditto.
759         (proc_child): Ditto.
760
761 2008-08-27  Christopher Faylor  <me+cygwin@cgf.cx>
762
763         * cygcheck.cc (nuke): Use malloc rather than alloca for environment
764         variables.
765         (load_cygwin): Ditto.
766         * dump_setup.cc (parse_filename): Cosmetic changes.
767         (get_packages): Ditto.
768
769 2008-08-25  Corinna Vinschen  <corinna@vinschen.de>
770
771         * mkgroup.c (enum_local_groups): Don't skip printing groups when
772         print_current is set and group SID is not curr_pgrp.
773         (enum_groups): Ditto.
774         (main): Fix condition when SYSTEM group gets printed.
775         * mkpasswd.c (enum_users): Don't skip printing users when print_current
776         is set and user SID is not curr_user.
777         (main): Allow printing standard accounts even when print_current is set.
778
779 2008-08-18  Corinna Vinschen  <corinna@vinschen.de>
780
781         * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find out
782         if a group exists, rather than just allocating a buffer and going ahead.
783
784 2008-08-18  Corinna Vinschen  <corinna@vinschen.de>
785
786         * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
787         as argument when LookupAccountXXX failed.
788         (enum_groups): Ditto.
789
790 2008-08-18  Corinna Vinschen  <corinna@vinschen.de>
791
792         * mkgroup.c (enum_local_groups): Return failure if looking for a single
793         group succeeded.  Add comment.
794
795 2008-08-18  Corinna Vinschen  <corinna@vinschen.de>
796
797         * mkgroup.c (main): Keep correctly track of optional arguments.
798         * mkpasswd.c (main): Ditto.
799
800 2008-08-18  Corinna Vinschen  <corinna@vinschen.de>
801
802         * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.
803         Keep track of optional argumnts and fix up optind afterwards.
804         * mkpasswd.c (main): Ditto.
805
806 2008-08-17  Christopher Faylor  <me+cygwin@cgf.cx>
807
808         * cygcheck.cc (print_version): Update copyright dates.
809
810 2008-08-17  Christopher Faylor  <me+cygwin@cgf.cx>
811
812         * mkpasswd.c (main): Avoid printing system accounts when a single user
813         name has been requested.
814
815 2008-08-17  Christopher Faylor  <me+cygwin@cgf.cx>
816
817         * Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet
818         ld warnings.
819         * mkgroup.c: Change all global variables and most functions to static.
820         (enum_local_groups): Add a print_current parameter to control whether
821         entries for everything should be printed or just the current user.
822         (enum_groups): Ditto.
823         (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL
824         deference when no command line arguments are specified.  Accommodate
825         argument changes to above functions.  Avoid printing SYSTEM account
826         when print_current is specified.  Issue error when extra stuff is found
827         on the command line.
828         * mkpasswd.c: Change all global variables and most functions to static.
829         (enum_users): Add a print_current parameter to control whether entries
830         for everything should be printed or just the current user.
831         (main): Move call fetch_current_user_sid earlier to avoid a NULL
832         deference when no command line arguments are specified.  Accommodate
833         argument change to above function.  Avoid printing standard accounts
834         when print_current is specified.  Issue error when extra stuff is found
835         on the command line.
836
837 2008-08-15  Corinna Vinschen  <corinna@vinschen.de>
838
839         * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primary
840         group SID from user token.
841         (current_group): Move up in file.  Move fetching primary group SID to
842         fetch_current_pgrp_sid.
843         (enum_local_groups): Check if current SID is the same as current user's
844         primary group SID.
845         (enum_groups): Ditto.
846         (main): Call fetch_current_pgrp_sid before enumerating groups.  Call
847         current_group only if current group hasn't been enumerated already.
848         * mkpasswd.c (fetch_current_user_sid): New function to fetch current
849         user SID from user token.
850         (current_user): Move fetching current user SID to
851         fetch_current_user_sid.
852         (enum_users): Check if current SID is the same as current user's SID.
853         (main): Call fetch_current_user_sid before enumerating users.  Call
854         current_user only if current user hasn't been enumerated already.
855
856 2008-08-13  Corinna Vinschen  <corinna@vinschen.de>
857
858         * mount.cc (NT_MAX_PATH): Define.
859         (longopts): Rename mount-commands option to mount-entries.
860         (opts): Remove removed options.
861         (struct opt): Move up in file to allow using it in usage.
862         (usage): Change text for --mount-entries option.  Remove
863         -X option.  Add valid options output.
864         (main): Remove handling -b option.
865         (convert_spaces): New static function to convert spaces to "\040"
866         string.
867         (mount_entries): Renamed from mount_commands.  Rewrite to emit
868         /etc/fstab compatible output.
869         (show_cygdrive_info): Print "nouser" rather than "system".
870         * umount.cc (longopts): Remove remove-all-mounts,
871         remove-cygdrive-prefix, remove-system-mounts, system and user options.
872         (opts): Remove A, c, s, S, u options.
873         (usage): Remove text for all removed options.
874         (main): Remove handling for all removed options.
875         (remove_all_mounts): Remove.
876         (remove_all_system_mounts): Remove.
877         (remove_cygdrive_prefix): Remove.
878         * utils.sgml: Fix mount and umount documentation.  Move description
879         of (cyg,not)exec options to mount table section.
880
881 2008-08-04  Christopher Faylor  <me+cygwin@cgf.cx>
882
883         * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears
884         when cygwin1.dll is unloaded.
885
886 2008-07-30  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
887
888         * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.
889
890 2008-07-27  Christopher Faylor  <me+cygwin@cgf.cx>
891
892         * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with
893         it.
894
895 2008-07-25  Christopher Faylor  <me+cygwin@cgf.cx>
896
897         * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.
898         (oopts): Use boolean constants for slightly increased clarity.
899
900         * configure.in: Remove apparently unneeded program_transfer_name code.
901         * configure: Regenerate.
902
903 2008-07-24  Corinna Vinschen  <corinna@vinschen.de>
904
905         * utils.sgml: Remove useless text.
906
907 2008-07-23  Corinna Vinschen  <corinna@vinschen.de>
908
909         * mkgroup.c (main): Fix test for duplicate domain/machine request.
910         * mkpasswd.c (main): Ditto.
911
912 2008-07-23  Corinna Vinschen  <corinna@vinschen.de>
913
914         * mkgroup.c: Rework to allow per-domain/per-machine id_offset.
915         Add -b option to skip builtin groups.
916         (main): Simplify code.
917         * mkpasswd.c: Rework to allow per-domain/per-machine id_offset.
918         (main): Simplify code.
919         * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options.
920         Add mkgroup -b option.
921
922 2008-07-23  Corinna Vinschen  <corinna@vinschen.de>
923
924         * mkgroup.c: Consolidate variable names.
925         (enum_unix_groups): New function.
926         (print_special): Use LookupAccountSidW instead of LookupAccountSidA.
927         (current_group): Ditto.
928         (usage): Add -U option.
929         (longopts): Add --unix option.
930         (opts): Add -U option.
931         (main): Handle -U option.  Call enum_unix_groups if set.
932         * mkpasswd.c: Consolidate variable names.
933         (current_user): Use LookupAccountSidW instead of LookupAccountSidA.
934         (enum_unix_users): New function.
935         (usage): Add -U option.
936         (longopts): Add --unix option.
937         (opts): Add -U option.
938         (main): Handle -U option.  Call enum_unix_groups if set.
939         * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
940
941 2008-07-22  Corinna Vinschen  <corinna@vinschen.de>
942
943         * mkgroup.c (enum_groups): Create full qualified groupname using
944         domain or servername, depending on printing domain or machine accounts.
945         * mkpasswd.c (enum_users): Ditto for users.
946
947 2008-07-22  Corinna Vinschen  <corinna@vinschen.de>
948
949         * mkgroup.c (main): Remove special root group code.  Only print
950         SYSTEM group in case of printing local machine or local domain groups.
951
952 2008-07-22  Corinna Vinschen  <corinna@vinschen.de>
953
954         * Makefile.in (cygcheck.exe): Link against ntdll.
955         * bloda.cc: Use statically linked functions throughout.
956         * cygpath.cc: Drop 9x considerations.
957         * mkgroup.c: Revamp.  Redefine -l and -d options to take optional
958         machine and domain parameters.  Redefine -c to work always, using
959         token information.  Add -L, -D, -C to create unique groupnames in
960         domain\group syntax.  Add -S option to define domain\group separator
961         char.  Ignore -u and -s options.
962         * mkpasswd.c: Revamp.  Redefine -l and -d options to take optional
963         machine and domain parameters.  Redefine -c to work always, using
964         token information.  Add -L, -D, -C to create unique usernames in
965         domain\user syntax.  Add -S option to define domain\user separator
966         char.  Ignore -g and -s options.  Prefer to take homedir from $HOME
967         over $HOMEDRIVE/$HOMEPATH.
968         * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options.
969         (getmntent): Accomodate throughout.
970         * ps.cc: Fix copyright dates.
971         * utils.sgml: Fix text for mkgroup and mkpasswd.
972
973 2008-07-17  Corinna Vinschen  <corinna@vinschen.de>
974
975         * mount.cc (do_mount): Remove MOUNT_ENC code.
976         (oopts): Remove "managed" option.
977         (mount_commands): Drop "managed" handling.
978         * path.cc (oopts): Remove "managed" option.
979         (getmntent): Remove MOUNT_ENC code.
980
981 2008-07-17  Corinna Vinschen  <corinna@vinschen.de>
982
983         * utils.sgml: Add id's to all examples.
984
985 2008-07-09  Corinna Vinschen  <corinna@vinschen.de>
986
987         * mkgroup.c: Use statically linked functions throughout, except for
988         DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
989         Use defines instead of constants throughout.
990         (MAX_SID_LEN): Define.
991         (load_netapi): Just load DsGetDcNameW pointer.
992         (psx_dir): Remove.
993         (uni2ansi): Remove.
994         (enum_local_users): Take server name and use in Net... call.
995         (DBGSID): Define datastructure.
996         (MAX_BUILTIN_SIDS): Define.
997         (builtin_sid_list): Define global sid list.
998         (builtin_sid_cnt): Define counter for global sid list.
999         (enum_local_groups): Take server name and use in Net... and Lookup...
1000         calls.  Take offset argument.  Use MAX_PREFERRED_LENGTH in call to
1001         NetLocalGroupEnum.  Check for duplicate builtin groups.
1002         (enum_users): Take server name and use in Net... call.
1003         (usage): Change text slightly.
1004         (print_version): Fix copyright.
1005         (main): Call enum_local_groups for domains as well.
1006         * mkpasswd.c: Use statically linked functions throughout, except for
1007         DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
1008         Use defines instead of constants throughout.
1009         (MAX_SID_LEN): Define.
1010         (load_netapi): Just load DsGetDcNameW pointer.
1011         (uni2ansi): Use wcstombs.
1012         (current_user): Replace "unused_by_nt/2000/xp" by
1013         just "unused".
1014         (enum_users): Ditto.
1015         (print_version): Fix copyright.
1016
1017 2008-05-22  Corinna Vinschen  <corinna@vinschen.de>
1018
1019         * setfacl.c (setfacl): Change from void to int.  Return 2 in case of
1020         error.
1021         (main): Return with error code from setfacl.
1022
1023 2008-05-15  Corinna Vinschen  <corinna@vinschen.de>
1024
1025         * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.
1026         * ipcrm.c: Remove.
1027         * ipcs.c: Remove.
1028
1029 2008-03-23  Corinna Vinschen  <corinna@vinschen.de>
1030
1031         * mount.cc (usage): Mark -s and -u as ignored.
1032         (print_version): Simplify printing copyright dates.
1033         (main): Remove default_flag.  Dont set flags on -s and -u options.
1034         (mount_commands): Drop handling -s and -u options.
1035
1036 2008-03-22  Corinna Vinschen  <corinna@vinschen.de>
1037
1038         * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.
1039         * path.cc: Fetch mount points from fstab files instead of from
1040         registry.  Use adapted functions copied from Cygwin DLL.
1041         (mnt_t): Drop issys member.  Define as "mnt_t" instead of "struct mnt_t"
1042         subsequently.
1043         (max_mount_entry): New variable.
1044         (unconvert_slashes): Move to earlier location in file.  Make inline.
1045         (find2): Remove.
1046         (get_cygdrive0): Remove.
1047         (get_cygdrive): Remove.
1048         (skip_ws): New function.
1049         (find_ws): Ditto.
1050         (conv_fstab_spaces): Ditto.
1051         (read_flags): Ditto.
1052         (from_fstab_line): Ditto.
1053         (get_user): Ditto.
1054         (from_fstab): Ditto.
1055         (mnt_sort): Ditto.
1056         (read_mounts): Drop old registry code.  Fetch
1057         "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key.  Use
1058         rootdir extracted from module path as fallback.  Call from_fstab for
1059         nouser and user mount points.
1060         (setmntent): Check max_mount_entry to test if read_mounts must be
1061         called.
1062         (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
1063
1064 2008-03-16  Brian Dessent  <brian@dessent.net>
1065
1066         * path.cc: Include malloc.h for alloca.
1067         (is_symlink): Rewrite.  Just read the whole file in memory rather
1068         than by parts.  Account for an ITEMIDLIST if present, as well as
1069         the new style of Cygwin shortcut supporting targets > MAX_PATH.
1070
1071 2008-03-12  Corinna Vinschen  <corinna@vinschen.de>
1072
1073         * cygpath.cc (do_sysfolders): Use cygwin_conv_path.
1074         (do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list.
1075         * dumper.cc (main): Use cygwin_conv_path.  Allocate target path
1076         dynamically.
1077         * mkpasswd.c (current_user): Use cygwin_conv_path.
1078         (enum_users): Ditto.
1079         * ps.cc (NT_MAX_PATH): Define.
1080         (main): Use cygwin_conv_path.
1081         * regtool.cc (find_key): Ditto. Allocate target path dynamically.
1082         (cmd_save): Ditto.
1083
1084 2008-03-11  Brian Dessent  <brian@dessent.net>
1085
1086         * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1
1087         chars.
1088
1089 2008-03-11  Brian Dessent  <brian@dessent.net>
1090
1091         * cygcheck.cc (dirname): New static function.
1092         (find_app_on_path): Use SYMLINK_MAX.  Resolve symlink relative
1093         to link's location.  Adjust to the fact that cygpath already
1094         normalizes its return value.
1095         * path.cc (rel_vconcat): Add cwd parameter, and use it instead
1096         of calling GetCurrentDirectory() if possible.  Rename throughout.
1097         (vcygpath): Rename from cygpath and accept cwd and va_list.  Pass
1098         cwd on to rel_vconcat().
1099         (cygpath_rel): New front end for vcygpath.
1100         (cygpath): Ditto.
1101         * path.h (cygpath_rel): Declare.
1102         (SYMLINK_MAX): Define to 4095.
1103
1104 2008-03-09  Brian Dessent  <brian@dessent.net>
1105
1106         * Makefile.in (install): Don't install the testsuite.
1107
1108 2008-03-08  Brian Dessent  <brian@dessent.net>
1109
1110         * Makefile.in: Add a 'check' target that builds and runs
1111         testsuite.exe from path-testsuite.o and testsuite.o.
1112         * path.cc: Include testsuite.h.
1113         (struct mnt): Change to a mnt_t typedef and don't define
1114         mount_table when TESTSUITE is defined.
1115         (find2): Don't include when TESTSUITE is defined to avoid warning.
1116         (get_cygdrive0): Ditto.
1117         (get_cygdrive): Ditto.
1118         (read_mounts): Provide empty implementation when TESTSUITE is
1119         defined.
1120         (vconcat): Use the isslash macro.
1121         (unconvert_slashes): New helper to convert to backslashses.
1122         (rel_vconcat): Handle relative paths more gracefully.
1123         (cygpath): Skip a leading "./" sequence.  Avoid double-slashes.
1124         Normalize final output to backslashes and remove redundant path
1125         sequences.
1126         * testsuite.cc: New file implementing testsuite driver.
1127         * testsuite.h: New header implementing harness mount table and
1128         series of tests.
1129
1130 2008-03-08  Brian Dessent  <brian@dessent.net>
1131
1132         * Makefile.in: Reorganize considerably, using GNU make's
1133         static pattern rules and target-specific variables.
1134
1135 2008-02-28  Corinna Vinschen  <corinna@vinschen.de>
1136
1137         * mkpasswd.c (main): Simplify generating SYSTEM entry.  Add entries
1138         for LocalService and NetworkService accounts.  Change comments.
1139
1140 2008-01-13  Corinna Vinschen  <corinna@vinschen.de>
1141
1142         * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEX
1143         first.  Load kernel32.dll earlier.  Make osname a buffer.  Simplify
1144         Non-NT code.  Use GetProductInfo in Vista/2008 case.  Clean up
1145         non-Vista version info.  Exit early if not on NT.
1146
1147 2007-12-29  Dave Korn  <dave.korn@artimi.com>
1148
1149         * bloda.cc (enum bad_app):  Add BYTEMOBILE.
1150         (dodgy_app_detects[]):  Add FILENAME entry to detect bmnet.dll.
1151         (big_list_of_dodgy_apps[]):  Add description for BYTEMOBILE.
1152
1153 2007-12-20  Brian Dessent  <brian@dessent.net>
1154
1155         * Makefile.in (cygcheck.exe): Don't link to ntdll.
1156         * bloda.cc (pNtQuerySystemInformation): Add.
1157         (pRtlAnsiStringToUnicodeString): Add.
1158         (get_process_list): Use function pointers for NT functions.
1159         (dump_dodgy_apps): Skip dodgy app check on non-NT platforms.
1160         Use GetProcAddress for NT-specific functions.
1161
1162 2007-12-07  Corinna Vinschen  <corinna@vinschen.de>
1163
1164         * regtool.cc (opts): Add missing 'W'.
1165
1166 2007-12-06  Corinna Vinschen  <corinna@vinschen.de>
1167
1168         * ps.cc: Include limits.h.
1169         (main): Set file name buffer size to PATH_MAX.  Use progname or
1170         progname_long member of struct external_pinfo dependent of the value of
1171         the struct's version member.
1172
1173 2007-08-31  Dave Korn  <dave.korn@artimi.com>
1174
1175         * mkgroup.c (enum_groups):  Use MAX_PREFERRED_LENGTH in netgroupenum
1176         call so that it will automatically size returned buffer sufficiently.
1177
1178 2007-08-03  Dave Korn  <dave.korn@artimi.com>
1179
1180         * Makefile.in (cygcheck.exe):  Add bloda.o as prerequisite, adjusting
1181         dependency-filtering $(wordlist ...) call appropriately.  Link ntdll.
1182         (bloda.o):  New rule to build bloda.o
1183         * cygcheck.cc (dump_sysinfo):  Call bloda function dump_dodgy_apps().
1184         * bloda.cc:  New file implements detection of applications from the
1185         Big List Of Dodgy Apps.
1186
1187 2007-07-24  Corinna Vinschen  <corinna@vinschen.de>
1188
1189         * COPYING.dumper: New file.
1190         * dumper.cc: Change license to plain GPLv2 + later.
1191         * dumper.h: Ditto.
1192         * parse_pe.cc: Ditto.
1193
1194 2007-07-23  Christopher Faylor  <me+cygwin@cgf.cx>
1195
1196         * strace.cc (create_child): Don't convert a path from cygwin format
1197         unless it has a slash.
1198
1199 2007-07-09  Christopher Faylor  <me+cygwin@cgf.cx>
1200
1201         * strace.cc (usage): Add missing description for -q.
1202
1203 2007-07-09  Christopher Faylor  <me+cygwin@cgf.cx>
1204
1205         * Makefile.in (kill.exe): Remove reliance on libiberty.
1206         * kill.cc (strsigno): New function patterned after libiberty but using
1207         newly exported cygwin array.
1208
1209 2007-06-03  Christopher Faylor  <me+cygwin@cgf.cx>
1210
1211         * cygcheck.cc (pathlike): New class.
1212         (paths): Redefine as type pathlike.
1213         (display_error): Declare a few different ways to allow more flexible
1214         usage throughout.
1215         (display_error_fmt): New function for those cases where C++ just isn't
1216         enough.
1217         (add_path): Rewrite to allocate pathlike paths.  Always tack on a
1218         trailing slash since that's what everyone who uses it wants.  NULL
1219         terminate the path list.  Register "it's a system path" field.
1220         (init_path): Call add_path with info regarding whether path is a system
1221         path or not.
1222         (pathlike::check_existence): Move into pathlike class.  Accept file and
1223         extension arguments to build up path on the fly.  Modify other
1224         arguments.
1225         (find_on_path): Constify return value and appropriate arguments.
1226         Eliminate short-circuit for fully-qualified paths.  Simplify loop which
1227         iterates over path.
1228         (already_did): Constify argument.
1229         (track_down): Ditto.  Regularize some error messages.
1230         (find_app_on_path): Ditto.
1231         (cygcheck): Constify argument.  Use 20th century string handling
1232         functions.
1233         (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case".
1234         Accommodate change of paths to pathlike.
1235         * path.cc (isslash): Rename from SLASH_P and use throughout.
1236         (rel_vconcat): Front-end to vconcat which prepends cwd to path before
1237         passing along for conversion to native windows.
1238         (cygpath): Remove "./" test.  Call rel_vconcat if filename appears to
1239         be relative.
1240
1241 2007-05-29  Pedro Alves  <pedro_alves@portugalmail.pt>
1242
1243         * dumper.cc (dumper::prepare_core_dump): Record a phdr for each section.
1244
1245 2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
1246
1247         * cygpath.cc (do_options): Allow outputflag combined with other
1248         basic flags.  Only check options_from_file_flag if reading options
1249         from command line.
1250         (main): Check for NULL argz vector.  Don't free argz vector prematurely.
1251         Don't force flag combination in !options_from_file_flag case.
1252
1253 2007-05-23  Corinna Vinschen  <corinna@vinschen.de>
1254
1255         * cygpath.cc: Include argz.h.
1256         (options_from_file_flag): Move from main to global static variable.
1257         (mode_flag): Ditto.
1258         (do_sysfolders): Rename from dowin and accommodate throughout.
1259         Don't exit from here.
1260         (do_pathconv): Rename from doit and accommodate throughout.
1261         (print_version): Change copyright.
1262         (do_options): New function, centralizing option processing.
1263         Rework checking options for correctness.
1264         (action): New function, centralizing calling worker functions.
1265         (main): Simplify.  Move option processing to do_options.  Move calling
1266         worker functions to action.  Rework getting arguments from files.
1267
1268 2007-03-30  Mark Mitchell  <mark@codesourcery.com>
1269
1270         * utils/cygpath.cc (get_long_path_name_w32impl): Close handles returned
1271         by FindFirstFile.
1272
1273 2007-03-30  Christopher Faylor  <me@cgf.cx>
1274
1275         * mount.cc (main): Turn dos file warnings off since we know what we're
1276         doing.
1277
1278 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
1279
1280         * ipcs.c (_POSIX2_LINE_MAX): Drop definition.
1281
1282 2007-02-20  Corinna Vinschen  <corinna@vinschen.de>
1283
1284         * cygcheck.cc (dump_sysinfo): Add "not supported" to osname on 9x
1285         machines.  Drop "not supported" for Vista.  Drop "Longhorn" text
1286         for now.
1287
1288 2007-01-09  Christian Franke  <franke@computer.org>
1289
1290         * cygpath.cc (usage): Add -O and -F, remove tabs.
1291         (get_special_folder): New function.
1292         (get_user_folder): New function.
1293         (dowin): Add -O and -F, better -D, -P error handling.
1294         (main): Add -O and -F.
1295         * utils.sgml (cygpath): Document -O and -F.
1296
1297 2006-12-21  Corinna Vinschen  <corinna@vinschen.de>
1298
1299         * dumper.cc: Include ansidecl.h before including bfd.h to woraround
1300         a problem with the order in which system include files are included.
1301
1302 2006-12-11  Christopher Faylor  <me@cgf.cx>
1303
1304         * dumper.cc: Add an include to accommodate new include/elf usage.
1305
1306 2006-12-10  Christopher Faylor  <me+cygwin@cgf.cx>
1307
1308         * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and
1309         pass POSIX path directly - this avoids a cygwin DLL warning.
1310
1311 2006-10-21  Corinna Vinschen  <corinna@vinschen.de>
1312
1313         * regtool.cc (key_type): Drop.
1314         (REG_AUTO): Define.
1315         (value_type): Replace key_type.  Use REG_xxx values directly.
1316         Accomodate change throughout.
1317         (longopts): Add --dword, --dword-le, --none, --qword and --hex options.
1318         (opts): Add -d, -D, -n, -Q and -x options.
1319         (types): Array to convert REG_xxx into strings.
1320         (hex): New variable to keep value of --hex option.
1321         (usage): Accomodate new options.  Print only the necessary by default.
1322         Only be verbose in case of -h/--help option.
1323         (cmd_list): Use key separator from -K option when printing.
1324         Print value type when verbose option is given.  Handle so far not
1325         handled REG_xxx types.
1326         (cmd_set): Avoid SEGV due to missing argument.  Handle so far not
1327         handled REG_xxx types.
1328         (cmd_get): Handle --binary option type agnostic.  Handle so far not
1329         handled REG_xxx types.
1330         (main): Handle new options.
1331
1332 2006-10-19  Corinna Vinschen  <corinna@vinschen.de>
1333
1334         * regtool.cc (longopts): Add --wow32 option.
1335         (opts): Add -W option.
1336         (usage): Add text for --wow32/-W option.
1337         (main): Handle --wow32/-W option.
1338         * utils.sgml: Document the new -W option.
1339
1340 2006-10-16  Corinna Vinschen  <corinna@vinschen.de>
1341
1342         * regtool.cc (KEY_WOW64_64KEY): Drop definition.  Instead define 
1343         WINVER to 0x0502 before including windows.h.
1344
1345 2006-10-16  Corinna Vinschen  <corinna@vinschen.de>
1346
1347         * regtool.cc (KEY_WOW64_64KEY): Define.
1348         (longopts): Add --wow64 option.
1349         (opts): Add -w option.
1350         (wow64): New variable to control usage of KEY_WOW64_64KEY access flag.
1351         (usage): Add text for --wow64/-w option.
1352         (print_version): Fix copyright.
1353         (find_key): Use wow64 value in calls to RegOpenKeyEx and RegCreateKeyEx.
1354         (cmd_add): Use wow64 value in call to RegCreateKeyEx.
1355         (regDeleteKeyEx): New function pointer to load RegDeleteKeyEx function
1356         dynamically.
1357         (cmd_remove): Load and use regDeleteKeyEx when wow64 is set.
1358         (main): Handle --wow64/-w option.
1359         * utils.sgml: Document the new -w option.
1360
1361 2006-10-05  Igor Peshansky  <pechtcha@cs.nyu.edu>
1362
1363         * cygcheck.cc (get_word, get_dword): Move to path.cc.
1364         (LINK_EXTENSION): New macro.
1365         (check_existence): New static function.
1366         (find_on_path): Check for symbolic links if asked.
1367         (dll_info): New error handling.
1368         (track_down): Only call dll_info() for executables, display
1369         an error for symlinks, and print magic number for others.
1370         (find_app_on_path): New static function.
1371         (cygcheck, dump_sysinfo): Call find_app_on_path() instead of
1372         find_on_path().
1373         * path.cc (cmp_shortcut_header): New static function.
1374         (get_word, get_dword): Moved from cygcheck.cc.
1375         (EXE_MAGIC, SHORTCUT_MAGIC, SYMLINK_COOKIE, SYMLINK_MAGIC): New
1376         macros.
1377         (is_exe, is_symlink, readlink): New functions.
1378         * path.h (is_exe, is_symlink, readlink): Declare.
1379         (get_word, get_dword): Ditto.
1380
1381 2006-09-12  Christopher Faylor  <cgf@timesys.com>
1382
1383         * Makefile.in: Fix -ntdll typo.
1384
1385 2006-09-11  Eric Blake  <ebb9@byu.net>
1386
1387         * cygcheck.cc (main): Restore POSIXLY_CORRECT before displaying user's
1388         environment.
1389
1390 2006-08-03  Corinna Vinschen  <corinna@vinschen.de>
1391
1392         * path.cc (vconcat): Don't convert backslahes to slashes.
1393         (cygpath): Return native path with all backslashes.
1394
1395 2006-08-02  Corinna Vinschen  <corinna@vinschen.de>
1396
1397         * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll.
1398         * cygpath.cc: Include DDK headers.
1399         (RtlAllocateUnicodeString): New static inline function.
1400         (get_device_name): New static function to evaluate DOS path from
1401         native NT path.
1402         (get_device_paths): New function to do the same for path lists.
1403         (doit): Call get_device_paths/get_device_name where appropriate.
1404
1405 2006-07-30  Ilya Bobir  <ilya@po4ta.com>
1406
1407         * cygpath.cc (get_long_name): Fallback to get_long_path_name_w32impl.
1408
1409 2006-07-27  Corinna Vinschen  <corinna@vinschen.de>
1410
1411         * cygpath.c (get_long_name): Cover the case that GetLongPathName
1412         doesn't return valid information for non-existant files.  Just return
1413         incoming filename in that case.
1414
1415 2006-07-03  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
1416
1417         * Makefile.in: Build setmetamode.exe.
1418         * setmetamode.c: New file.
1419
1420 2006-05-24  Christopher Faylor  <cgf@timesys.com>
1421
1422         * configure.in: Update to newer autoconf.
1423         (thanks to Steve Ellcey)
1424         * configure: Regenerate.
1425         * aclocal.m4: New file.
1426
1427 2006-05-24  Christopher Faylor  <cgf@timesys.com>
1428
1429         * strace.cc (proc_child): Propagate return code from child process.
1430         (dostrace): Ditto.
1431         (main): Ditto.
1432
1433 2006-03-03  Christian Franke <franke@computer.org>
1434
1435         * regtool.cc (options): Add 'binary'.
1436         (usage): Document 'load|unload|save' and '-b'.
1437         (find_key): Add 'options' parameter, add load/unload.
1438         (cmd_set): Add KT_BINARY case.
1439         (cmd_get): Add hex output in KT_BINARY case.
1440         (cmd_load): New function.
1441         (cmd_unload): New function.
1442         (set_privilege): New function.
1443         (cmd_save): New function.
1444         (commands): Add load, unload and save.
1445         (main): Add '-b'
1446         * utils.sgml (regtool): Document it.
1447
1448 2006-02-17  Corinna Vinschen  <corinna@vinschen.de>
1449
1450         * cygpath.cc (get_long_name): Load GetLongPathNameA instead of incorrect
1451         GetLongPathName.
1452         (doit): Create mixed filename after converting to short or long pathname
1453         respectively.
1454
1455 2006-02-17  Jerry D. Hedden  <jerry@hedden.us>
1456
1457         * ps.cc (main): Set aflag if -p option is given.
1458
1459 2006-02-16  Jerry D. Hedden  <jerry@hedden.us>
1460
1461         * ps.cc (longopts): Add --process option.
1462         (opts): Add -p option.
1463         (usage): Mention -p/--process option.
1464         (main): Handle -p option.
1465         * utils.sgml: Describe -p/--process option.
1466
1467 2006-02-15  Igor Peshansky  <pechtcha@cs.nyu.edu>
1468
1469         * regtool.cc (usage): Clarify help for "-K".
1470
1471 2006-02-08  Corinna Vinschen  <corinna@vinschen.de>
1472
1473         * cygcheck.cc (find_on_path): Update copyright text.
1474
1475 2006-02-08  Corinna Vinschen  <corinna@vinschen.de>
1476
1477         * cygcheck.cc (find_on_path): Create copy of rv on successful access
1478         check, since rv can be reused in subsequent calls.
1479
1480 2006-01-19  Christopher Faylor  <cgf@timesys.com>
1481
1482         * cygcheck.cc (common_paths): Add "patch".
1483
1484 2006-01-19  Christopher Faylor  <cgf@timesys.com>
1485
1486         * cygcheck.cc (init_paths): Record first_nonsys_path.
1487         (find_on_path): Start on first nonsys path when !search_sysdirs.
1488
1489 2006-01-18  Christopher Faylor  <cgf@timesys.com>
1490
1491         * Makefile.in (sysconfdir): Remove unneeded variable.
1492
1493         * mkgroup.c: Replace ` with ' throughout.
1494         * mkpasswd.c: Ditto.
1495         * setfacl.c: Ditto.
1496         * ssp.c: Ditto.
1497
1498 2006-01-18  Dave Korn  <dave.korn@artimi.com>
1499
1500         * cygpath.cc (dowin): Remove stray debugging printf statement.
1501
1502 2006-01-17  Corinna Vinschen  <corinna@vinschen.de>
1503
1504         * Makefile.in: Replace etcdir with sysconfdir.
1505
1506 2006-01-13  Brian Dessent  <brian@dessent.net>
1507
1508         * Makefile.in (cygcheck.exe): Do not link against libwininet.a.
1509         * cygcheck.cc (pInternetCloseHandle): Define global function pointer.
1510         (display_internet_error): Use it.
1511         (package_grep): Attempt to load wininet.dll at runtime.  Call WinInet
1512         API through function pointers throughout.
1513
1514 2006-01-13  Corinna Vinschen  <corinna@vinschen.de>
1515
1516         * cygcheck.cc (dump_sysinfo): Convert k32 to HMODULE.
1517
1518 2006-01-13  Corinna Vinschen  <corinna@vinschen.de>
1519
1520         * cygcheck.cc (dump_sysinfo): Convert osname to const and remove casts
1521         in subsequent assignments.  Recognize Longhorn/Vista and report as not
1522         yet supported.  Recognize when running under WOW64 and report native
1523         CPU type.  Slightly rearrange \n printing.
1524
1525 2006-01-12  Christopher Faylor  <cgf@timesys.com>
1526
1527         * cygcheck.cc: Replace ` with ' throughout.
1528
1529 2006-01-05  Christopher Faylor  <cgf@timesys.com>
1530
1531         * cygcheck.cc (dump_sysinfo): Report the failing drive to prevent
1532         having to guess.
1533
1534 2005-12-29  Christopher Faylor  <cgf@timesys.com>
1535
1536         * strace.cc (nprocesses): Make static global.
1537         (quiet): New variable.
1538         (strace_active): Ditto.
1539         (add_child): Increment nprocesses here.  Don't add a child if it is
1540         already added (windows bug?).  Report on child if not quiet.
1541         (get_child): Just return NULL if child not found.
1542         (remove_child): Report on child if not quiet.
1543         (attach_process): Don't complain if given a windows process.  Use
1544         windows pid in error.
1545         (handle_output_debug_string): Issue error if trying to manipulate a process that we don't know about.
1546         Handle _STRACE_CHILD_PID - attach to reported child when we get this.
1547         (proc_child): Move nprocesses to file scope.
1548         Report on exceptions.
1549         (longopts): Implement "--quiet".
1550         (opts): Implement "-q".
1551         (main): Manipulate quiet flag.
1552         * utils.sgml (strace): Add words describing '-q'.
1553
1554 2005-12-29  Christopher Faylor  <cgf@timesys.com>
1555
1556         * cygcheck.cc (common_apps): Add crontab, vi, vim.
1557
1558 2005-12-19  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
1559
1560         * dump_setup.cc (package_find): Fix is_alias computation for "/usr/lib".
1561
1562 2005-12-14  Christopher Faylor  <cgf@timesys.com>
1563
1564         * cygcheck.cc (common_apps): Add a few more binaries to look for.
1565
1566 2005-12-05  Christopher Faylor  <cgf@timesys.com>
1567
1568         * strace.cc (show_usecs): Renamed from 'usecs'.
1569         (main): Use show_usecs rather than usecs.  Toggle delta if '-u' is
1570         specified.
1571         (handle_output_debug_string): Avoid printing microsecond timestamp if
1572         show_usecs == 0.
1573         * utils.sgml (strace): Add words to describe '-u'.
1574
1575 2005-11-22  Brian Dessent  <brian@dessent.net>
1576
1577         * Makefile.in: Link cygcheck with libwininet.a.
1578         * cygcheck.cc: Add includes.
1579         (grep_packages): New global variable.
1580         (display_internet_error): New function.
1581         (safe_chars): New global variable.
1582         (base_url): Ditto.
1583         (package_grep): New function.
1584         (usage): Reword --help output for clarity.  Document new argument.
1585         (longopts): Add 'package-query' option.
1586         (opts): Add 'p' option, reorder to be consistent with 'longopts'.
1587         (main): Accommodate new option.
1588         * utils.sgml (cygcheck): Update --help output.  Document new -p option.
1589
1590 2005-09-22  Corinna Vinschen  <corinna@vinschen.de>
1591
1592         Align error message handling to mkpasswd's error messages throughout.
1593         * mkgroup.c (print_win_error): Create macro calling ...
1594         (_print_win_error): ... this function created from former
1595         print_win_error.  Move up in source.
1596         (PDOMAIN_CONTROLLER_INFOW): Define return type of DsGetDcNameW.
1597         (dsgetdcname): New function pointer for DsGetDcNameW.
1598         (load_netapi): Get DsGetDcNameW address.
1599         (main): If DsGetDcNameW is available, use it.
1600         * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of
1601         DsGetDcNameW.
1602         (dsgetdcname): New function pointer for DsGetDcNameW.
1603         (load_netapi): Get DsGetDcNameW address.
1604         (main): If DsGetDcNameW is available, use it.  Rename local variable
1605         domain_name_specified to domain_specified as in mkgroup.c.
1606
1607 2005-09-08  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1608
1609         * regtool.cc: Extend copyright-years.
1610         (print_version): Ditto.
1611         (cmd_list): Don't depend on terminating '\0' being present on
1612         string-values.
1613         (cmd_get): Don't attempt to read more than present, but keep
1614         extra space for terminating '\0'. Really output REG_BINARY.
1615         Don't leak memory.
1616         (cmd_set): Include trailing '\0' in string's length.
1617
1618 2005-08-18  Corinna Vinschen  <corinna@vinschen.de>
1619
1620         * passwd.c (longopts): Add --logonserver option.
1621         (opts): Add -d option.
1622         (GetPW): Add server parameter which is given to Net functions.
1623         (ChangePW): Ditto.
1624         (PrintPW): Ditto.
1625         (SetModals): Ditto.
1626         (usage): Add description for -d/--logonserver option.
1627         (main): Add option handling for -d/--logonserver.  Use LOGONSERVER
1628         environment variable content for server to contact, unless
1629         -d/--logonserver option is given.  If both is missing, use NULL.
1630
1631 2005-08-16  Brian Dessent  <brian@dessent.net>
1632
1633         * cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.
1634         Avoid extraneous cygrunsrv invocation if 'verbose' is true.
1635
1636 2005-08-03  Corinna Vinschen  <corinna@vinschen.de>
1637
1638         * mount.cc (longopts): Fix typo which disallows --options option.
1639
1640 2005-07-19  Christopher Faylor  <cgf@timesys.com>
1641             Eric Blake  <ebb9@byu.net>
1642
1643         * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
1644
1645 2005-07-05  Eric Blake  <ebb9@byu.net>
1646
1647         * cygcheck.cc (track_down, cygcheck): Return true on success.
1648         (main): Reflect cygcheck failures in exit status.
1649
1650 2005-06-14  Corinna Vinschen  <corinna@vinschen.de>
1651
1652         * parse_pe.c (exclusion::sort_and_check): Remove crude cast.
1653
1654 2005-05-30  Corinna Vinschen  <corinna@vinschen.de>
1655
1656         * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
1657         Editions. Change .NET to 2003 throughout.  Recognize 2003 Web Server
1658         and Datacenter Server. Report when running in terminal server session.
1659
1660 2005-05-27  Christopher Faylor  <cgf@timesys.com>
1661
1662         * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with
1663         older DLLs.
1664         * strace.cc (load_cygwin): Ditto.
1665
1666 2005-05-22  Brian Dessent  <brian@dessent.net>
1667
1668         * cygcheck.cc (dump_sysinfo_services): Add new function that uses
1669         new cygrunsrv options to dump service info.
1670         (dump_sysinfo): Call dump_sysinfo_services if running under NT.
1671         Change 'Cygnus' to 'Cygwin' in output.
1672
1673 2005-05-20  Christopher Faylor  <cgf@timesys.com>
1674
1675         * cygcheck.cc (load_cygwin): Remove debugging statement.
1676
1677 2005-05-20  Christopher Faylor  <cgf@timesys.com>
1678
1679         * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not
1680         set.
1681         (nuke): Fix off by one error in allocation of environment variable.
1682         (load_cygwin): Always set PATH even if cygwin environment is empty.
1683
1684 2005-05-16  Christopher Faylor  <cgf@timesys.com>
1685
1686         * cygcheck.cc (cygwin_internal): Define as a "C" function.
1687         * strace.cc (cygwin_internal): Ditto.
1688
1689         * cygpath.cc (print_version): Update copyright.
1690
1691 2005-05-15  Christopher Faylor  <cgf@timesys.com>
1692
1693         * cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.
1694
1695 2005-05-15  Corinna Vinschen  <corinna@vinschen.de>
1696
1697         * cygcheck.cc (load_cygwin): Don't touch $PATH for now.
1698         (print_version): Fix copyright.
1699         * strace.cc (print_version): Ditto.
1700
1701 2005-05-13  Christopher Faylor  <cgf@timesys.com>
1702
1703         * mount.cc (mount_commands): Display "-X" option when appropriate.
1704
1705 2005-05-08  Christopher Faylor  <cgf@timesys.com>
1706
1707         * cygcheck.cc (nuke): New function.
1708         (load_cygwin): New function.
1709         (main): Use load_cygwin to load argv/envp from cygwin environment, if
1710         appropriate.
1711
1712 2005-05-08  Christopher Faylor  <cgf@timesys.com>
1713
1714         * strace.cc (attach_process): Don't call load_cygwin().  Assume that
1715         it's already happened.
1716         (dotoggle): Ditto.
1717         (main): Set argv from cygwin environment, if it exists.
1718
1719 2005-05-01  Christopher Faylor  <cgf@timesys.com>
1720
1721         * mount.cc (usage): Clarify action of -m option.
1722
1723 2005-04-29  Dave Korn <dave.korn@artimi.com>
1724
1725         * path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'
1726         flags to mnt_opts string if present in mount flags.
1727
1728 2005-04-20  Brian Dessent  <brian@dessent.net>
1729
1730         * utils.sgml (mount): Clarify setting cygdrive prefix for user
1731         and system-wide.
1732
1733 2005-03-24  Brian Dessent  <brian@dessent.net>
1734
1735         * cygcheck.cc (init_paths): Use full path instead of "." for the
1736         current directory.  Do not add "." if present in $PATH.
1737         (dump_sysinfo): Skip placeholder first value of paths[].
1738
1739 2005-03-07  Christopher Faylor  <cgf@timesys.com>
1740
1741         * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change.  Don't
1742         pad signal name with spaces.
1743
1744 2005-03-07  Corinna Vinschen  <corinna@vinschen.de>
1745
1746         * strace.cc (handle_output_debug_string): Fix compiler warning.
1747
1748 2005-03-06  Christopher Faylor  <cgf@timesys.com>
1749
1750         * cygpath.cc (usage): Pass in one more copy of program_name to printf
1751         to avoid a SEGV.
1752
1753 2005-02-27  Christopher Faylor  <cgf@timesys.com>
1754
1755         * regtool.cc (opts): The argument to 'K' is not optional.
1756         (main): Revert previous change.  Just let getopt deal with missing
1757         argument.
1758
1759 2005-02-27  Christopher Faylor  <cgf@timesys.com>
1760
1761         * regtool.cc (main): Avoid a SEGV when nothing follows -K.
1762
1763 2005-02-26  Christopher Faylor  <cgf@timesys.com>
1764
1765         * kill.cc (getsig): Avoid buffer overflow when generating a signal name.
1766
1767         * strace.cc (handle_output_debug_string): Make error a little more specific.
1768
1769 2005-02-23  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
1770
1771         * cygpath.cc (usage): Clarify help output to indicate acceptance
1772         of multiple file names as arguments.
1773
1774 2005-01-16  Christopher Faylor  <cgf@timesys.com>
1775
1776         * ps.cc (main): Eliminate use of PID_ZOMBIE.
1777         * strace.cc (main): Recognize new option for displaying hex value of
1778         strace type.
1779         (handle_output_debug_string): Prepend output with hex value of strace
1780         message if -H is specified.
1781
1782 2005-01-11  Pierre Humblet <pierre.humblet@ieee.org>
1783
1784         * mkpasswd.c (print_win_error): Transform into macro.
1785         (_print_win_error): Upgrade former print_win_error by
1786         printing the line.
1787         (current_user): Call _print_win_error.
1788         (enum_users): Print name in case of lookup failure.
1789         (enum_local_groups): Ditto.
1790
1791 2004-11-18  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1792
1793         * cygcheck.cc (eprintf): New function.
1794
1795 2004-11-16  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1796
1797         * cygcheck.cc (find_on_path): Clear show_error and/or print_failed
1798         parameters to display_error.
1799         (rva_to_offset): Ditto.
1800         (dll_info): Ditto.
1801         (track_down): Ditto.
1802
1803 2004-11-13  Pierre Humblet <pierre.humblet@ieee.org>
1804
1805         * kill.cc (forcekill): Do not pass negative pids to
1806         cygwin_internal. Check if sig == 0. Improve error messages.
1807         (main): Make pid a long long and distinguish between pids, gpids
1808         (i.e. negative pids) and Win9x pids.
1809
1810 2004-11-11  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1811
1812         * cygcheck.cc: Change "keyeprint" to "display_error" throughout.
1813
1814 2004-11-11  Christopher Faylor  <cgf@timesys.com>
1815
1816         * cygcheck.cc (main): Allow a '-l' without an additional argument.
1817
1818 2004-11-11  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1819
1820         * cygcheck.cc (keyeprint): New optional parameters: show_error and
1821         print_failed.
1822
1823 2004-10-31  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1824
1825         * cygcheck.cc (get_dword): Fix errormessage.
1826         (cygwin_info): Ditto.
1827         (track_down): Ditto.
1828         (check_keys): Ditto.
1829
1830 2004-10-27  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1831
1832         * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
1833         dlls.
1834
1835 2004-10-25  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1836
1837         * cygcheck.cc (dump_sysinfo): Add leading newline before legend for
1838         drive-list.
1839
1840 2004-10-22  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1841
1842         * cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
1843         ``unk''.  Use single puts.  Add leading newline.  Line up equal-signs.
1844
1845 2004-10-20  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1846
1847         * cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list.
1848         Change ``Used'' to ``Free'' in helptext-title for drive-list.
1849
1850 2004-10-18  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1851
1852         * cygcheck.cc (pretty_id): Don't let i become negative. Fix
1853         printf-format.
1854
1855 2004-10-17  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1856
1857         * cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
1858
1859 2004-10-17  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1860             Christopher Faylor  <cgf@timesys.com>
1861
1862         * cygcheck.cc (pretty_id): Allocate space for trailing '\0' in uid and
1863         guid.
1864
1865 2004-10-15  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1866             Christopher Faylor  <cgf@timesys.com>
1867
1868         * cygcheck.cc (pretty_id): Don't exit on id error.  Fix size
1869         calculations.
1870
1871 2004-10-14  Christopher Faylor  <cgf@timesys.com>
1872             Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1873
1874         * cygcheck.cc (pretty_id): Correct column calculations.  Abort if id is
1875         acting funny.
1876
1877 2004-10-10  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1878
1879         * cygcheck.cc (add_path): Don't leak memory when path is already in
1880         ``paths''.
1881
1882 2004-10-10  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1883
1884         * cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount
1885         entries.
1886
1887 2004-10-10  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1888
1889         * cygcheck.cc (dump_sysinfo): Don't warn about empty path components,
1890         just display ``.''.
1891
1892 2004-10-06  Corinna Vinschen  <corinna@vinschen.de>
1893
1894         * strace.cc (_impure_ptr): Remove.
1895
1896 2004-10-06  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1897
1898         * cygcheck.cc (dump_sysinfo): Warn about empty path components.
1899
1900 2004-10-04  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1901
1902         * cygcheck.cc (pretty_id): Close pipe.
1903
1904 2004-09-23  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1905
1906         * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
1907         is not set.
1908
1909 2004-09-22  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1910             Corinna Vinschen  <corinna@vinschen.de>
1911
1912         * dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
1913
1914 2004-09-15  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
1915
1916         * getfacl.c (main): Correct layout when nopt is set.
1917
1918 2004-07-12  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
1919
1920         * mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
1921         pointers.
1922         (load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
1923         (enum_local_groups,enum_groups): Add disp_groupname parameter.
1924         Load info for disp_groupname if specified.
1925         (usage): Add description of "-g/--group" option.
1926         (longopts,opts): Add "-g/--group" option.
1927         (main): Process "-g/--group" option.
1928         * utils.sgml (mkgroup): Add description of "-g/--group" option
1929
1930 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
1931
1932         * dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
1933         instead of _raw_size.
1934         (dumper::write_core_dump): Likewise.
1935         * parse_pe.cc (select_data_section): Likewise.
1936
1937 2004-05-29  John Paul Wallington  <jpw@gnu.org>
1938
1939         * ssp.c (usage): Add missing linefeed.
1940
1941 2004-05-27  Christopher Faylor  <cgf@alum.bu.edu>
1942
1943         * kill.cc (listsig): Fix "kill -l" segv.  NSIG includes Signal 0, so we
1944         need to avoid calling strtosigno with NSIG - 1.
1945
1946 2004-03-21  Christopher Faylor  <cgf@redhat.com>
1947
1948         * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
1949
1950 2004-03-15  Christopher Faylor  <cgf@redhat.com>
1951
1952         * cygpath.cc (usage): Don't issue helpful message if -i is used.
1953         (from Igor Pechtchanski)
1954
1955 2004-03-13  Rob Siklos  <rob2@siklos.ca>
1956
1957         * kill.cc (get_debug_priv): New function.
1958         (forcekill): Call get_debug_priv before trying to kill process.
1959
1960 2004-02-24  Christopher Faylor  <cgf@redhat.com>
1961
1962         * cygpath.cc (long_options): Add "mode" option.
1963         (options): Ditto.
1964         (usage): Report on new option.
1965         (report_mode): New function.
1966         (main): Implement -M option.
1967
1968 2004-02-20  Christopher Faylor  <cgf@redhat.com>
1969
1970         * Makefile.in (build_dumper): Detect missing iconv library.
1971
1972         * cygpath.cc (dowin): Report on filename conversion errors.
1973         (doit): Ditto.
1974
1975         * strace.cc (main): Use symbolic constant for _STRACE_ALL when setting
1976         mask.
1977
1978 2004-02-14  Corinna Vinschen  <corinna@vinschen.de>
1979
1980         * ssp.c (opts): Add leading '+' to force posixly correct behaviour.
1981
1982 2004-02-11  Corinna Vinschen  <corinna@vinschen.de>
1983
1984         * strace.cc (opts): Add leading '+' to force posixly correct
1985         behaviour.
1986         (main): Revert POSIXLY_CORRECT manipulations.
1987
1988 2004-02-10  Christopher Faylor  <cgf@redhat.com>
1989
1990         * strace.cc (main): Guard against previous setting of POSIXLY_CORRECT.
1991
1992 2004-02-10  Christopher Faylor  <cgf@redhat.com>
1993
1994         * strace.cc: Update copyrights.
1995         * cygcheck.cc: Update copyrights.
1996
1997 2004-02-10  Christopher Faylor  <cgf@redhat.com>
1998
1999         * strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
2000         * cygcheck.cc (main): Ditto.
2001
2002 2004-01-23  Christopher Faylor  <cgf@redhat.com>
2003
2004         * cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
2005
2006 2004-01-22  Corinna Vinschen  <corinna@vinschen.de>
2007
2008         * cygpath.cc (dowin): Revert accidental checkin from November.
2009
2010 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
2011
2012         * mkgroup.c (main): Print "root" group with local admins group sid
2013         and gid 0.
2014
2015 2003-11-19  Corinna Vinschen  <corinna@vinschen.de>
2016
2017         * Makefile.in: Add rules to build ipcrm and ipcs.
2018         * ipcrm.c: New file.
2019         * ipcs.c: New file.
2020
2021 2003-11-14  Corinna Vinschen  <corinna@vinschen.de>
2022
2023         * mkgroup.c: Avoid compiler warnings throughout.
2024         * mkpasswd.c: Ditto.
2025         * passwd.c: Ditto.
2026
2027 2003-11-07  Mark Blackburn  <marklist@fangorn.ca>
2028
2029         * cygpath.cc (main): Allow multiple pathnames on command line.
2030
2031 2003-11-04  Corinna Vinschen  <corinna@vinschen.de>
2032
2033         * passwd.c (PrintPW): Turn around meaning printed for "Password not
2034         required" option to be in line with Windows meaning.
2035         (main): Use more appropriate 1008 option when calling
2036         NetUserSetInfo to change flag values.
2037
2038 2003-11-04  Corinna Vinschen  <corinna@vinschen.de>
2039
2040         * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).
2041         (version): Bump version number to 1.5.
2042         (longopts): Add -c, -C, -e, -E, -p, -P options.
2043         (opts): Ditto.
2044         (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and
2045         UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress
2046         correct system password settings just because the account has admin
2047         privileges.
2048         (usage): Define as "noreturn" function. Restructure and rephrase
2049         output. Accommodate new options.
2050         (print_version): Fix copyright dates.
2051         (main): Accommodate new options for setting UF_PASSWD_CANT_CHANGE,
2052         UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
2053
2054 2003-10-17  Christopher Faylor  <cgf@redhat.com>
2055
2056         * cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2057
2058 2003-09-20  Christopher Faylor  <cgf@redhat.com>
2059
2060         * kill.cc (main): Allow negative pids (indicates process groups).
2061
2062 2003-09-17  Christopher Faylor  <cgf@redhat.com>
2063
2064         * parse_pe.cc (exclusion::sort_and_check): Make error message a little
2065         more explicit and ignore (hopefully) harmless region overlap.
2066
2067 2003-09-13  Christopher Faylor  <cgf@redhat.com>
2068
2069         * kill.c (forcekill): Wait for process to terminate even if
2070         TerminateProcess says it failed.
2071
2072 2003-09-11  Christopher Faylor  <cgf@redhat.com>
2073
2074         * Makefile.in: Tweak mingw libz.a detection to make it more reliably
2075         detect when libz.a is not available.
2076
2077 2003-09-11  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2078
2079         * cygcheck.cc (dump_only): New global variable.
2080         (usage): Add "--dump-only" option, fix "--verbose" line.
2081         (longopts, opts): Add "--dump-only" option.
2082         (main): Process the "--dump-only" flag.  Add new semantic check.
2083         Pass dump_only information to dump_setup().
2084
2085 2003-09-11  Corinna Vinschen  <corinna@vinschen.de>
2086
2087         * getfacl (main): Remove extern declaration of optind.
2088         * setfacl (main): Remove extern declaration of optarg and optind.
2089
2090 2003-09-10  Christopher Faylor  <cgf@redhat.com>
2091
2092         * Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
2093         * cygcheck.cc: Just include <getopt.h> rather than cygwin version.
2094         (pretty_id): Avoid compiler warnings.
2095         * cygpath.cc (usage): Ditto.
2096
2097 2003-09-10  Christopher Faylor  <cgf@redhat.com>
2098
2099         * Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
2100         * path.cc: Include more path info in cygwin-specific includes since the
2101         cygwin directory is no longer included by default.
2102
2103 2003-09-10  Christopher Faylor  <cgf@redhat.com>
2104
2105         * Makefile.in: More fixups to adjust for the fact that mingw_getopt.o
2106         is no longer built.
2107
2108 2003-09-10  Christopher Faylor  <cgf@redhat.com>
2109
2110         * Makefile.in: Remove references to getopt since it is now part of
2111         mingwex.
2112
2113 2003-09-08  Christopher Faylor  <cgf@redhat.com>
2114
2115         * Makefile.in: Rename libz.h -> zlib.h.
2116
2117 2003-09-07  Christopher Faylor  <cgf@redhat.com>
2118
2119         * Makefile.in: Detect existence of mingw zlib headers and libraries.
2120         Build cygcheck without package checking if they are unavailable.
2121         * dump_setup.cc: Generate dummy zlib macros when zlib is not available.
2122         (open_package_list): Use zlib functions to uncompress package lists.
2123         Return gzFile rather than FILE *.
2124         (check_package_files): Change fp to gzFile to accommodate zlib
2125         functions.  Use gzgets to read from package file.  Use gzclose to close
2126         the handle.
2127         (package_list): Ditto.
2128         (package_find): Ditto.
2129
2130 2003-09-05  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2131
2132         * dump_setup.cc (check_package_files): Don't fail on empty package.
2133
2134 2003-09-01  AJ Reins  <reinsaj@yahoo.com>
2135
2136         * mount.cc (mount_commands): Ensure user mode is actually user mode and
2137         not the default system mode.
2138
2139 2003-08-31  Christopher Faylor  <cgf@redhat.com>
2140
2141         * kill.cc (forcekill): Silence some compiler warnings.
2142
2143 2003-08-31  Christopher Faylor  <cgf@redhat.com>
2144
2145         * Makefile.in: Oops.  Put the '...' in the right place.
2146
2147 2003-08-31  Christopher Faylor  <cgf@redhat.com>
2148
2149         * Makefile.in: Display "..." when not-verbose.
2150
2151         * kill.cc (forcekill): Default to entered pid when pinfo fails.  Issue
2152         some warnings when things don't work.
2153
2154 2003-08-17  David Rothenberger  <daveroth@acm.org>
2155
2156         * dump_setup.cc (check_package_files): Strip leading / and ./ from
2157         package file names.
2158
2159 2003-08-16  David Rothenberger  <daveroth@acm.org>
2160
2161         * dump_setup.cc (package_find): Don't stop searching on missing
2162         file list.
2163         (package_list): Ditto.
2164
2165 2003-08-16  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2166
2167         * dump_setup.cc: (package_list): Make output terse unless
2168         verbose requested.  Fix formatting.
2169         (package_find): Ditto.
2170
2171 2003-08-15  Corinna Vinschen  <corinna@vinschen.de>
2172
2173         * cygcheck.cc (main): Fix some formatting and help text printing.
2174
2175 2003-08-15  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2176
2177         * cygcheck.cc (find_package,list_package): New global
2178         variables.
2179         (usage): Add "--find-package" and "--list-package" options,
2180         reformat output.
2181         (longopts, opts): Add "--find-package" and "--list-package"
2182         options.
2183         (main): Process the "--find-package" and "--list-package"
2184         flags.  Add new semantic checks.  Add calls to find_package()
2185         and list_package().
2186         * dump_setup.cc: Fix header comment.
2187         (match_argv): Change return type to int to distinguish
2188         between real matches and default ones.
2189         (open_package_list): New static function.
2190         (check_package_files): Factor out opening the package list
2191         file into open_package_list().
2192         (get_packages): New static function.
2193         (dump_setup): Factor out getting a list of packages into
2194         get_packages().
2195         (package_list, package_find): New global functions.
2196
2197 2003-08-15  Corinna Vinschen  <corinna@vinschen.de>
2198
2199         * regtool.cc (usage): Add missing linefeed.  Move example to --help
2200         text.  Fix forward slash description.
2201
2202 2003-08-13  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2203
2204         * dump_setup.cc (check_package_files): Fix extra '/' in filename.
2205         Resize command buffer.  Fix buffer overflow bug.
2206
2207 2003-08-09  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2208             Christopher Faylor  <cgf@redhat.com>
2209
2210         * dump_setup.cc (dump_setup): Check for the existence of the package
2211         list file.  Rework slightly to use static buffer for popen commands.
2212
2213 2003-08-07  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2214             Christopher Faylor  <cgf@redhat.com>
2215
2216         * dump_setup.cc (version_len): New static variable.
2217         (could_not_access,directory_exists): New static function.
2218         (file_exists): Ditto.
2219         (check_package_files): Ditto.
2220         (dump_setup): Check the contents of each package if check_files is true
2221         and output the result in the "Status" column.  Flush output after each
2222         package.
2223
2224 2003-08-07  Igor Pechtchanski  <pechtcha@cs.nyu.edu>
2225             Christopher Faylor  <cgf@redhat.com>
2226
2227         * dump_setup.cc (dump_setup): Remove redundant null check.  Add
2228         informative message if package info not found.
2229
2230 2003-07-26  Christopher Faylor  <cgf@redhat.com>
2231
2232         * mount.cc (do_mount): Issue warning when using managed mount option on
2233         non-empty directory.
2234
2235 2003-07-25  Christopher Faylor  <cgf@redhat.com>
2236
2237         * configure.in: Use 'install-sh -c'.
2238         * configure: Regenerate.
2239
2240 2003-07-25  Christopher Faylor  <cgf@redhat.com>
2241
2242         * configure.in: Always use install-sh.
2243         * configure: Regenerate.
2244
2245 2003-07-03  Christopher Faylor  <cgf@redhat.com>
2246
2247         * mount.cc (struct opt): Remove posix option.
2248
2249 2003-07-03  Christopher Faylor  <cgf@redhat.com>
2250
2251         * mount.cc (longopts): Add long "options" keyword.
2252         (opts): Add -o option.
2253         (usage): Display -o option.
2254         (struct opt): New.
2255         (concat3): New function.
2256         (main): Handle -o flag.
2257
2258 2003-06-12  Christopher Faylor  <cgf@redhat.com>
2259
2260         * cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2261
2262 2003-06-12  Christopher Faylor  <cgf@redhat.com>
2263
2264         * cygpath.cc: Throughout, always return error when GetShortPathName
2265         returns 0.
2266
2267 2003-04-26  Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2268
2269         * mkpasswd.c (usage) Remove extra newline from description output.
2270
2271 2003-04-26  Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
2272
2273         * cygcheck.cc (usage) Add description output.
2274         * cygpath.cc (usage) Add description output.
2275         * dumper.cc (usage) Add newline to description output.
2276         * kill.cc (usage) Add description output.
2277         * mkgroup.c (usage) Grammatical change to description output.
2278         * mkpasswd.c (usage) Grammatical change to description output.
2279         * mount.cc (usage) Add description output.
2280         * passwd.c (usage) Add description output.
2281         * ps.cc (usage) Add description output.
2282         * regtool.cc (usage) Add description output.
2283         * setfacl.c (usage) Remove extra newline from description output.
2284         * ssp.c (usage) Add description output.
2285         * strace.cc (usage) Add description output.
2286         * umount.cc (usage) Add description output.
2287
2288 2003-04-10  Pierre Humblet  <pierre.humblet@ieee.org>
2289
2290         * mkpasswd.c (current_user): print uid and gid as unsigned.
2291         (enum_users): Ditto. Do not free servername.
2292         (usage): Update to allow several domains and improve -p.
2293         (main): On Win9x limit uids to 1000. Only print specials
2294         when -l is specified. Add a loop to allow several domains
2295         and free servername in the loop.
2296         * mkgroup.c (enum_groups): Do not free servername.
2297         (usage): Update to allow several domains. Change uid to gid.
2298         (main): Only print specials when -l is specified. Add a
2299         loop to allow several domains and free servername in the loop.
2300
2301 2003-03-24  Christopher Faylor  <cgf@redhat.com>
2302
2303         * cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable
2304         is correctly set.
2305
2306 2003-03-09  Corinna Vinschen  <corinna@vinschen.de>
2307
2308         * getfacl.c (username): Fix ambiguous printf calls.
2309         (groupname): Ditto.
2310         (main): Ditto.
2311
2312 2003-03-04  Christopher Faylor  <cgf@redhat.com>
2313
2314         * Makefile.in (strace.exe): Include mingw_getopt.o in link line.
2315         * cygcheck.cc (print_version): Update copyright.
2316         * strace.cc (print_version): Ditto.
2317         (main): Allow cygwin paths for -o option.
2318         (create_child): Allow cygwin path as argv[0].
2319         * path.cc (path.cc): Allow UNC paths.
2320
2321 2003-03-01  Pierre Humblet  <pierre.humblet@ieee.org>
2322
2323         * mkpasswd.cc (main): On Win95, output both a default line and a
2324         line for the current user (if known) with a pseudorandom uid. If
2325         the -u switch is given, produce a line for the specified user.
2326         * mkgroup.cc (main): On Win95 change the group name from "unknown" to
2327         "all".
2328
2329 2003-02-28  Christopher Faylor  <cgf@redhat.com>
2330
2331         * Makefile.in (cygcheck.o): Fix so that actual mingw include files are
2332         used.
2333         * cygcheck.cc (find_on_path): Translate from cygwin path when qualified
2334         path name found.
2335         (pretty_id): New function.  Dump output of id command.
2336         (dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2337
2338 2003-02-12  Christopher Faylor  <cgf@redhat.com>
2339
2340         * cygpath.cc (doit): Allocate more space for non-path filename.
2341
2342 2003-02-07  Christopher Faylor  <cgf@redhat.com>
2343
2344         * dump_setup.cc (compar): Use case insensitive comparisons.
2345         (dump_setup): Calculate package_len based on already used "len".  Don't
2346         bother with version_len.
2347
2348 2003-02-07  Igor Pechtchanski <pechtcha@cs.nyu.edu>
2349
2350         * dump_setup.cc (dump_setup): Compute the longest package name
2351         and align columns properly.
2352
2353 2003-02-06  Christopher Faylor  <cgf@redhat.com>
2354
2355         * cygcheck.cc (common_apps): Add some more apps.
2356         * path.cc (get_cygdrive): Correctly set system flag.
2357
2358 2003-01-22  Corinna Vinschen  <corinna@vinschen.de>
2359
2360         * Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
2361         (MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2362
2363 2003-01-15  Corinna Vinschen  <corinna@vinschen.de>
2364
2365         * mkgroup.c: Fix copyright date.
2366         * mkpasswd.c: Ditto.
2367         * setfacl.c: Ditto.
2368
2369 2003-01-09  Pierre Humblet  <pierre.humblet@ieee.org>
2370
2371         * setfacl.c (usage): Remove double ":" for mask and other.
2372
2373 2003-01-07  Pierre Humblet <pierre.humblet@ieee.org>
2374
2375         * mkpasswd.c (current_user): Create.
2376         (usage): Reorganize to support Win95/98/ME.
2377         (main): Add option for -c. Reorganize to parse options for
2378         Win95/98/ME and to call current_user. Add username in gecos field
2379         on Win95/98/ME.
2380         * mkgroup.c (enum_groups): Print gid with %u.
2381         (print_win_error): Create from passwd.cc.
2382         (current_group): Create.
2383         (usage): Reorganize to support Win95/98/ME.
2384         (main): Add option for -c. Reorganize to parse options for
2385         Win95/98/ME and to call current_group.
2386
2387 2002-12-14  Pierre Humblet <pierre.humblet@ieee.org>
2388
2389         * setfacl.c (main): Place a single : after other and mask.
2390         * getfacl.c (getaclentry): Allow both : and :: for other and mask.
2391         (main): Remove extraneous break.
2392
2393 2002-11-25  Corinna Vinschen  <corinna@vinschen.de>
2394
2395         * mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.
2396
2397 2002-11-24  Corinna Vinschen  <corinna@vinschen.de>
2398
2399         * setfacl.c (getperm): Set only `other' permission bits.
2400         (getaclentry): Set a_id to -1 by default.
2401
2402 2002-11-24  Corinna Vinschen  <corinna@vinschen.de>
2403
2404         * getfacl.c (permstr): Use `other' permission bits for requesting
2405         ace permissions.
2406
2407 2002-11-08  Corinna Vinschen  <corinna@vinschen.de>
2408
2409         * setfacl.c (usage): Add missing LF.
2410
2411 2002-10-30  Christopher Faylor  <cgf@redhat.com>
2412
2413         * cygpath.cc (get_long_path_name_w32impl): Define similarly to
2414         GetLongPathName.
2415         (get_long_name): Correctly prototype GetLongPathName.
2416         (get_long_paths): Implement using get_long_name to cut down on code
2417         duplication.
2418         (doit): Do various things to make path output work predictably.
2419
2420 2002-10-19  Christopher Faylor  <cgf@redhat.com>
2421
2422         * mount.cc (usage): Correctly report default mode.
2423         * strace.cc (main): Use strtoul as appropriate.
2424
2425 2002-09-29  Christopher Faylor  <cgf@redhat.com>
2426
2427         * cygpath.cc (close_arg): Remove unused static.
2428         * mkgroup.c (enum_local_users): Avoid compiler warning.
2429         (enum_users): Ditto.
2430         * mkpasswd.c: Ditto throughout.
2431         * ssp.c: Ditto throughout.
2432
2433 2002-09-18  Christopher Faylor  <cgf@redhat.com>
2434
2435         * cygcheck.cc: Include sys/time.h rather than time.h to avoid a
2436         compiler error.
2437
2438 2002-09-17  Christopher Faylor  <cgf@redhat.com>
2439
2440         * cygcheck.cc: Reorder includes to avoid compiler error.
2441
2442 2002-09-15  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2443
2444         * cygcheck.cc (print_version) Add final newline.
2445         * getfacl.c (print_version) Add final newline.
2446         * kill.cc (print_version) Add final newline.
2447         * mkgroup.c (print_version) Add final newline.
2448         * mkpasswd.c (print_version) Add final newline.
2449         * mount.cc (print_version) Add final newline.
2450         * passwd.c (print_version) Add final newline.
2451         * ps.cc (print_version) Add final newline.
2452         * regtool.cc (print_version) Add final newline.
2453         * setfacl.c (print_version) Add final newline.
2454         * ssp.c (print_version) Add final newline.
2455         * strace.cc (print_version) Add final newline.
2456         * umount.cc (print_version) Add final newline.
2457
2458 2002-09-12  Igor Pechtchanski <pechtcha@cs.nyu.edu>
2459
2460         * cygpath.cc (options) New global variable.
2461         (main) Make short options global for easier change.
2462         (print_version) Add a missing newline.
2463
2464 2002-08-07  Igor Pechtchanski <pechtcha@cs.nyu.edu>
2465
2466         * regtool.cc (find_key): Add support for custom key separator.
2467         (usage): Document it.
2468
2469 2002-08-02  Corinna Vinschen  <corinna@vinschen.de>
2470
2471         * mkgroup.c (main): Don't print an entry for "Everyone".
2472         * mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
2473         (main): Don't print an entry for "Everyone".
2474
2475 2002-07-06  Christopher Faylor  <cgf@redhat.com>
2476
2477         * configure.in: Check for libiconv.a.
2478         * configure: Regenerate.
2479         * Makefile.in: Add libiconv.a to libraries required for dumper.exe.
2480
2481 2002-07-06  Christopher Faylor  <cgf@redhat.com>
2482
2483         * Makefile.in: Use MINGW stuff from Makefile.common.
2484
2485 2002-07-01  Corinna Vinschen  <corinna@vinschen.de>
2486
2487         * mkgroup.c: Add function pointers for functions from advapi32.dll.
2488         (load_netapi): Load used functions from advapi32.dll.
2489         (main): Use function pointers instead of statically linked functions
2490         from advapi32.dll.
2491
2492 2002-07-01  Christopher Faylor  <cgf@redhat.com>
2493
2494         * mount.cc (main): Ensure that mount_already_exists() also gets default
2495         flag that is passed to do_mount.
2496
2497 2002-06-22  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2498
2499         * cygpath.cc (long_options): Add "dos" and "mixed", correct "close",
2500         "file" and "type" to use NULL flag.
2501         (usage): Clean up usage output (more), accomodate new options.
2502         (main): Add --dos and --mixed options; accomodate all output forms in
2503         --type.  Make UNIXy output default.
2504
2505 2002-06-18  Joshua Daniel Franklin  <joshuadfranklin@yahoo.com>
2506
2507         * cygpath.cc (usage): Clean up usage output.
2508         (dowin): Correct output of -t mixed for -ADHPSW options.
2509
2510 2002-06-14  Corinna Vinschen  <corinna@vinschen.de>
2511
2512         * passwd.c: Rearrange includes to avoid unnecessary warnings.
2513         (GetPW): Add parameter to (dis)allow printing of Windows username.
2514         Use defines instead of numerical constants where possible.
2515         Try avoiding impersonation problem.  Rearrange to print Windows
2516         username only if it's different from Cygwin username.
2517         (ChangePW): Use defines instead of numerical constants where possible.
2518         (main): Call GetPW with additional parameter.  Change error text.
2519
2520 2002-06-14  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2521
2522         * passwd.c (GetPW): Handle case of user-edited /etc/passwd
2523         with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2524
2525 2002-06-09  Christopher Faylor  <cgf@redhat.com>
2526
2527         * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2528         (getmntent): Ditto.
2529
2530 2002-06-09  Christopher Faylor  <cgf@redhat.com>
2531
2532         * mount.cc (main): Use default system/user flag for cygdrive stuff,
2533         too.
2534         (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
2535         * umount.cc (remove_cygdrive_prefix): Ditto.
2536         (main): Use default system/user flag for cygdrive stuff, too.
2537
2538 2002-06-08  Christopher Faylor  <cgf@redhat.com>
2539
2540         * mount.cc (opts): Remove '-i' option.
2541         (usage): Ditto.
2542         (main): Ditto.
2543         (longopts): Remove --import-old-mounts option.
2544
2545 2002-06-07  David Peterson  <chief@mail.idrive.com>
2546             Christopher Faylor  <cgf@redhat.com>
2547
2548         * cygpath.cc: Add option to output windows paths in different formats:
2549         "dos" and "mixed".
2550         (main): Process options.
2551         (doit): Check new options flags.
2552
2553 2002-06-06  Egor Duda <deo@logos-m.ru>
2554
2555         * regtool.cc (Fail): Be more verbose.
2556         (find_key): Add support for remote registry access.
2557         (usage): Document it.
2558         * utils.sgml: Document it.
2559
2560 2002-06-06  Christopher Faylor  <cgf@redhat.com>
2561
2562         * strace.cc (main): Make toggle a local variable.
2563
2564 2002-06-07  Conrad Scott  <conrad.scott@dsl.pipex.com>
2565
2566         * strace.cc (toggle): New global variable.
2567         (error): Use exit instead of ExitProcess so that stdio buffers get
2568         flushed.
2569         (create_child): Remove command line error checking.
2570         (dostrace): Ditto.
2571         (dotoggle): New function.
2572         (usage): Add entry for new option -T|--toggle.  Alphabetize.
2573         (longopts): Add new option -T|--toggle.
2574         (opts): Ditto.
2575         (main): Handle new -T|--toggle option.  Move all command line checking
2576         here from other functions.
2577         * utils.sgml: Update section for strace.
2578
2579 2002-06-05  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2580
2581         * strace.cc (version): New global variable.
2582         (usage): Accommodate stdout output.
2583         (print_version): New function.
2584
2585 2002-06-03  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2586
2587         * ssp.c (version): New global variable.
2588         (longopts): Ditto.
2589         (opts): Ditto.
2590         (run_program): Correct cmd_line typos to cmdline.
2591         (usage): New function.  Standardize usage output.  Add ssp.txt to
2592         --help output.
2593         (print_version): New function.
2594         (main): Accommodate getopt.
2595
2596 2002-06-03  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2597
2598         * umount.cc (version): New global variable.
2599         (longopts): Accommodate new --version option.
2600         (opts): Ditto.
2601         (usage): Standardize usage output.
2602         (print_version): New function.
2603         (main): Accommodate --help, --version options.
2604
2605 2002-06-02  Joshua Daniel Franklin  <joshuadfranklin@yahoo.com>
2606
2607         * regtool.cc (prog_name): New global variable.
2608         (longopts): Ditto.
2609         (opts): Ditto.
2610         (usage): Standardize usage output.  Rearrange/add descriptions.
2611         (print_version): New function.
2612         (main): Accommodate longopts and new --help, --version options.  Add
2613         check for (_argv[optind+1] == NULL).
2614
2615 2002-06-02  Christopher Faylor  <cgf@redhat.com>
2616
2617         * strace.cc (forkdebug): Make true by default.
2618         (attach_process): Use window pid if cygwin pid isn't available (yet).
2619         (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS,
2620         exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
2621
2622 2002-05-30  Christopher Faylor  <cgf@redhat.com>
2623
2624         * mkpasswd.cc (main): Don't reset to binmode if stdout is a terminal.
2625
2626 2002-05-29  Christopher Faylor  <cgf@redhat.com>
2627
2628         * mount.cc (main): Make -b the default.
2629
2630 2002-05-29  Corinna Vinschen  <corinna@vinschen.de>
2631
2632         * ps.cc (main): Use uid or uid32 member of struct external_pinfo
2633         dependent of the value of the struct's version member.
2634
2635 2002-05-29  Corinna Vinschen  <corinna@vinschen.de>
2636
2637         * ps.cc (main): Change print format for uid to unsigned.  Use uid32
2638         member of struct external_pinfo instead of uid.
2639
2640 2002-05-28  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2641
2642         * passwd.c (prog_name): New global variable.
2643         (longopts): Ditto.
2644         (opts): Ditto.
2645         (usage): Standardize output. Accommodate new options.
2646         (print_version): New function.
2647         (main): Accommodate longopts and new --help, --version options.
2648
2649 2002-05-28  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2650
2651         * ps.cc (usage): Fix typo.
2652
2653 2002-05-27  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2654
2655         * ps.cc (prog_name): New global variable.
2656         (longopts): Ditto.
2657         (opts): Ditto.
2658         (usage): New function.
2659         (print_version): New function.
2660         (main): Accommodate longopts and new --help, --version options.
2661
2662 2002-05-26  Christopher Faylor  <cgf@redhat.com>
2663
2664         * strace.cc (attach_process): Don't tell process to start stracing
2665         here.
2666         (proc_child): Do it here, instead, after first debug event.  This
2667         should work around inexplicable races with DebugActiveProcess.
2668         (dostrace): Pass any pid argument to proc_child.
2669
2670 2002-05-23  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2671
2672         * getfacl.c (usage): Standardize usage output. Change return type to
2673         static void.
2674         (print_version): New function.
2675         (longopts): Added longopts for all options.
2676         (main): Accommodate new help and version options.
2677
2678 2002-05-22  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2679
2680         * mount.cc (version): New global variable.
2681         (usage): Standardize usage output.  Accommodate new version option.
2682         (print_version): New function.
2683         (longopts): Accommodate new version option.
2684         (opts): Ditto.
2685         (main): Ditto.
2686
2687 2002-05-22  Corinna Vinschen  <corinna@vinschen.de>
2688
2689         * cygpath.cc (usage): Change usage output slightly.
2690
2691 2002-05-20  Joerg Schaible <joerg.schaible@gmx.de>
2692
2693         * cygpath.cc (main): Add option l to support conversion to
2694         Windows long file names.  Refactured code for capital options.
2695         Support of options from file for capital options.
2696         (dowin): New function.  Refactured from main.
2697         (doit): Call long path conversion.
2698         (get_long_name): New function.
2699         (get_long_paths): New function.
2700         (get_long_path_name_w32impl): New function.  Reimplementation
2701         of Windows API function GetLongPathName (only 98/Me/2000/XP or
2702         higher).
2703         (get_short_name): Call GetShortPathName only once.
2704         (get_short_paths): Fix calculating buffer size.
2705         * utils.sgml: Update cygpath section for l option.
2706
2707 2002-05-18  Christopher Faylor  <cgf@redhat.com>
2708
2709         * strace.cc (add_child): Use calloc since new requires working
2710         libstdc++.a.
2711         (remove_child): Ditto for delete/free.
2712
2713 2002-05-15  Mark Blackburn  <marklist@fangorn.ca>
2714
2715         * cygpath.cc (get_short_paths): Fix more error checking.
2716         (get_short_name): Ditto.
2717
2718 2002-05-14  Joerg Schaible <joerg.schaible@gmx.de>
2719
2720         * cygpath.cc (main): Add option H to show the Windows' profiles
2721         directory.  Support short names for options DPSW.  Clean up
2722         copied code lines.
2723         * utils.sgml: Update cygpath section for H option and s support.
2724
2725 2002-05-14  Mark Blackburn  <marklist@fangorn.ca>
2726
2727         * cygpath.cc (get_short_paths): Fix error checking.
2728
2729 2002-05-13  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2730
2731         * kill.cc (prog_name): New global variable.
2732         (usage): Standardize usage output.  Add descriptions.
2733         (print_version): New function.
2734         (longopts): Accommodate new version option.
2735         (opts): Ditto.
2736         (main): Ditto.
2737
2738 2002-05-13  Christopher Faylor  <cgf@redhat.com>
2739
2740         * kill.cc (listsig): Display numeric id when given symbolic input.
2741
2742 2002-05-13  Christopher Faylor  <cgf@redhat.com>
2743
2744         * kill.cc (usage): Show new options.  Allow specification of output
2745         stream.
2746         (main): Implement 'h' option.
2747
2748 2002-05-13  Christopher Faylor  <cgf@redhat.com>
2749
2750         * Makefile.in (kill.exe): Add as a specific target.
2751         * kill.cc (longopts): New.
2752         (opts): Ditto.
2753         (get_sig): Accept const char * parameter.  Return -1 on unknown signal.
2754         (test_for_unknown_sig): New function.
2755         (listsig): New function.
2756         (main): Use getopt_long for option parsing.  Implement -l, and -s
2757         options.  Use test_for_unknown_sig() to test for signal validity.
2758
2759         * mount.cc (longopts): Make static.
2760         (opts): Ditto.
2761
2762 2002-05-12  Christopher Faylor  <cgf@redhat.com>
2763
2764         * mount.cc (do_mount): Default to non-exec option for remote drives.
2765         Report warnings before attempting a mount.
2766         (longopts): Add no-executable option.
2767         (mount_commands): Ditto.
2768         (opts): Ditto.
2769         (usage): Ditto.  Indicate that system mount is now the default.
2770         (main): Accommodate no-executable option.  Make system mount the
2771         default.
2772         * umount.cc (usage): Indicate that system umount is now the default.
2773         (main): Make system umount the default.
2774
2775 2002-05-07  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2776
2777         * dumper.cc (usage): Standardize usage output.  Generalize to allow use
2778         for help.
2779         (longopts): New struct.  Added longopts for all options.
2780         (print_version): New function.
2781         (main): Change getopt to getopt_long.  Accommodate new help and version
2782         options.
2783
2784 2002-03-29  Corinna Vinschen  <corinna@vinschen.de>
2785
2786         * mkgroup.c (main): Change call to exit() to a return statement.
2787         * mkpasswd.c (main): Ditto.
2788
2789 2002-03-27  Joshua Daniel Franklin  joshuadfranklin@yahoo.com
2790
2791         * mkpasswd.c (usage): Simplify usage output.  Generalize to allow use
2792         for help. Correct '?' typo to 'h'.
2793         (longopts): Add version option.
2794         (opts): Add 'v' version option.
2795         (print_version): New function.
2796         (main): Accommodate new version option.  Accommodate usage parameter
2797         changes.
2798
2799 2002-03-19  Christopher Faylor  <cgf@redhat.com>
2800
2801         * mkgroup.c (usage): Use one just fprintf + string concatenation for
2802         output message.
2803         (print_version): Add void to function type and update copyright.
2804
2805 2002-03-16  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2806
2807         * mkgroup.c (usage): Simplify usage output.  Generalize to allow use
2808         for help. Correct '?' typo to 'h'.
2809         (longopts): Add version option.
2810         (opts): Add 'v' version option.
2811         (print_version): New function.
2812         (main): Accommodate new version option.  Accommodate usage parameter
2813         changes.  Use usage to output help message.
2814
2815 2002-03-15  Corinna Vinschen  <corinna@vinschen.de>
2816
2817         * mkgroup.c (main): When generating group 513, check for computer's
2818         primary domain instead of current user's domain.
2819
2820 2002-03-14  Corinna Vinschen  <corinna@vinschen.de>
2821
2822         * mkgroup.c (main): When generating group 513, check for domain SID
2823         if computer name isn't mapped to a SID.
2824
2825 2001-03-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2826
2827         * kill.cc (usage): Move to top of file.
2828         (getsig): Ditto.
2829         (forcekill): Ditto.
2830
2831 2002-03-06  Christopher Faylor  <cgf@redhat.com>
2832
2833         * cygcheck.cc: Reformat.
2834
2835 2002-03-06  Christopher Faylor  <cgf@redhat.com>
2836
2837         * cygcheck.cc (longopts): Use correct short option for --version.
2838
2839 2002-03-06  Christopher Faylor  <cgf@redhat.com>
2840
2841         * cygpath.cc: Reformat.
2842
2843 2002-02-27 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2844
2845         * cygpath.cc (print_version): New function.
2846         (main): Accommodate new version function.  Initialize 'o' to prevent
2847         warning.
2848
2849 2002-02-27  Christopher Faylor  <cgf@redhat.com>
2850
2851         * cygcheck.cc (main): Eliminate non-GNU formatting glitch.
2852
2853 2002-02-27  Christopher Faylor  <cgf@redhat.com>
2854
2855         * ssp.c (help_desk): Fix compiler warning.
2856
2857 2002-02-27  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
2858             Christopher Faylor  <cgf@redhat.com>
2859
2860         Change appropriate globals to statics throughout.
2861         * cygcheck.cc (usage): Simplify usage output.  Generalize to allow use
2862         for help.
2863         (longopts): Add version option.
2864         (opts): Add 'V" version option.
2865         (print_version): New function.
2866         (main): Accommodate new version option.  Accommodate usage parameter
2867         changes.  Use usage to output help message.
2868
2869 002-02-19  Christopher Faylor  <cgf@redhat.com>
2870
2871         * Makefile.in (CXXFLAGS): Add override so that HAVE_DECL_GETOPT is
2872         defined.
2873         (libbfd): Use -B rather than -L so that bfd from build directory is
2874         correctly found.
2875         (libintl): Ditto.
2876
2877 2002-02-15  Christopher Faylor  <cgf@redhat.com>
2878
2879         * mount.cc (usage): Fix typo in output.
2880
2881 2002-02-14  Christopher Faylor  <cgf@redhat.com>
2882
2883         * strace.cc (attach_process): Change CW_STRACE_ON to CW_STRACE_TOGGLE.
2884
2885 2002-01-31  Corinna Vinschen  <corinna@vinschen.de>
2886
2887         * mkpasswd.c (main): Set default home path for 9x/Me if --path-to-home
2888         isn't given.
2889
2890 2002-01-30  Corinna Vinschen  <corinna@vinschen.de>
2891
2892         * passwd.cc (ChangePW): Add parameter to differ between called for
2893         checking old password and called for changing password.  If called
2894         for checking old password, return non-zero only if password is surely
2895         incorrect.
2896         (main): Call ChangePW() with additional parameter.
2897
2898 2002-01-29  Christopher Faylor  <cgf@redhat.com>
2899
2900         * dump_setup.cc (parse_filename): Don't consider '_' part of the
2901         version.
2902
2903 2002-01-28  Christopher Faylor  <cgf@redhat.com>
2904
2905         * cygcheck.cc: Fix typo.  Remove uid_t kludge.  Rely on kludge in
2906         sys/cygwin.h instead.
2907         * getfacl.c: Add include to remove warning.
2908         * mkgroup.c (main): Assign variables outside of parameter passing.
2909         This seems to eliminate some compiler warnings.
2910
2911 2002-01-28  Christopher Faylor  <cgf@redhat.com>
2912
2913         * cygcheck.cc: Use specific cygwin includes, as required.
2914
2915 2002-01-28  Christopher Faylor  <cgf@redhat.com>
2916
2917         * Makefile.in (MINGW_INCLUDES): Change cygwin include.
2918         * strace.cc: Use specific cygwin includes, as required.
2919         (load_cygwin): New function.  Loads cygwin DLL, if necessary.
2920         (attach_process): Attaches strace to a running process.
2921         (dostrace): Accept pid argument.  Attach to pid if supplied.
2922         (usage): Describe -p option.  Correct system description.
2923         (longopts): Alphabetize.
2924         (opts): Ditto.
2925         (main): Ditto.  Handle -p option.
2926
2927 2002-01-21  Christopher Faylor  <cgf@redhat.com>
2928
2929         * Makefile.in (CXXFLAGS): Ensure that important settings are preserved
2930         even when overriden by command line.
2931
2932 2002-01-21  Christopher Faylor  <cgf@redhat.com>
2933
2934         * Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
2935         * cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning.
2936         (dump_sysinfo): Make variables unsigned to quiet g++ warnings.
2937         * strace.cc (version_string): Rename from SCCSid.
2938         (add_child): Remove unused variable.
2939         (version): Use version_string.  Avoid use of fprintf.
2940
2941 2002-01-21  DJ Delorie  <dj@redhat.com>
2942
2943         * Makefile.in: Use CXX instead of CC to compile C++ sources.
2944
2945 2002-01-17  DJ Delorie  <dj@redhat.com>
2946
2947         * cygcheck.cc (already_did): Avoid default constructors, which may
2948         require exception support.
2949
2950 2001-01-16  Joshua Daniel Franklin  <joshuadfranklin@yahoo.com>
2951
2952         * cygpath.cc (main): Add options to show Desktop and Start
2953         Menu's Programs directory for current user or all users.
2954         Move bulk of DPWS options outside the getopt case statement.
2955         * utils.sgml: Update cygpath section for ADPWS options.
2956
2957 2002-01-15  Joerg Schaible <joerg.schaible@gmx.de>
2958
2959         * cygpath.cc (doit): Empty file ignored using option -i.
2960
2961 2002-01-15  Mark Bradshaw  <bradshaw@crosswalk.com>
2962
2963         * mkpasswd.c (print_win_error): Add a new function.
2964         (enum_users): Use print_win_error.
2965         (enum_local_groups): Ditto.
2966         (main): Ditto.
2967
2968 2001-12-26  Jonathan Kamens  <jik@curl.com>
2969
2970         * cygpath.cc (doit): Detect and warn about an empty path.  Detect and
2971         warn about errors converting a path.
2972         (main): Set prog_name correctly -- don't leave an extra slash or
2973         backslash at the beginning of it.
2974
2975 Fri Dec 14 14:04:37 2001  Jason Tishler <jason@tishler.net>
2976
2977         * mkpasswd.c (enum_users): Change to unconditionally use
2978         the --path-to-home option, if supplied by the user.  Use default
2979         --path-to-home option value, if appropriate.
2980         (usage): Change usage statement to reflect new semantics.
2981         (main): Remove defaulting of the --path-to-home option.
2982
2983 Fri Dec 14 12:10:39 2001  Jason Tishler <jason@tishler.net>
2984
2985         * mkpasswd.c (opts): Add indication that '-p' option requires an
2986         argument.
2987
2988 2001-12-11  Christopher Faylor  <cgf@redhat.com>
2989
2990         * Makefile.in: Add define to CXXFLAGS.
2991
2992 2001-12-03  Christopher Faylor  <cgf@redhat.com>
2993
2994         * cygcheck.cc (usage): Add -c description.
2995         * cygpath.cc (usage): Alphabetize options.
2996         * strace.cc (usage): Ditto.
2997
2998 2001-11-21  Christopher Faylor  <cgf@redhat.com>
2999
3000         * path.cc (cygpath): Don't consider cygdrive stuff when trying to derive
3001         native paths.
3002
3003 2001-11-20  Mark Bradshaw  <bradshaw@staff.crosswalk.com>
3004
3005         * mkpasswd.c: include lmerr.h
3006         (main): New -u option to allow specifying a
3007         specific user.  If specified, groups aren't displayed and
3008         output is limited to only the specified user.
3009         (enum_users): If specific user is specified, via -u option,
3010         display only that user's record.  With -u use NetUserGetInfo
3011         instead of NetUserEnum.
3012         (load_netapi): Added netusergetinfo.
3013
3014 2001-11-15  Gary R. Van Sickle  <g.r.vansickle@worldnet.att.net>
3015
3016         * strace.cc (main): Change getopt() to getopt_long().
3017         Add support for help and version info.
3018         Use new parse_mask() function for -m/--mask option.
3019         (longopts): Add long options structure.
3020         (opts): Move options string from getopts call to static var.
3021         (usage): Print usage information.
3022         (SCCSid): Version info.
3023         (version): New function for displaying version info.
3024         (parse_mask): New function supporting parsing of mnemonics,
3025         hex, and basic expressions in masks.
3026         (mnemonic2ul): New mnemonic parsing function.
3027         (tag_mask_mnemonic): New type.
3028         (mnemonic_table): New table of mnemonics for mnemonic2ul() to
3029         search through.
3030
3031 2001-11-12  Corinna Vinschen  <corinna@vinschen.de>
3032
3033         * cygcheck.cc (dump_sysinfo): Redefine output format slightly.
3034         Print correct build number on 9x/ME systems.
3035
3036 2001-11-12  Christopher Faylor  <cgf@redhat.com>
3037
3038         * cygcheck.cc (main): Slight formatting tweak.
3039
3040 2001-11-12  Corinna Vinschen  <corinna@vinschen.de>
3041
3042         * cygcheck.cc (dump_sysinfo): Add some more details.
3043
3044 2001-11-12  Corinna Vinschen  <corinna@vinschen.de>
3045
3046         * cygcheck.cc (dump_sysinfo): Print more detailed OS information string
3047         using OSVERSIONINFOEX information.
3048
3049 2001-11-11  Christopher Faylor  <cgf@redhat.com>
3050
3051         * path.h: New file.
3052
3053 2001-11-11  Christopher Faylor  <cgf@redhat.com>
3054
3055         * cygcheck.cc (scan_registry): Open registry with read-only access.
3056         (main): Reflect argument change for dump_setup.
3057         * dump_setup.cc (dump_setup): Add preliminary extra argument for future
3058         use.
3059         * path.cc (read_mounts): Open registry with read-only access.
3060
3061 2001-11-11  Christopher Faylor  <cgf@redhat.com>
3062
3063         * cygcheck.cc (main): Display package info when '-s' is specified.
3064         * dump_setup.cc (dump_setup): Change header.  Remove typo.  Always sort
3065         packages output.
3066
3067 2001-11-11  Christopher Faylor  <cgf@redhat.com>
3068
3069         * dump_setup.cc: New file.
3070         * Makefile.in: Add info for dump_setup.o.
3071         * cygcheck.cc (main): Recognize '-c' option for checking setup
3072         installed base.
3073         * path.cc (cygpath): Read mount table if not loaded.
3074
3075 2001-11-10  Christopher Faylor  <cgf@redhat.com>
3076
3077         * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.
3078         * path.cc: New file.
3079         * cygcheck.cc (init_paths): Use MS-DOS path syntax.
3080         (cygwin_info): Properly display cygwin version numbers.  Prettify some
3081         output.
3082         (dump_sysinfo): Calculate max names of posix and ms-dos paths for
3083         prettier output.
3084
3085 2001-11-09  Corinna Vinschen  <corinna@vinschen.de>
3086
3087         * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
3088
3089 2001-11-04  Corinna Vinschen  <corinna@vinschen.de>
3090
3091         * getfacl.c (username): New function.
3092         (groupname): Ditto.
3093         (usage): Ditto.  Add more user friendly help text.
3094         (main): Add -n and --help option.  Print names instead of IDs
3095         unless -n option is given.
3096         * setfacl.c (getperm): Tolerate whitespace and comment chars in input.
3097         (getaclentry): Fix several input string misdetections.
3098         (getaclentries): Allow - as input file name to read from stdin.
3099         Tolerate whitespace and comment chars in input.
3100         (usage): Add more user friendly help text.
3101         (main): Add --help option.
3102
3103 2001-11-04  Egor Duda  <deo@logos-m.ru>
3104
3105         * strace.cc (main): New option '-w'. Start traced process in separate
3106         window. New option '-S x'. Flush buffered output every x seconds.
3107         (create_child): Start child process in new window, when requested.
3108         When requested, periodically flush debugging output.
3109
3110 2001-10-24  Christopher Faylor  <cgf@redhat.com>
3111
3112         * Makefile.in: Remove EXEEXT consideration.  We always need .exe
3113         extensions.
3114
3115 2001-10-20  Corinna Vinschen  <corinna@vinschen.de>
3116
3117         * mkgroup.c: Avoid compiler warnings.
3118         (print_special): New function.
3119         (main): Print special accounts by calling print_special().
3120         * mkpasswd.c: Avoid compiler warnings.
3121         (enum_users): Print additional U-domain\username info in gecos
3122         field when SIDs are printed.
3123         (print_special): New function.
3124         (main): Print special accounts by calling print_special().
3125
3126 2001-10-15  Christopher Faylor  <cgf@redhat.com>
3127
3128         * mkpasswd.cc (enum_users): Shorten "unused" passwd field.
3129
3130 2001-10-13  Christopher Faylor  <cgf@redhat.com>
3131
3132         * Makefile.in: Allow stdinc searching for dumper.
3133
3134 Tue Oct  9 21:59:00 2001  Christopher Faylor <cgf@cygnus.com>
3135
3136         * Makefile.in (MINGW_INCLUDES): Accommodate changes in Makefile.common.
3137
3138 Sun Oct  7 23:06:39 2001  Christopher Faylor <cgf@cygnus.com>
3139
3140         * kill.cc (main): Set exit value to 1 on invalid pid.  Perform minor
3141         cleanup.
3142
3143 Fri Sep 21 20:40:30 2001  Christopher Faylor <cgf@cygnus.com>
3144
3145         * Makefile.in (mingw_getopt.o): Ensure that newlib include directories
3146         are not searched.
3147
3148 Thu Sep 20 21:00:20 2001  Christopher Faylor <cgf@cygnus.com>
3149
3150         * Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.
3151
3152 Wed Sep 19 12:22:08 2001  Christopher Faylor <cgf@cygnus.com>
3153
3154         * Makefile.in: Filter newlib includes from mingw compilation.
3155
3156 2001-09-14  Egor Duda  <deo@logos-m.ru>
3157
3158         * dumper.cc (dumper::dumper): Print error code in case of error.
3159         (dumper::add_thread): Ditto.
3160         (dumper::collect_memory_sections): Ditto.
3161         (dumper::dump_memory_region): Ditto.
3162         (dumper::collect_process_information): Ditto.
3163         (print_section_name): Fix formatting.
3164
3165 2001-09-13  Egor Duda  <deo@logos-m.ru>
3166
3167         * dumper.cc (main): Properly recognize negative pids (used by w9x).
3168
3169 2001-09-09  Egor Duda  <deo@logos-m.ru>
3170
3171         * dumper.cc (main): Change command-line arguments format to be
3172         similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to
3173         CYGWIN environment variable to perform core dumping in case of
3174         program crash.
3175         (usage): Ditto.
3176
3177 Wed Sep  5 22:37:21 2001  Christopher Faylor <cgf@cygnus.com>
3178
3179         * Makefile.in (dumper): Change logic for libbfd and libintl so that
3180         they will be found either in the build tree or the installed directory.
3181         * mkpasswd.c (enum_users): Add a comment as a password for NT.
3182
3183 2001-09-03  Michael A Chase <mchase@ix.netcom.com>
3184
3185         * mount.cc (mount_commands): Don't write /cygdrive/u mount points.
3186
3187 2001-09-03  Michael A Chase <mchase@ix.netcom.com>
3188
3189         * mount.cc (longopts): Add mount-commands to options list.
3190         (usage): Add mount-commands option.
3191         (mount_commands): New function.  Write commands to recreate current
3192         mounts.
3193
3194 Sat Sep  1 15:58:11 2001  Christopher Faylor <cgf@cygnus.com>
3195
3196         * mount.cc (main): Eliminate excess arguments in printf.
3197
3198 2001-08-30  Egor Duda  <deo@logos-m.ru>
3199
3200         * dumper.h: Update copyright notice.
3201         * dumper.cc: Ditto.
3202         * dumper.cc: (dumper::print_core_section_list): New function.
3203         * dumper.h: (dumper::print_core_section_list): Declare it.
3204         * dumper.cc (print_section_name): New function.
3205         (dumper::collect_process_information): Augment debugging output.
3206         Stop debugee processing if it posts double exception.
3207         (usage): Fix typo in option name.
3208
3209 Tue Aug 28 14:45:02 2001  Christopher Faylor <cgf@cygnus.com>
3210
3211         * mount.cc (main): Issue correct warning for 'not enough arguments'.
3212
3213 2001-08-14  Joerg Schaible <joerg.schaible@gmx.de>
3214
3215         * cygpath.cc (main): Support -w for Windows (System) directories and
3216         return physical correct orthography for the Windows System dir.
3217
3218 2001-07-14   Chris Genly  <chgenly@alum.mit.edu>
3219
3220         * regtool.cc (find_key): Handle keys with only one subkey.
3221
3222 Wed Jun 27 22:46:10 2001  Christopher Faylor <cgf@cygnus.com>
3223
3224         * regtool.cc (find_key): Revert previous change.
3225
3226 Wed Jun 27 13:37:41 2001  Keith Starsmeare" <keith_starsmeare@yahoo.co.uk>
3227
3228         * regtool.cc (find_key): Allow '/' as a synonym for '\\'.
3229
3230 Fri Jun 15 00:49:21 2001  Christopher Faylor <cgf@cygnus.com>
3231
3232         * mkpasswd.c (main): Output passwd file in binary mode so that there
3233         are no CRs in the file.
3234         * umount.cc (remove_all_user_mounts): Don't try to remove /cygdrive
3235         mounts.
3236
3237 Tue May  1 10:50:48 2001  Christopher Faylor <cgf@cygnus.com>
3238
3239         * mkpasswd.c (enum_users): Use /bin/bash as the default shell.
3240         (main): Ditto.
3241
3242 Sat Apr 28 22:32:01 2001  Christopher Faylor <cgf@cygnus.com>
3243
3244         * passwd.cc (ttymnam): New function.
3245         (main): Use ttynam() to report name of tty.
3246
3247 2001-04-19  Egor Duda  <deo@logos-m.ru>
3248
3249         * dumper.cc (dumper::init_core_dump): Set architecture field in dump
3250         header.
3251
3252 Mon Apr 16 15:08:00 2001  Corinna Vinschen <vinschen@redhat.com>
3253
3254         * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
3255         `netgroupgetusers'.
3256         (load_netapi): Load function pointers `netlocalgroupgetmembers'
3257         and `netgroupgetusers'.
3258         (enum_local_users): New function.
3259         (enum_local_groups): Call `enum_local_users' for each group if
3260         `print_users' is set.
3261         (enum_users): New function.
3262         (enum_groups): Call `enum_users' for each group if `print_users' is set.
3263         (usage): Add usage text for `-u/--users'.
3264         (longopts): Add option `--users'.
3265         (opts): Add option character `u'.
3266         (main): Set `print_users' according to option `-u/--users'.
3267         Call `enum_local_groups' and `enum_groups' with additional parameter
3268         `print_users'.
3269
3270 2001-04-15  Michael A Chase <mchase@ix.netcom.com>
3271
3272         * mount.cc (longopts): Add help to options list.
3273         (opts): Add 'h' to options string.
3274         * umount.cc (longopts): Add help to options list.
3275         (opts): Add 'h' to options string and change 'R' to 'A'.
3276
3277 2001-04-13  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>
3278
3279         * mkgroup.c (enum_groups): Use RID + offset specified an additional
3280         argument as ID.
3281         (usage): Add description of -o option.
3282         (longopts, opts): Add specifications of -o/--id-offset option.
3283         (main): Add -o option.  Invoke enum_groups with specified offset.
3284         * mkpasswd.c (enum_users): Just like mkgroup.c.
3285         (usage, longopts, opts): Ditto.
3286         (main): Add -o option.  Invoke enum_users with specified offset only
3287         against domain accounts.
3288
3289 2001-04-11  Egor Duda  <deo@logos-m.ru>
3290
3291         * mkgroup.c (uni2ansi): Use native method to convert from Unicode
3292         to multi-byte strings.
3293         * mkpasswd.c (uni2ansi): Ditto.
3294         (enum_users): Pass buffer size when converting string.
3295         (enum_local_groups): Ditto.
3296         * mkgroup.c (enum_groups): Ditto.
3297         (enum_local_groups): Ditto.
3298
3299 Mon Apr  2 22:41:33 2001  Christopher Faylor <cgf@cygnus.com>
3300
3301         * mount.cc (main): Use getopt_long for parsing arguments.
3302         (usage): Reformat, show long and short options.
3303         * umount.cc (main): Ditto, all of the above.
3304
3305 Mon Apr  2 10:58:26 2001  Christopher Faylor <cgf@cygnus.com>
3306
3307         * mount.cc (show_mounts): Change format string to more closely resemble
3308         UNIX when displaying mount table.
3309
3310 Sat Mar 17 21:46:06 2001  Christopher Faylor <cgf@cygnus.com>
3311
3312         * kill.cc (forcekill): Use dwProcessId when opening a process, not the
3313         Cygwin pid.
3314
3315 Mon Mar  5 18:50:00 2001  Corinna Vinschen <vinschen@redhat.com>
3316
3317         * getfacl.c: Add copyright hint.
3318         * setfacl.c: Ditto.
3319         * strace.cc: Ditto.
3320
3321 Tue Jan 09 10:26:23 2001  Tony Sideris  <tonys1110@home.com>
3322
3323         * regtool.cc (cmd_list): Add new registry display options.
3324         (cmd_list): Add code to implement -p, -k, and -l options.
3325
3326         * regtool.cc (Fail): Add call to LocalFree to free memory allocated by
3327         FormatMessage.
3328
3329 Wed Jan 10 09:16:57 2001  Christopher Faylor <cgf@cygnus.com>
3330
3331         * regtool.cc (translate): Ensure that 'c' is initialized.
3332         (cmd_set): Ditto for rv.