Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-08-25 * mkgroup.c (enum_local_groups): Don't skip printing groups whenCorinna Vinschen
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.
2008-08-18 * mkgroup.c (enum_local_groups): Use NetLocalGroupGetInfo to find outCorinna Vinschen
if a group exists, rather than just allocating a buffer and going ahead.
2008-08-18 * mkgroup.c (enum_local_groups): Call print_win_error with GetLastErrorCorinna Vinschen
as argument when LookupAccountXXX failed. (enum_groups): Ditto.
2008-08-18 * mkgroup.c (enum_local_groups): Return failure if looking for a singleCorinna Vinschen
group succeeded. Add comment.
2008-08-18 * mkgroup.c (main): Keep correctly track of optional arguments.Corinna Vinschen
* mkpasswd.c (main): Ditto.
2008-08-18 * mkgroup.c (main): Always unset environment variable POSIXLY_CORRECT.Corinna Vinschen
Keep track of optional argumnts and fix up optind afterwards. * mkpasswd.c (main): Ditto.
2008-08-17* cygcheck.cc (print_version): Update copyright dates.Christopher Faylor
2008-08-17* mkpasswd.c (main): Avoid printing system accounts when a single user name hasChristopher Faylor
been requested.
2008-08-17* Makefile.in (ALL_LDFLAGS): Add --enable-auto-import option to quiet ldChristopher Faylor
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.
2008-08-15 * mkgroup.c (fetch_current_pgrp_sid): New function to fetch primaryCorinna Vinschen
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.
2008-08-13 * mount.cc (NT_MAX_PATH): Define.Corinna Vinschen
(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.
2008-08-04* cygcheck.cc (load_cygwin): Duplicate argv list since it disappears whenChristopher Faylor
cygwin1.dll is unloaded.
2008-07-30* Makefile.in: Link cygcheck with -lntdll even without mingw-zlib.Christopher Faylor
2008-07-27* cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it.Christopher Faylor
2008-07-25* mount.cc: Remove non-unix-like options (-x,-t,b) throughout.Christopher Faylor
(oopts): Use boolean constants for slightly increased clarity. * configure.in: Remove apparently unneeded program_transfer_name code. * configure: Regenerate.
2008-07-25 * utils.sgml: Remove useless text.Corinna Vinschen
2008-07-24 * mkgroup.c (main): Fix test for duplicate domain/machine request.Corinna Vinschen
* mkpasswd.c (main): Ditto.
2008-07-23 * mkgroup.c: Rework to allow per-domain/per-machine id_offset.Corinna Vinschen
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.
2008-07-23 * mkgroup.c: Consolidate variable names.Corinna Vinschen
(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.
2008-07-23 * mkgroup.c (enum_groups): Create full qualified groupname usingCorinna Vinschen
domain or servername, depending on printing domain or machine accounts. * mkpasswd.c (enum_users): Ditto for users.
2008-07-23 * mkgroup.c (main): Remove special root group code. Only printCorinna Vinschen
SYSTEM group in case of printing local machine or local domain groups.
2008-07-22 * Makefile.in (cygcheck.exe): Link against ntdll.Corinna Vinschen
* 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.
2008-07-17 * mount.cc (do_mount): Remove MOUNT_ENC code.Corinna Vinschen
(oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
2008-07-17 * utils.sgml: Add id's to all examples.Corinna Vinschen
2008-07-09 * mkgroup.c: Use statically linked functions throughout, except forCorinna Vinschen
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.
2008-05-22 * setfacl.c (setfacl): Change from void to int. Return 2 in case ofCorinna Vinschen
error. (main): Return with error code from setfacl.
2008-05-15 * Makefile.in (CYGWIN_BINS): Remove ipcrm and ipcs.Corinna Vinschen
* ipcrm.c: Remove. * ipcs.c: Remove.
2008-04-23 * mount.cc (usage): Mark -s and -u as ignored.Corinna Vinschen
(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.
2008-04-22 * cygcheck.cc (dump_sysinfo): Fix multiple Cygwin DLL test.Corinna Vinschen
* path.cc: Fetch mount points from fstab files instead of from registry. Use adapted functions copied from Cygwin DLL. (mnt_t): Drop issys member. Define as "mnt_t" instead of "struct mnt_t" subsequently. (max_mount_entry): New variable. (unconvert_slashes): Move to earlier location in file. Make inline. (find2): Remove. (get_cygdrive0): Remove. (get_cygdrive): Remove. (skip_ws): New function. (find_ws): Ditto. (conv_fstab_spaces): Ditto. (read_flags): Ditto. (from_fstab_line): Ditto. (get_user): Ditto. (from_fstab): Ditto. (mnt_sort): Ditto. (read_mounts): Drop old registry code. Fetch "Software\Cygwin\Setup\rootdir" value from HKCU or HKLM key. Use rootdir extracted from module path as fallback. Call from_fstab for nouser and user mount points. (setmntent): Check max_mount_entry to test if read_mounts must be called. (getmntent): Use MOUNT_SYSTEM flag instead of mnt_t's issys member.
2008-03-16 * path.cc: Include malloc.h for alloca.Brian Dessent
(is_symlink): Rewrite. Just read the whole file in memory rather than by parts. Account for an ITEMIDLIST if present, as well as the new style of Cygwin shortcut supporting targets > MAX_PATH.
2008-03-12 * cygpath.cc (do_sysfolders): Use cygwin_conv_path.Corinna Vinschen
(do_pathconv): Use cygwin_conv_path and cygwin_conv_path_list. * dumper.cc (main): Use cygwin_conv_path. Allocate target path dynamically. * mkpasswd.c (current_user): Use cygwin_conv_path. (enum_users): Ditto. * ps.cc (NT_MAX_PATH): Define. (main): Use cygwin_conv_path. * regtool.cc (find_key): Ditto. Allocate target path dynamically. (cmd_save): Ditto.
2008-03-11 * cygcheck.cc (find_app_on_path): Make buffer SYMLINK_MAX + 1Brian Dessent
chars.
2008-03-11 * cygcheck.cc (dirname): New static function.Brian Dessent
(find_app_on_path): Use SYMLINK_MAX. Resolve symlink relative to link's location. Adjust to the fact that cygpath already normalizes its return value. * path.cc (rel_vconcat): Add cwd parameter, and use it instead of calling GetCurrentDirectory() if possible. Rename throughout. (vcygpath): Rename from cygpath and accept cwd and va_list. Pass cwd on to rel_vconcat(). (cygpath_rel): New front end for vcygpath. (cygpath): Ditto. * path.h (cygpath_rel): Declare. (SYMLINK_MAX): Define to 4095.
2008-03-09 * Makefile.in (install): Don't install the testsuite.Brian Dessent
2008-03-09 * Makefile.in: Add a 'check' target that builds and runsBrian Dessent
testsuite.exe from path-testsuite.o and testsuite.o. * path.cc: Include testsuite.h. (struct mnt): Change to a mnt_t typedef and don't define mount_table when TESTSUITE is defined. (find2): Don't include when TESTSUITE is defined to avoid warning. (get_cygdrive0): Ditto. (get_cygdrive): Ditto. (read_mounts): Provide empty implementation when TESTSUITE is defined. (vconcat): Use the isslash macro. (unconvert_slashes): New helper to convert to backslashses. (rel_vconcat): Handle relative paths more gracefully. (cygpath): Skip a leading "./" sequence. Avoid double-slashes. Normalize final output to backslashes and remove redundant path sequences. * testsuite.cc: New file implementing testsuite driver. * testsuite.h: New header implementing harness mount table and series of tests.
2008-03-08 * Makefile.in: Reorganize considerably, using GNU make'sBrian Dessent
static pattern rules and target-specific variables.
2008-02-28 * mkpasswd.c (main): Simplify generating SYSTEM entry. Add entriesCorinna Vinschen
for LocalService and NetworkService accounts. Change comments.
2008-01-13 * cygcheck.cc (dump_sysinfo): Always try to get a OSVERSIONINFOEXCorinna Vinschen
first. Load kernel32.dll earlier. Make osname a buffer. Simplify Non-NT code. Use GetProductInfo in Vista/2008 case. Clean up non-Vista version info. Exit early if not on NT.
2007-12-29 * bloda.cc (enum bad_app): Add BYTEMOBILE.Dave Korn
(dodgy_app_detects[]): Add FILENAME entry to detect bmnet.dll. (big_list_of_dodgy_apps[]): Add description for BYTEMOBILE.
2007-12-21 * Makefile.in (cygcheck.exe): Don't link to ntdll.Brian Dessent
* bloda.cc (pNtQuerySystemInformation): Add. (pRtlAnsiStringToUnicodeString): Add. (get_process_list): Use function pointers for NT functions. (dump_dodgy_apps): Skip dodgy app check on non-NT platforms. Use GetProcAddress for NT-specific functions.
2007-12-07 * regtool.cc (opts): Add missing 'W'.Corinna Vinschen
2007-12-06 * ps.cc: Include limits.h.Corinna Vinschen
(main): Set file name buffer size to PATH_MAX. Use progname or progname_long member of struct external_pinfo dependent of the value of the struct's version member.
2007-08-312007-08-31 Dave Korn <dave.korn@artimi.com>Dave Korn
* mkgroup.c (enum_groups): Use MAX_PREFERRED_LENGTH in netgroupenum call so that it will automatically size returned buffer sufficiently.
2007-08-03 * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjustingDave Korn
dependency-filtering $(wordlist ...) call appropriately. Link ntdll. (bloda.o): New rule to build bloda.o * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps(). * bloda.cc: New file implements detection of applications from the Big List Of Dodgy Apps.
2007-07-24 Add missing ChangeLog entry.Corinna Vinschen
2007-07-24 * dumper.cc: Change license to plain GPLv2 + later.Corinna Vinschen
* dumper.h: Ditto. * parse_pe.cc: Ditto.
2007-07-24* strace.cc (create_child): Don't convert a path from cygwin format unless itChristopher Faylor
has a slash.
2007-07-10* strace.cc (usage): Add missing description for -q.Christopher Faylor
2007-07-10* cygwin/strsig.cc (__signals): New macro.Christopher Faylor
(sys_sigabbrev): New array of signal strings, patterned after linux. (siglist): Use __signals. * cygwin/include/cygwin/signal.h (sys_sigabbrev): Define. * cygwin/include/cygwin/version.h: Bump API minor version to 177. * utils/Makefile.in (kill.exe): Remove reliance on libiberty. * utils/kill.cc (strsigno): New function patterned after libiberty but using newly exported cygwin array.
2007-06-04* cygcheck.cc (pathlike): New class.Christopher Faylor
(paths): Redefine as type pathlike. (display_error): Declare a few different ways to allow more flexible usage throughout. (display_error_fmt): New function for those cases where C++ just isn't enough. (add_path): Rewrite to allocate pathlike paths. Always tack on a trailing slash since that's what everyone who uses it wants. NULL terminate the path list. Register "it's a system path" field. (init_path): Call add_path with info regarding whether path is a system path or not. (pathlike::check_existence): Move into pathlike class. Accept file and extension arguments to build up path on the fly. Modify other arguments. (find_on_path): Constify return value and appropriate arguments. Eliminate short-circuit for fully-qualified paths. Simplify loop which iterates over path. (already_did): Constify argument. (track_down): Ditto. Regularize some error messages. (find_app_on_path): Ditto. (cygcheck): Constify argument. Use 20th century string handling functions. (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case". Accommodate change of paths to pathlike. * path.cc (isslash): Rename from SLASH_P and use throughout. (rel_vconcat): Front-end to vconcat which prepends cwd to path before passing along for conversion to native windows. (cygpath): Remove "./" test. Call rel_vconcat if filename appears to be relative.