summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.Corinna Vinschen2009-03-022-2/+13
| | | | Add comments.
* Add DESTDIR functionality to Makefile.in's.Christopher Faylor2009-02-242-2/+6
|
* * cygcheck.cc (dump_sysinfo): Evaluate and print state ofCorinna Vinschen2009-01-292-0/+18
| | | | obcaseinsensitive kernel flag.
* ChangeLog:Corinna Vinschen2009-01-212-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Remove --enable-server option. Allways add the cygserver directory to $SUBDIRS. * configure: Regenerate. cygwin/ChangeLog: Remove USE_SERVER define. Accommodate throughout. * configure.in: Remove --enable-server option. * configure: Regenerate. * environ.cc: Remove CYGWIN=server setting. cygserver/ChangeLog: * client.cc (allow_server): Remove variable. (client_request_get_version::client_request_get_version): Drop checking allow_server. utils/ChangeLog: * passwd.c: Remove CYGWIN=server requirement from usage text. doc/ChangeLog: * cygserver.sgml: Remove the "How to use the Cygserver services" section. * cygwinenv.sgml: Move "(no)server" to the removed options section. * faq-programming.xml: Remove CYGWIN=server requirement for running the Cygwin testsuite. * ntsec.sgml: Ditto for using `passwd -R'.
* * Makefile.in: Fix copyright date.Corinna Vinschen2009-01-173-19/+28
| | | | | | | | * cygcheck.cc (scan_registry): Take additional parameter and add code to avoid recursion in Wow6432Node subkey. Rename variable cygnus to cygwin. Scan for "Cygwin" instead of for "cygnus" substring. (dump_sysinfo): Drop unused calls to scan_registry. Drop scanning HKEY_CURRENT_CONFIG.
* * cygcheck.cc (dump_sysinfo): Raise size of osname. Add Windows 7Corinna Vinschen2009-01-162-32/+60
| | | | | and Windows 2008 R2 as recognized OSes. Update products array to the latest documented list.
* * ldd.cc: New file. First stab at implementing ldd-like functionality forChristopher Faylor2009-01-093-1/+275
| | | | | | Cygwin. * Makefile.in (CYGWIN_BINS): Add ldd. (ldd.exe): Use -lpsapi.
* * cygcheck.cc (dump_sysinfo_services): Quote the path for popen.Pierre Humblet2009-01-062-1/+5
|
* * cygcheck.cc (pretty_id): Quote the path for popen.Pierre Humblet2008-12-312-5/+11
| | | | (dump_sysinfo_services): Ditto.
* * utils.sgml: Fix typo in passwd screen text.Corinna Vinschen2008-12-162-1/+5
|
* * passwd.c (main): Put how to delete the registry password on its ownCorinna Vinschen2008-12-152-1/+7
| | | | line in passwd -R output.
* * utils.sgml: Convert some backslashes to slashes.Christopher Faylor2008-12-132-5/+9
|
* * passwd.c (longopts): Add --reg-store-pwd option.Corinna Vinschen2008-11-263-17/+110
| | | | | | | | (opts): Add -R option. (usage): Add text for -R/--reg-store-pwd option. (main): Fix size of local user and password string arrays. Handle -R option. * utils.sgml: Add text for passwd -R/--reg-store-pwd option.
* * Makefile.in (ALL_LDFLAGS): Link libgcc statically for everything here.Christopher Faylor2008-10-292-1/+6
|
* fix typoChristopher Faylor2008-10-131-1/+1
|
* * mingw: Set sawcfile when -xc* is detected. Extend list of detected sourceChristopher Faylor2008-10-132-1/+7
| | | | filew.
* * mingw: Add more checks to allow more varied use.Christopher Faylor2008-10-122-10/+24
|
* * mingw: Use a better method to find where mingw directory lives.Christopher Faylor2008-10-122-7/+5
|
* Dummy check-in to get right revision log:Christopher Faylor2008-10-122-2/+2
| | | | | | * mingw: New front-end script to control building of MinGW files without using the deprecated -mno-cygwin option. * Makefile.in: Use mingw front-end.
* * Makefile.in: Tweak to work better with new utils/mingw front-end.Christopher Faylor2008-10-123-6/+100
| | | | In utils:
* * cygcheck.cc (pathlike::check_existence): Remove class name from declaration.Christopher Faylor2008-09-128-50/+77
| | | | | | | | | | | | | | | | | | | | | (display_internet_error): Use proper format specifier for DWORD. (environ): Remove unneeded declaration. (main): Use brace around nested if to avoid an overly-helpful compiler warning. * dump_setup.cc (parse_filename): Reorganize nested if to avoid an overly-helpful compiler warning. * path.cc (GUID_shortcut): Use braces around part of initializer which needs them. (conv_fstab_spaces): Parenthesize assignment in while loop to avoid a compiler warning. (struct opt): Make static. * ps.cc (main): Reorganize nested if to avoid an overly-helpful compiler warning. * regtool.cc: Make some anonymous structs static to avoid a compiler warning. * ssp.c (lookup_thread_id): Initialize *tix to zero to avoid potential uninitialized use. * strace.cc (add_child): Use proper format specifier for DWORD. (remove_child): Ditto. (proc_child): Ditto.
* * cygcheck.cc (nuke): Use malloc rather than alloca for environment variables.Christopher Faylor2008-08-273-6/+15
| | | | | | (load_cygwin): Ditto. * dump_setup.cc (parse_filename): Cosmetic changes. (get_packages): Ditto.
* * mkgroup.c (enum_local_groups): Don't skip printing groups whenCorinna Vinschen2008-08-253-8/+14
| | | | | | | | | print_current is set and group SID is not curr_pgrp. (enum_groups): Ditto. (main): Fix condition when SYSTEM group gets printed. * mkpasswd.c (enum_users): Don't skip printing users when print_current is set and user SID is not curr_user. (main): Allow printing standard accounts even when print_current is set.
* * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find outCorinna Vinschen2008-08-182-4/+8
| | | | if a group exists, rather than just allocating a buffer and going ahead.
* * mkgroup.c (enum_local_groups): Call print_win_error with GetLastErrorCorinna Vinschen2008-08-182-4/+10
| | | | | as argument when LookupAccountXXX failed. (enum_groups): Ditto.
* * mkgroup.c (enum_local_groups): Return failure if looking for a singleCorinna Vinschen2008-08-182-1/+9
| | | | group succeeded. Add comment.
* * mkgroup.c (main): Keep correctly track of optional arguments.Corinna Vinschen2008-08-183-2/+7
| | | | * mkpasswd.c (main): Ditto.
* * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.Corinna Vinschen2008-08-183-0/+16
| | | | | Keep track of optional argumnts and fix up optind afterwards. * mkpasswd.c (main): Ditto.
* * cygcheck.cc (print_version): Update copyright dates.Christopher Faylor2008-08-172-1/+5
|
* * mkpasswd.c (main): Avoid printing system accounts when a single user name hasChristopher Faylor2008-08-172-1/+6
| | | | been requested.
* * Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ldChristopher Faylor2008-08-174-111/+162
| | | | | | | | | | | | | | | | | | | warnings. * mkgroup.c: Change all global variables and most functions to static. (enum_local_groups): Add a print_current parameter to control whether entries for everything should be printed or just the current user. (enum_groups): Ditto. (main): Move call fetch_current_pgrp_sid earlier to avoid a NULL deference when no command line arguments are specified. Accommodate argument changes to above functions. Avoid printing SYSTEM account when print_current is specified. Issue error when extra stuff is found on the command line. * mkpasswd.c: Change all global variables and most functions to static. (enum_users): Add a print_current parameter to control whether entries for everything should be printed or just the current user. (main): Move call fetch_current_user_sid earlier to avoid a NULL deference when no command line arguments are specified. Accommodate argument change to above function. Avoid printing standard accounts when print_current is specified. Issue error when extra stuff is found on the command line.
* * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primaryCorinna Vinschen2008-08-153-52/+117
| | | | | | | | | | | | | | | | | | group SID from user token. (current_group): Move up in file. Move fetching primary group SID to fetch_current_pgrp_sid. (enum_local_groups): Check if current SID is the same as current user's primary group SID. (enum_groups): Ditto. (main): Call fetch_current_pgrp_sid before enumerating groups. Call current_group only if current group hasn't been enumerated already. * mkpasswd.c (fetch_current_user_sid): New function to fetch current user SID from user token. (current_user): Move fetching current user SID to fetch_current_user_sid. (enum_users): Check if current SID is the same as current user's SID. (main): Call fetch_current_user_sid before enumerating users. Call current_user only if current user hasn't been enumerated already.
* * mount.cc (NT_MAX_PATH): Define.Corinna Vinschen2008-08-134-280/+168
| | | | | | | | | | | | | | | | | | | | | | | | (longopts): Rename mount-commands option to mount-entries. (opts): Remove removed options. (struct opt): Move up in file to allow using it in usage. (usage): Change text for --mount-entries option. Remove -X option. Add valid options output. (main): Remove handling -b option. (convert_spaces): New static function to convert spaces to "\040" string. (mount_entries): Renamed from mount_commands. Rewrite to emit /etc/fstab compatible output. (show_cygdrive_info): Print "nouser" rather than "system". * umount.cc (longopts): Remove remove-all-mounts, remove-cygdrive-prefix, remove-system-mounts, system and user options. (opts): Remove A, c, s, S, u options. (usage): Remove text for all removed options. (main): Remove handling for all removed options. (remove_all_mounts): Remove. (remove_all_system_mounts): Remove. (remove_cygdrive_prefix): Remove. * utils.sgml: Fix mount and umount documentation. Move description of (cyg,not)exec options to mount table section.
* * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears whenChristopher Faylor2008-08-042-2/+14
| | | | cygwin1.dll is unloaded.
* * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.Christopher Faylor2008-07-302-2/+7
|
* * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.Christopher Faylor2008-07-272-26/+32
|
* * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.Christopher Faylor2008-07-254-1835/+2600
| | | | | | (oopts): Use boolean constants for slightly increased clarity. * configure.in: Remove apparently unneeded program_transfer_name code. * configure: Regenerate.
* * utils.sgml: Remove useless text.Corinna Vinschen2008-07-252-10/+6
|
* * mkgroup.c (main): Fix test for duplicate domain/machine request.Corinna Vinschen2008-07-233-9/+32
| | | | * mkpasswd.c (main): Ditto.
* * mkgroup.c: Rework to allow per-domain/per-machine id_offset.Corinna Vinschen2008-07-234-166/+192
| | | | | | | | | Add -b option to skip builtin groups. (main): Simplify code. * mkpasswd.c: Rework to allow per-domain/per-machine id_offset. (main): Simplify code. * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options. Add mkgroup -b option.
* * mkgroup.c: Consolidate variable names.Corinna Vinschen2008-07-234-44/+323
| | | | | | | | | | | | | | | | | | (enum_unix_groups): New function. (print_special): Use LookupAccountSidW instead of LookupAccountSidA. (current_group): Ditto. (usage): Add -U option. (longopts): Add --unix option. (opts): Add -U option. (main): Handle -U option. Call enum_unix_groups if set. * mkpasswd.c: Consolidate variable names. (current_user): Use LookupAccountSidW instead of LookupAccountSidA. (enum_unix_users): New function. (usage): Add -U option. (longopts): Add --unix option. (opts): Add -U option. (main): Handle -U option. Call enum_unix_groups if set. * utils.sgml: Add -U option text to mkgroup and mkpasswd description.
* * mkgroup.c (enum_groups): Create full qualified groupname usingCorinna Vinschen2008-07-223-2/+10
| | | | | domain or servername, depending on printing domain or machine accounts. * mkpasswd.c (enum_users): Ditto for users.
* * mkgroup.c (main): Remove special root group code. Only printCorinna Vinschen2008-07-222-24/+22
| | | | SYSTEM group in case of printing local machine or local domain groups.
* * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen2008-07-229-928/+925
| | | | | | | | | | | | | | | | | | | | * bloda.cc: Use statically linked functions throughout. * cygpath.cc: Drop 9x considerations. * mkgroup.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique groupnames in domain\group syntax. Add -S option to define domain\group separator char. Ignore -u and -s options. * mkpasswd.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique usernames in domain\user syntax. Add -S option to define domain\user separator char. Ignore -g and -s options. Prefer to take homedir from $HOME over $HOMEDRIVE/$HOMEPATH. * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options. (getmntent): Accomodate throughout. * ps.cc: Fix copyright dates. * utils.sgml: Fix text for mkgroup and mkpasswd.
* * mount.cc (do_mount): Remove MOUNT_ENC code.Corinna Vinschen2008-07-173-27/+10
| | | | | | | (oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
* * utils.sgml: Add id's to all examples.Corinna Vinschen2008-07-172-13/+17
|
* * mkgroup.c: Use statically linked functions throughout, except forCorinna Vinschen2008-07-093-341/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout. Use defines instead of constants throughout. (MAX_SID_LEN): Define. (load_netapi): Just load DsGetDcNameW pointer. (psx_dir): Remove. (uni2ansi): Remove. (enum_local_users): Take server name and use in Net... call. (DBGSID): Define datastructure. (MAX_BUILTIN_SIDS): Define. (builtin_sid_list): Define global sid list. (builtin_sid_cnt): Define counter for global sid list. (enum_local_groups): Take server name and use in Net... and Lookup... calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to NetLocalGroupEnum. Check for duplicate builtin groups. (enum_users): Take server name and use in Net... call. (usage): Change text slightly. (print_version): Fix copyright. (main): Call enum_local_groups for domains as well. * mkpasswd.c: Use statically linked functions throughout, except for DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout. Use defines instead of constants throughout. (MAX_SID_LEN): Define. (load_netapi): Just load DsGetDcNameW pointer. (uni2ansi): Use wcstombs. (current_user): Replace "unused_by_nt/2000/xp" by just "unused". (enum_users): Ditto. (print_version): Fix copyright.
* * setfacl.c (setfacl): Change from void to int. Return 2 in case ofCorinna Vinschen2008-05-222-7/+20
| | | | | error. (main): Return with error code from setfacl.
* * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.Corinna Vinschen2008-05-154-1054/+7
| | | | | * ipcrm.c: Remove. * ipcs.c: Remove.
* * mount.cc (usage): Mark -s and -u as ignored.Corinna Vinschen2008-04-232-15/+15
| | | | | | (print_version): Simplify printing copyright dates. (main): Remove default_flag. Dont set flags on -s and -u options. (mount_commands): Drop handling -s and -u options.