OSDN Git Service

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