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
Christopher Faylor
6806f4f6e2
* cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2003-06-13 02:36:12 +00:00
Christopher Faylor
8d60a6029c
clarify
2003-06-13 02:21:18 +00:00
Christopher Faylor
cc3ce0bb5f
Throughout, always return error when GetShortPathName returns 0.
2003-06-12 20:40:58 +00:00
Joshua Daniel Franklin
45bfd8ed74
* mkpasswd.c (usage) Remove extra newline from description output.
2003-04-26 22:33:00 +00:00
Joshua Daniel Franklin
aa275fe010
* cygcheck.cc (usage) Add description output.
2003-04-26 21:52:03 +00:00
Joshua Daniel Franklin
518a04c40b
Pierre's update for mkgroup/mkpasswd
2003-04-10 23:27:13 +00:00
Pierre Humblet
57efd527df
2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.c (current_user): print uid and gid as unsigned.
(enum_users): Ditto. Do not free servername.
(usage): Update to allow several domains and improve -p.
(main): On Win9x limit uids to 1000. Only print specials
when -l is specified. Add a loop to allow several domains
and free servername in the loop.
* mkgroup.c (enum_groups): Do not free servername.
(usage): Update to allow several domains. Change uid to gid.
(main): Only print specials when -l is specified. Add a
loop to allow several domains and free servername in the loop.
2003-04-10 01:14:18 +00:00
Christopher Faylor
921587de50
note mount binary default.
2003-03-27 18:46:16 +00:00
Christopher Faylor
ce7a361072
* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
...
correctly set.
2003-03-25 01:20:04 +00:00
Christopher Faylor
0e2b01821a
fix typo
2003-03-12 17:21:31 +00:00
Christopher Faylor
bc1c4e1e64
.
2003-03-09 19:29:22 +00:00
Corinna Vinschen
ef1aafb0f3
* getfacl.c (username): Fix ambiguous printf calls.
...
(groupname): Ditto.
(main): Ditto.
2003-03-09 19:04:23 +00:00
Christopher Faylor
229f2bb465
* Makefile.in (strace.exe): Include mingw_getopt.o in link line.
...
* cygcheck.cc (print_version): Update copyright.
* strace.cc (print_version): Ditto.
(main): Allow cygwin paths for -o option.
(create_child): Allow cygwin path as argv[0].
* path.cc (path.cc): Allow UNC paths.
2003-03-04 05:30:50 +00:00
Joshua Daniel Franklin
34a50bf03f
Document new mkgroup,mkpasswd options
2003-03-01 17:29:51 +00:00
Pierre Humblet
f78765dadd
2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.cc (main): On Win95, output both a default line and a
line for the current user (if known) with a pseudorandom uid. If
the -u switch is given, produce a line for the specified user.
* mkgroup.cc (main): On Win95 change the group name from "unknown" to
"all".
2003-03-01 16:38:26 +00:00
Christopher Faylor
dbc49afd52
* Makefile.in (cygcheck.o): Fix so that actual mingw include files are used.
...
* cygcheck.cc (find_on_path): Translate from cygwin path when qualified path
name found.
(pretty_id): New function. Dump output of id command.
(dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2003-03-01 03:38:19 +00:00
Christopher Faylor
7ca68b7ec3
* cygpath.cc (doit): Allocate more space for non-path filename.
2003-02-12 22:48:13 +00:00
Christopher Faylor
3202ad2b9e
* dump_setup.cc (compar): Use case insensitive comparisons.
...
(dump_setup): Calculate package_len based on already used "len". Don't bother
with version_len.
2003-02-07 21:34:34 +00:00
Corinna Vinschen
eceb45bdff
* dump_setup.cc (dump_setup): Compute the longest package name
...
and align columns properly.
2003-02-07 21:11:44 +00:00
Christopher Faylor
4a9cbef09d
* cygcheck.cc (common_apps): Add some more apps.
...
* path.cc (get_cygdrive): Correctly set system flag.
2003-02-07 04:51:26 +00:00
Joshua Daniel Franklin
46c1de5bf7
* cygwinenv.sgml: Add section for 'CYGWIN codepage:[ansi|oem]'
2003-02-03 00:30:45 +00:00
Corinna Vinschen
92005b4cec
* Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
...
(MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2003-01-22 17:15:53 +00:00
Corinna Vinschen
3903b47b79
* mkgroup.c: Fix copyright date.
...
* mkpasswd.c: Ditto.
* setfacl.c: Ditto.
Fix ChangeLog typos.
2003-01-15 10:08:37 +00:00
Corinna Vinschen
e410614acf
* setfacl (usage): Remove double ":" for mask and other.
2003-01-10 11:39:19 +00:00
Corinna Vinschen
f1c9046a57
* mkpasswd.cc (current_user): Create.
...
(usage): Reorganize to support Win95/98/ME.
(main): Add option for -c. Reorganize to parse options for
Win95/98/ME and to call current_user. Add username in gecos field
on Win95/98/ME.
* mkgroup.cc (enum_groups): Print gid with %u.
(print_win_error): Create from passwd.cc.
(current_group): Create.
(usage): Reorganize to support Win95/98/ME.
(main): Add option for -c. Reorganize to parse options for
Win95/98/ME and to call current_group.
2003-01-08 17:38:11 +00:00
Christopher Faylor
c6c890e21a
minor reformatting
2002-12-25 23:49:40 +00:00
Corinna Vinschen
2b3ddfcd26
* setfacl.c (main): Place a single : after other and mask.
...
* getfacl.c (getaclentry): Allow both : and :: for other and mask.
(main): Remove extraneous break.
2002-12-15 10:09:35 +00:00
Corinna Vinschen
d1b6d5cd14
* mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.
2002-11-25 15:12:50 +00:00
Corinna Vinschen
2d06bd1109
* setfacl.c (getperm): Set only `other' permission bits.
...
(getaclentry): Set a_id to -1 by default.
2002-11-24 18:07:30 +00:00
Corinna Vinschen
ad2bc53e8f
* getfacl.c (permstr): Use `other' permission bits for requesting
...
ace permissions.
2002-11-24 16:15:33 +00:00
Corinna Vinschen
7c4f9b9a05
* setfacl.c (usage): Add missing LF.
2002-11-08 10:22:58 +00:00
Christopher Faylor
cf157504a8
* cygpath.cc (get_long_path_name_w32impl): Define similarly to GetLongPathName.
...
(get_long_name): Correctly prototype GetLongPathName.
(get_long_paths): Implement using get_long_name to cut down on code
duplication.
(doit): Do various things to make path output work predictably.
2002-10-31 02:40:26 +00:00
Christopher Faylor
3350721cff
fix changelog
2002-10-19 11:59:14 +00:00
Christopher Faylor
7c51881531
* mount.cc (usage): Correctly report default mode.
2002-10-19 11:41:31 +00:00
Christopher Faylor
0fa64fa3a7
* cygpath.cc (close_arg): Remove unused static.
...
* mkgroup.c (enum_local_users): Avoid compiler warning.
(enum_users): Ditto.
* mkpasswd.c: Ditto throughout.
* ssp.c: Ditto throughout.
2002-09-30 03:01:17 +00:00
Christopher Faylor
468b26c591
* cygcheck.cc: Include sys/time.h rather than time.h to avoid a compiler error.
2002-09-19 03:48:19 +00:00
Christopher Faylor
4ddb62e794
* cygcheck.cc: Reorder includes to avoid compiler error.
2002-09-17 17:13:21 +00:00
Joshua Daniel Franklin
98467dae59
Add final newlines to utils
2002-09-15 19:24:37 +00:00
Joshua Daniel Franklin
9b566b9695
2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
...
* cygpath.cc (options) New global variable.
(main) Make short options global for easier change.
(print_version) Add a missing newline.
2002-09-15 15:19:49 +00:00
Christopher Faylor
02eb4ad4d4
output some newlines.
2002-08-23 15:46:00 +00:00
Christopher Faylor
62012a3f31
fix some glitches
2002-08-21 15:42:18 +00:00
Christopher Faylor
403985a498
* regtool.cc (find_key): Add support for custom key separator.
...
(usage): Document it.
2002-08-13 15:37:32 +00:00
Corinna Vinschen
32c803daa2
* mkgroup.c (main): Don't print an entry for "Everyone".
...
* mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
(main): Don't print an entry for "Everyone".
2002-08-02 11:14:35 +00:00
Christopher Faylor
df2bb2a531
jdf fix.
2002-07-16 03:12:55 +00:00
Christopher Faylor
0ee8b8158e
jdf patch
2002-07-11 02:06:50 +00:00
Christopher Faylor
6394f3595a
more jdf
2002-07-10 00:30:53 +00:00
Christopher Faylor
f6b5a68428
More jdf changes.
2002-07-09 04:27:47 +00:00
Christopher Faylor
597f5d3801
Joshua Daniel Franklin update.
2002-07-08 16:30:01 +00:00
Christopher Faylor
aeb6d1c36e
doc patch.
2002-07-07 00:55:51 +00:00
Christopher Faylor
212ed5e01e
* configure.in: Check for libiconv.a.
...
* configure: Regenerate.
* Makefile.in: Add libiconv.a to libraries required for dumper.exe.
2002-07-07 00:54:38 +00:00
Christopher Faylor
3fde1c5826
* Makefile.in: Use MINGW stuff from Makefile.common.
2002-07-07 00:44:08 +00:00
Corinna Vinschen
d183515c9f
* mkgroup.c: Add function pointers for functions from advapi32.dll.
...
(load_netapi): Load used functions from advapi32.dll.
(main): Use function pointers instead of statically linked functions
from advapi32.dll.
2002-07-02 12:59:43 +00:00
Christopher Faylor
1050e57c9a
* mount.cc (main): Ensure that mount_already_exists() also gets default flag
...
that is passed to do_mount.
* cygpath.cc (long_options): Add "dos" and "mixed", correct "close", "file" and
"type" to use NULL flag.
(usage): Clean up usage output (more), accomodate new options.
(main): Add --dos and --mixed options; accomodate all output forms in --type.
Make UNIXy output default.
2002-07-01 20:54:35 +00:00
Christopher Faylor
0914e17db5
Update from Joshua Daniel Franklin
2002-06-25 01:16:23 +00:00
Christopher Faylor
33bd2d1268
* cygpath.cc (usage): Clean up usage output.
...
(dowin): Correct output of -t mixed for -ADHPSW options.
2002-06-19 02:09:41 +00:00
Corinna Vinschen
94a23f4860
* passwd.c: Rearrange includes to avoid unnecessary warnings.
...
(GetPW): Add parameter to (dis)allow printing of Windows username.
Use defines instead of numerical constants where possible.
Try avoiding impersonation problem. Rearrange to print Windows
username only if it's different from Cygwin username.
(ChangePW): Use defines instead of numerical constants where possible.
(main): Call GetPW with additional parameter. Change error text.
* passwd.c (GetPW): Handle case of user-edited /etc/passwd
with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2002-06-14 11:31:33 +00:00
Christopher Faylor
325268e1c1
Add dumper.exe words from Egor Duda.
2002-06-12 16:06:10 +00:00
Christopher Faylor
548e0dad4b
* path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.
...
(getmntent): Ditto.
2002-06-09 05:08:44 +00:00