OSDN Git Service

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