Christopher Faylor
daed3bec54
revert erroneous checkin
2005-10-11 18:39:02 +00:00
Christopher Faylor
a5ac89cbbd
* Makefile.common (CFLAGS_COMMON): Add -Wstrict-aliasing.
2005-10-11 18:17:59 +00:00
Christopher Faylor
b94d50c035
add other options
2005-10-03 16:39:29 +00:00
Corinna Vinschen
f3a61fc4aa
Fix typo.
2005-09-21 22:27:38 +00:00
Corinna Vinschen
d829da1423
Align error message handling to mkpasswd's error messages throughout.
...
* mkgroup.c (print_win_error): Create macro calling ...
(_print_win_error): ... this function created from former
print_win_error. Move up in source.
(PDOMAIN_CONTROLLER_INFOW): Define return type of DcGetDcNameW.
(dsgetdcname): New function pointer for DcGetDcNameW.
(load_netapi): Get DcGetDcNameW address.
(main): If DcGetDcNameW is available, use it.
* mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of
DcGetDcNameW.
(dsgetdcname): New function pointer for DcGetDcNameW.
(load_netapi): Get DcGetDcNameW address.
(main): If DcGetDcNameW is available, use it. Rename local variable
domain_name_specified to domain_specified as in mkgroup.c.
2005-09-21 22:26:08 +00:00
Corinna Vinschen
b17b7644d5
* regtool.cc: Extend copyright-years.
...
(print_version): Ditto.
(cmd_list): Don't depend on terminating '\0' being present on
string-values.
(cmd_get): Don't attempt to read more than present, but keep
extra space for terminating '\0'. Really output REG_BINARY.
Don't leak memory.
(cmd_set): Include trailing '\0' in string's length.
2005-09-08 09:24:41 +00:00
Corinna Vinschen
4fa0a39865
* passwd.c (longopts): Add --logonserver option.
...
(opts): Add -d option.
(GetPW): Add server parameter which is given to Net functions.
(ChangePW): Ditto.
(PrintPW): Ditto.
(SetModals): Ditto.
(usage): Add description for -d/--logonserver option.
(main): Add option handling for -d/--logonserver. Use LOGONSERVER
environment variable content for server to contact, unless
-d/--logonserver option is given. If both is missing, use NULL.
2005-08-18 20:25:43 +00:00
Brian Dessent
9a99dcd39c
* cygcheck.cc (dump_sysinfo_services): Properly null-terminate 'buf'.
...
Avoid extraneous cygrunsrv invocation if 'verbose' is true.
2005-08-17 00:52:43 +00:00
Corinna Vinschen
bb002a4968
* mount.cc (longopts): Fix typo which disallows --options option.
2005-08-03 09:23:39 +00:00
Christopher Faylor
0eccec28cc
* cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search.
2005-07-19 21:00:34 +00:00
Christopher Faylor
27eb5dbc70
* cygcheck.cc (track_down, cygcheck): Return true on success.
...
(main): Reflect cygcheck failures in exit status.
2005-07-05 21:41:37 +00:00
Corinna Vinschen
d1ce2c4a15
* parse_pe.c (exclusion::sort_and_check): Remove crude cast.
2005-06-14 12:42:57 +00:00
Corinna Vinschen
26797de314
* cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PC
...
Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server
and Datacenter Server. Report when running in terminal server session.
2005-05-30 15:49:31 +00:00
Christopher Faylor
cba3b11fc5
* cygcheck.cc (load_cygwin): Make half-hearted attempt to work with older DLLs.
...
* strace.cc (load_cygwin): Ditto.
2005-05-27 15:45:53 +00:00
Corinna Vinschen
827cff7fe2
* cygcheck.cc (dump_sysinfo_services): Add new function that uses
...
new cygrunsrv options to dump service info.
(dump_sysinfo): Call dump_sysinfo_services if running under NT.
Change 'Cygnus' to 'Cygwin' in output.
2005-05-23 09:54:44 +00:00
Christopher Faylor
f609f58d32
* cygcheck.cc (load_cygwin): Remove debugging statement.
2005-05-20 16:50:39 +00:00
Christopher Faylor
ceb7fa1c4a
* cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.
...
(nuke): Fix off by one error in allocation of environment variable.
(load_cygwin): Always set PATH even if cygwin environment is empty.
2005-05-20 16:38:42 +00:00
Christopher Faylor
ac674bc896
* cygcheck.cc (cygwin_internal): Define as a "C" function.
...
* strace.cc (cygwin_internal): Ditto.
* cygpath.cc (print_version): Update copyright.
2005-05-17 01:26:16 +00:00
Christopher Faylor
41dcb6199c
* cygcheck.cc (load_cygwin): Avoid calling putenv with a NULL path.
2005-05-16 03:18:29 +00:00
Corinna Vinschen
90253b8276
* cygcheck.cc (load_cygwin): Don't touch $PATH for now.
...
(print_version): Fix copyright.
* strace.cc (print_version): Ditto.
2005-05-15 12:29:47 +00:00
Christopher Faylor
180cd17fa1
* mount.cc (mount_commands): Display "-X" option when appropriate.
2005-05-13 20:24:20 +00:00
Christopher Faylor
f991d0e53e
* cygcheck.cc (nuke): New function.
...
(load_cygwin): New function.
(main): Use load_cygwin to load argv/envp from cygwin environment, if
appropriate.
2005-05-09 01:56:34 +00:00
Christopher Faylor
26c07f704b
* strace.cc (attach_process): Don't call load_cygwin(). Assume that it's
...
already happened.
(dotoggle): Ditto.
(main): Set argv from cygwin environment, if it exists.
2005-05-09 01:21:43 +00:00
Christopher Faylor
0d235234c5
* mount.cc (usage): Clarify action of -m option.
2005-05-01 15:50:02 +00:00
Dave Korn
65e941162d
* path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'flags to
...
mnt_opts string if present in mount flags.
2005-04-29 16:39:34 +00:00
Christopher Faylor
6f4a176f07
* mount.cc (mount_commands): Display "-X" option when appropriate.
2005-04-25 14:40:53 +00:00
Corinna Vinschen
a30482a386
* utils.sgml (mount): Clarify setting cygdrive prefix for user
...
and system-wide.
2005-04-20 12:25:43 +00:00
Corinna Vinschen
0f0595abd9
* cygcheck.cc (init_paths): Use full path instead of "." for the
...
current directory. Do not add "." if present in $PATH.
(dump_sysinfo): Skip placeholder first value of paths[].
2005-03-24 14:48:15 +00:00
Christopher Faylor
4534561877
* kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't pad
...
signal name with spaces.
2005-03-08 04:06:26 +00:00
Corinna Vinschen
a593a4c5e3
* strace.cc (handle_output_debug_string): Fix compiler warning.
2005-03-07 10:24:23 +00:00
Christopher Faylor
5f8e4efa67
* cygpath.cc (usage): Pass in one more copy of program_name to printf to avoid
...
a SEGV.
2005-03-06 18:00:03 +00:00
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