OSDN Git Service

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