Christopher Faylor
9dc6005ae2
* regtool.cc (opts): The argument to 'K' is not optional.
...
(main): Revert previous change. Just let getopt deal with missing argument.
2005-02-27 17:55:54 +00:00
Christopher Faylor
2391eea57e
* regtool.cc (main): Avoid a SEGV when nothing follows -K.
2005-02-27 06:10:58 +00:00
Christopher Faylor
78d9eaa5ea
* kill (getsig): Avoid buffer overflow when generating a signal name.
...
* strace.cc (handle_output_debug_string): Make error a little more specific.
2005-02-27 03:03:19 +00:00
Joshua Daniel Franklin
4c6344923e
* cygpath.cc (usage): Clarify help output to indicate acceptance
...
of multiple file names as arguments.
2005-02-24 04:32:45 +00:00
Christopher Faylor
459a956197
* ps.cc (main): Eliminate use of PID_ZOMBIE.
...
* strace.cc (main): Recognize new option for displaying hex value of strace
type.
(handle_output_debug_string): Prepend output with hex value of strace message
if -H is specified.
2005-01-16 17:13:51 +00:00
Pierre Humblet
114b7248ee
2005-01-11 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.c (print_win_error): Transform into macro.
(_print_win_error): Upgrade former print_win_error by
printing the line.
(current_user): Call _print_win_error.
(enum_users): Print name in case of lookup failure.
(enum_local_groups): Ditto.
2005-01-11 23:03:24 +00:00
Joshua Daniel Franklin
c98b30eadc
* .sgml: Cleanup markup for XML validity.
2004-12-24 21:58:38 +00:00
Bas van Gompel
d26eb2a13b
* cygcheck.cc (eprintf): New function.
2004-11-18 05:20:23 +00:00
Bas van Gompel
cd1ab47e38
* cygcheck.cc (find_on_path): Clear show_error and/or print_failed
...
parameters to display_error.
(rva_to_offset): Ditto.
(dll_info): Ditto.
(track_down): Ditto.
2004-11-16 05:16:59 +00:00
Pierre Humblet
87b838398a
2004-11-13 Pierre Humblet <pierre.humblet@ieee.org>
...
* kill.cc (forcekill): Do not pass negative pids to
cygwin_internal. Check if sig == 0. Improve error messages.
(main): Make pid a long long and distinguish between pids, gpids
(i.e. negative pids) and Win9x pids.
2004-11-13 16:30:19 +00:00
Christopher Faylor
213c7a7d94
* cygcheck.cc: Change "keyeprint" to "display_error" throughout.
2004-11-11 01:56:02 +00:00
Christopher Faylor
28fbe53af8
* cygcheck.cc (main): Allow a '-l' without an additional argument.
2004-11-11 01:52:33 +00:00
Bas van Gompel
5ccf388ed8
* cygcheck.cc (keyeprint): New optional parameters: show_error and
...
print_failed.
2004-11-11 01:17:29 +00:00
Bas van Gompel
fe5cd1608b
* cygcheck.cc (get_dword): Fix errormessage.
...
(cygwin_info): Ditto.
(track_down): Ditto.
(check_keys): Ditto.
2004-10-31 18:46:31 +00:00
Bas van Gompel
ccf4c1e6cd
* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
...
dlls.
2004-10-27 01:28:07 +00:00
Christopher Faylor
9a0fdd2315
whitespace
2004-10-25 21:20:09 +00:00
Bas van Gompel
a3a401001a
* cygcheck.cc (dump_sysinfo): Add leading newline before legend for
...
drive-list.
2004-10-25 16:11:41 +00:00
Christopher Faylor
4bfc614b42
fix whitespace, update some copyrights
2004-10-25 15:49:36 +00:00
Christopher Faylor
bc4ab99276
Remove CRs
2004-10-25 15:35:41 +00:00
Bas van Gompel
be1d479e09
* cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
...
``unk''. Use single puts. Add leading newline. Line up equal-signs.
2004-10-22 01:29:10 +00:00
Christopher Faylor
be957eb563
* cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list. Change
...
``Used'' to ``Free'' in helptext-title for drive-list.
2004-10-21 00:06:37 +00:00
Corinna Vinschen
eedf24742c
* cygcheck.cc (pretty_id): Don't let i become negative. Fix
...
printf-format.
2004-10-18 10:25:38 +00:00
Christopher Faylor
3f8c5ee627
fix date
2004-10-18 01:47:00 +00:00
Christopher Faylor
0ffa77a9f5
* cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
2004-10-18 01:44:55 +00:00
Christopher Faylor
0597641a74
* cygcheck.cc (pretty_id): Allocate space for trailing '\0' on uid and guid.
2004-10-17 23:31:23 +00:00
Christopher Faylor
167f0d8513
* cygcheck.cc (pretty_id): Don't exit on id error. Fix size calculations.
2004-10-15 13:57:56 +00:00
Christopher Faylor
902edd4512
* cygcheck.cc (pretty_id): Correct column calculations. Abort if id is acting
...
funny.
2004-10-14 17:35:46 +00:00
Christopher Faylor
a82955fa29
minor change
2004-10-11 02:27:43 +00:00
Christopher Faylor
76ad4d0a6e
* cygcheck.cc (add_path): Don't leak memory when path is already in ``paths''.
2004-10-10 17:07:23 +00:00
Christopher Faylor
0795a24552
* cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount entries.
2004-10-09 23:19:38 +00:00
Christopher Faylor
82e127caac
* cygcheck.cc (dump_sysinfo): Don't warn about empty path components, just
...
display ``.''.
2004-10-09 23:15:36 +00:00
Corinna Vinschen
4f8dc86255
* strace.cc (_impure_ptr): Remove.
2004-10-06 09:51:11 +00:00
Corinna Vinschen
5f175ea697
* cygcheck.cc (dump_sysinfo): Warn about empty path-components.
2004-10-06 09:46:40 +00:00
Corinna Vinschen
a5aa8c3e3a
* cygcheck.cc (pretty_id): Close pipe.
2004-10-04 09:42:08 +00:00
Corinna Vinschen
79de498006
* dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
...
is not set.
2004-09-23 10:32:20 +00:00
Corinna Vinschen
71de401447
* dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
2004-09-22 11:50:51 +00:00
Corinna Vinschen
b103e0d732
* getfacl.c (main): Correct layout when nopt is set.
2004-09-15 07:51:06 +00:00
Corinna Vinschen
e3118d880b
* mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
...
pointers.
(load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
(enum_local_groups,enum_groups): Add disp_groupname parameter.
Load info for disp_groupname if specified.
(usage): Add description of "-g/--group" option.
(longopts,opts): Add "-g/--group" option.
(main): Process "-g/--group" option.
* utils.sgml (mkgroup): Add description of "-g/--group" option
2004-07-12 16:52:16 +00:00
Alan Modra
64b49cceb5
* dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
...
instead of _raw_size.
(dumper::write_core_dump): Likewise.
* parse_pe.cc (select_data_section): Likewise.
2004-06-15 02:18:51 +00:00
Joshua Daniel Franklin
af6b55758b
Define ps status flags
2004-06-11 18:25:06 +00:00
Joshua Daniel Franklin
1a8b65e301
2004-05-29 John Paul Wallington <jpw@gnu.org>
...
* ssp.c (usage): Add missing linefeed.
2004-05-30 06:33:02 +00:00
Christopher Faylor
1973881114
clarify last entry slightly.
2004-05-27 15:58:29 +00:00
Christopher Faylor
0512945eb5
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
...
strtosigno with NSIG - 1.
2004-05-27 15:15:51 +00:00
Christopher Faylor
0cf94b8c62
* cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output.
2004-03-21 17:58:14 +00:00
Christopher Faylor
befdf18b4d
* cygpath.cc (usage): Don't issue helpful message if -i is used.
...
(from Igor Pechtchanski)
2004-03-15 21:34:12 +00:00
Corinna Vinschen
5817840adf
* kill.cc (get_debug_priv): New function.
...
(forcekill): Call get_debug_priv before trying to kill process.
2004-03-13 18:11:13 +00:00
Christopher Faylor
f135dd3ee7
* cygpath.cc (long_options): Add "mode" option.
...
(options): Ditto.
(usage): Report on new option.
(report_mode): New function.
(main): Implement -M option.
2004-02-25 01:23:20 +00:00
Christopher Faylor
7c03f79971
* Makefile.in (build_dumper): Detect missing iconv library.
...
* cygpath.cc (dowin): Report on filename conversion errors.
(doit): Ditto.
* strace.cc (main): Use symbolic constant for _STRACE_ALL when setting mask.
2004-02-21 04:51:15 +00:00
Corinna Vinschen
e92be2201a
* ssp.c (opts): Add leading '+' to force posixly correct behaviour.
2004-02-14 19:43:07 +00:00
Corinna Vinschen
960471b1a6
* strace.cc (opts): Add leading '+' to force posixly correct
...
behaviour.
(main): Revert POSIXLY_CORRECT manipulations.
2004-02-11 13:30:02 +00:00
Joshua Daniel Franklin
49a4f409df
* utils.sgml: Update cygcheck options
2004-02-11 04:10:47 +00:00
Christopher Faylor
6dbfb93a04
* strace.cc (main): Guard against previous setting of POSIXLY_CORRECT.
2004-02-11 00:29:42 +00:00
Christopher Faylor
c662f402aa
* strace.cc: Update copyrights.
...
* cygcheck.cc: Update copyrights.
2004-02-10 16:15:53 +00:00
Christopher Faylor
744ed079bc
* strace.cc (main): Ensure POSIXLY_CORRECT argument ordering.
...
* cygcheck.cc (main): Ditto.
2004-02-10 16:01:31 +00:00
Joshua Daniel Franklin
d5f60b41f4
Cleanup minor markup problems.
2004-01-24 08:10:27 +00:00
Christopher Faylor
7dddf53f5c
* cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
2004-01-23 23:04:27 +00:00
Corinna Vinschen
30352c261c
* cygpath.cc (dowin): Revert accidental checkin from November.
2004-01-22 09:21:56 +00:00
Joshua Daniel Franklin
701c67ff9e
Document new passwd options.
2004-01-20 01:00:20 +00:00
Corinna Vinschen
f25babdf07
* mkgroup.c (main): Print "root" group with local admins group sid
...
and gid 0.
2003-11-26 15:47:44 +00:00
Corinna Vinschen
e545df31d5
* Makefile.in: Add rules to build ipcrm and ipcs.
...
* ipcrm.c: New file.
* ipcs.c: New file.
2003-11-19 18:50:52 +00:00
Corinna Vinschen
7326e3ffd9
Revert most of last check in to ChangeLog. It duplicated
...
accidentally a big bunch of old entries.
2003-11-19 10:11:46 +00:00
Corinna Vinschen
508682370b
* mkgroup.c: Avoid compiler warnings throughout.
...
* mkpasswd.c: Ditto.
* passwd.c: Ditto.
2003-11-14 19:14:43 +00:00
Corinna Vinschen
0a5ea9471b
* cygpath.cc (main): Allow multiple pathnames on command line.
2003-11-07 18:30:35 +00:00
Corinna Vinschen
02bd05e386
* passwd.c (PrintPW): Turn around meaning printed for "Password not
...
required" option to be in line with Windows meaning.
(main): Use more appropriate 1008 option when calling
NetUserSetInfo to change flag values.
2003-11-04 10:54:47 +00:00
Corinna Vinschen
1f4e5e1571
* passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).
...
(version): Bump version number to 1.5.
(longopts): Add -c, -C, -e, -E, -p, -P options.
(opts): Ditto.
(PrintPW): Print values of UF_PASSWD_CANT_CHANGE and
UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress
correct system password settings just because the account has admin
privileges.
(usage): Define as "noreturn" function. Restructure and rephrase
output. Accomodate new options.
(print_version): Fix copyright dates.
(main): Accomodate new options for setting UF_PASSWD_CANT_CHANGE,
UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
2003-11-04 10:30:35 +00:00
Christopher Faylor
ce17145aa8
revert accidental checkin
2003-10-17 17:20:06 +00:00
Christopher Faylor
fa10472e4a
* cygcheck.cc (pretty_id): Don't exec if `id' program is not found.
2003-10-17 17:19:31 +00:00
Christopher Faylor
7ed1b504b6
* kill.cc (main): Allow negative pids (indicates process groups).
2003-09-20 20:24:33 +00:00
Christopher Faylor
b1e00863f3
* parse_pe.cc (exclusion::sort_and_check): Make error message a little more
...
explicit and ignore (hopefully) harmless region overlap.
2003-09-18 01:46:18 +00:00
Christopher Faylor
a98a001169
* kill.c (forcekill): Wait for process to terminate even if TerminateProcess
...
says it failed.
2003-09-13 18:20:52 +00:00
Christopher Faylor
3a25635489
* Makefile.in: Tweak mingw libz.a detection to make it more reliably detect
...
when libz.a is not available.
2003-09-12 01:51:21 +00:00
Corinna Vinschen
59a7603554
* cygcheck.cc (dump_only): New global variable.
...
(usage): Add "--dump-only" option, fix "--verbose" line.
(longopts, opts): Add "--dump-only" option.
(main): Process the "--dump-only" flag. Add new semantic check.
Pass dump_only information to dump_setup().
2003-09-11 16:24:26 +00:00
Corinna Vinschen
a5ba4027f4
* getfacl (main): Remove extern declaration of optind.
...
* setfacl (main): Remove extern declaration of optarg and optind.
2003-09-11 07:55:51 +00:00
Christopher Faylor
bd79b736d4
* Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
...
* cygcheck.cc: Just include <getopt.h> rather than cygwin version.
(pretty_id): Avoid compiler warnings.
* cygpath.cc (usage): Ditto.
2003-09-11 02:56:40 +00:00
Christopher Faylor
b07b167eec
* Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
...
* path.cc: Include more path info in cygwin-specific includes since the cygwin
directory is no longer included by default.
2003-09-11 02:00:42 +00:00
Christopher Faylor
704d8c321e
* Makefile.in: More fixups to adjust for the fact that mingw_getopt.o is no
...
longer built.
2003-09-11 00:07:28 +00:00
Christopher Faylor
4a6890e76e
* Makefile.in: Remove references to getopt since it is now part of mingwex.
2003-09-10 21:55:59 +00:00
Christopher Faylor
87f9911114
fix typo
2003-09-08 05:09:13 +00:00
Christopher Faylor
7b06693464
* Makefile.in (zlib_h): Rename libz.h -> zlib.h.
2003-09-08 04:29:34 +00:00
Christopher Faylor
d31c5928dd
* Makefile.in: Detect existence of mingw zlib headers and libraries. Build
...
cygcheck wihtout package checking if they are unavailable.
* dump_setup.cc: Generate dummy zlib macros when zlib is not available.
(open_package_list): Use zlib functions to uncompress package lists. Return
gzFile rather than FILE *.
(check_package_files): Change fp to gzFile to accommodate zlib functions. Use
gzgets to read from package file. Use gzclose to close the handle.
(package_list): Ditto.
(package_find): Ditto.
2003-09-08 02:50:02 +00:00
Christopher Faylor
1f602fd729
* dump_setup.cc (check_package_files): Don't fail on empty package.
2003-09-06 02:02:30 +00:00
Christopher Faylor
e48feef96a
* mount.cc (mount_commands): Ensure user mode is actually user mode and not the
...
default system mode.
2003-09-04 01:04:57 +00:00
Christopher Faylor
ef58cd2f44
* kill.cc (forcekill): Silence some compiler warnings.
2003-09-01 02:40:16 +00:00
Christopher Faylor
f6f88b66d2
* Makefile.in: Oops. Put the '...' in the right place.
2003-09-01 02:33:50 +00:00
Christopher Faylor
40d885eb7b
* Makefile.in: Display "..." when not-verbose.
...
* kill.cc (forcekill): Default to entered pid when pinfo fails. Issue some
warnings when things don't work.
2003-09-01 01:57:44 +00:00
Corinna Vinschen
919497ee6b
* dump_setup.cc (check_package_files): Strip leading / and ./ from
...
package file names.
2003-08-17 17:26:08 +00:00
Corinna Vinschen
b723879025
* dump_setup.cc (package_find): Don't stop searching on missing
...
file list.
(package_list): Ditto.
* dump_setup.cc: (package_list): Make output terse unless
verbose requested. Fix formatting.
(package_find): Ditto.
2003-08-16 09:09:09 +00:00
Corinna Vinschen
200f243c42
* cygcheck.cc (main): Fix some formatting and help text printing.
...
* cygcheck.cc (find_package,list_package): New global
variables.
(usage): Add "--find-package" and "--list-package" options,
reformat output.
(longopts, opts): Add "--find-package" and "--list-package"
options.
(main): Process the "--find-package" and "--list-package"
flags. Add new semantic checks. Add calls to find_package()
and list_package().
* dump_setup.cc: Fix header comment.
(match_argv): Change return type to int to distinguish
between real matches and default ones.
(open_package_list): New static function.
(check_package_files): Factor out opening the package list
file into open_package_list().
(get_packages): New static function.
(dump_setup): Factor out getting a list of packages into
get_packages().
(package_list, package_find): New global functions.
2003-08-15 20:26:11 +00:00
Corinna Vinschen
dae37d5d84
* regtool.cc (usage): Add missing linefeed. Move example to --help
...
text. Fix forward slash description.
2003-08-15 08:58:54 +00:00
Corinna Vinschen
e2b1a74c13
* dump_setup.cc (check_package_files): Fix extra '/' in filename.
...
Resize command buffer. Fix buffer overflow bug.
2003-08-13 19:37:40 +00:00
Christopher Faylor
e41630b08a
* dump_setup.cc (dump_setup): Check for the existence of the package list file.
...
Rework slightly to use static buffer for popen commands.
2003-08-10 01:07:04 +00:00
Christopher Faylor
58d4b72d33
* dump_setup.cc (version_len): New static variable.
...
(could_not_access,directory_exists): New static function.
(file_exists): Ditto.
(check_package_files): Ditto.
(dump_setup): Check the contents of each package if check_files is true and
output the result in the "Status" column. Flush output after each package.
* dump_setup.cc (dump_setup): Remove redundant null check. Add informative
message if package info not found.
2003-08-09 16:32:22 +00:00
Christopher Faylor
2f631ebc94
change default for --change-default-prefix
2003-08-05 01:06:22 +00:00
Christopher Faylor
035df9eff5
* mount.cc (do_mount): Issue warning when using managed mount option on
...
non-empty directory.
2003-07-26 05:38:51 +00:00
Christopher Faylor
ddb6762155
* configure.in: Use 'install-sh -c'.
...
* configure: Regenerate.
2003-07-26 01:53:18 +00:00
Christopher Faylor
5ed664d4a6
preliminary checkin
2003-07-26 00:28:59 +00:00
Christopher Faylor
9ddd929f68
preliminary checkin
2003-07-26 00:10:48 +00:00
Christopher Faylor
7f4773b3ef
* configure.in: Always use install-sh.
...
* configure: Regenerate.
2003-07-25 23:52:30 +00:00
Christopher Faylor
baf77a53b0
* mount.cc (struct opt): Remove posix option.
2003-07-04 03:20:22 +00:00
Christopher Faylor
08604f02bc
* mount.cc (longopts): Add long "options" keyword.
...
(opts): Add -o option.
(usage): Display -o option.
(struct opt): New.
(concat3): New function.
(main): Handle -o flag.
2003-07-04 03:11:18 +00:00