summaryrefslogtreecommitdiffstats
path: root/winsup/utils
Commit message (Collapse)AuthorAgeFilesLines
* * path.cc (oopts): Sort alphabetically, add missing "auto" andCorinna Vinschen2009-06-102-31/+70
| | | | | | | | | | | "override" entries. (from_fstab_line): Handle mount points same as Cygwin itself. Use "cygdrive prefix" as posix name of cygdrive prefix. (from_fstab): Add auto entries for /usr/bin and /usr/lib. Add MOUNT_AUTOMATIC and MOUNT_IMMUTABLE flags to default root dir entry. Use "cygdrive prefix" as posix name of default cygdrive prefix. (getmntent): Allocate smaller buffers. Align output closer to output of mount(1).
* * cygpath.cc (codepage): New variable.Corinna Vinschen2009-05-173-10/+85
| | | | | | | | | (long_options): Add --codepage option. (options): Add -C option. (usage): Add -C/--codepage description. (my_wcstombs): New function. Use througout instead of wcstombs. (do_options): Handle -C/--codepage option. * utils.sgml (cygpath): Add description for new -C/--codepage option.
* * Makefile.in (cygpath.exe): Link against cygwin.a before linkingCorinna Vinschen2009-05-162-2/+9
| | | | | | against ntdll.dll to avoid linking symbols defined in both DLLs from ntdll. (ps.exe): Ditto.
* * cygpath.cc (main): Only setlocale for LC_CTYPE category. FallbackCorinna Vinschen2009-05-156-4/+32
| | | | | | | | to UTF-8 if locale is "C". * ldd.cc (main): Ditto. * mkgroup.c (main): Ditto. * mkpasswd.c (main): Ditto. * passwd.c (main): Ditto.
* cygwin ChangeLogChristopher Faylor2009-05-143-12/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * mount.cc (mount_info::got_usr_bin): Define. (mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto. (mount_info::create_root_entry): Create root entry as immutable and flag as automatic. (mount_info::init): Remove "Huh? No /etc/fstab..." warning. Unconditionally call from_fstab for user and system tables. Fill in /usr/bin and /usr/lib if they have not been specified in /etc/fstab. (oopts): Alphabetize. Add "override" option to allow overriding immutable mount points. (mount_info::add_item): Accommodate new MOUNT_IMMUTABLE flag intended for root mount. (mount_info::add_item): Detect "/usr/bin", "/usr/lib", and "/" and set appropriate global state. (fillout_mntent): Add ,auto to mount points added by Cygwin DLL. (mount): Remove masking of MOUNT_SYSTEM. Allow user to shoot themselves. Add comment. * mount.h (mount_info::got_usr_bin): Declare. (mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto. * include/sys/mount.h: Reformat enum. Add MOUNT_{OVERRIDE,IMMUTABLE,AUTOMATIC}. doc ChangeLog 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * pathnames.sgml (mount-table): Sort mount options and add override option. Add description of root mount handling. utils ChangeLog 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * mount.cc (oopts): Sort. Add override option. Add dummy "auto" option for consistency. (mount_entries): Avoid adding auto-mounted entries to -m output. * utils.sgml: Sort mount options. Add description of override option.
* * Makefile.in: Link ps.exe agains ntdll.dll.Corinna Vinschen2009-05-113-2/+83
| | | | | | | * ps.cc (main): Enable SE_DEBUG_NAME privilege if Windows processes have to be enumerated. Workaround EnumProcessModules problem when running under WOW64 and use NtQueryInformationProcess to fetch process image name.
* * Move ChangeLog entry.Corinna Vinschen2009-05-061-0/+5
|
* * mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generateCorinna Vinschen2009-05-065-30/+25
| | | | | | | | | user's homedir. * mkgroup.c: Accommodate ctype changes. * mkpasswd.c: Ditto. * setfacl.c: Ditto. * ssp.c: Ditto.
* * cygcheck.cc (find_app_on_path): Avoid using NULL pointer if find_on_pathChristopher Faylor2009-05-041-0/+3
| | | | doesn't find the app on the path.
* * cygcheck.cc (usage): Fix option order and print.Corinna Vinschen2009-05-042-5/+10
|
* * strace.cc (create_child): Set CYGWIN=noglob when starting new process so thatChristopher Faylor2009-04-222-1/+16
| | | | Cygwin will leave already-parsed the command line alonw.
* * cygpath.cc (do_pathconv): Only skip \\?\ prefix if it's reallyCorinna Vinschen2009-04-152-9/+18
| | | | | given. Do backslash to slash conversion for mixed paths after handling \\?\ prefix.
* * Makefile.in (dumper.exe): Add -lz to ALL_LDFLAGS.Dave Korn2009-04-132-1/+5
|
* * path.cc (readlink): Accommodate new UTF-16 symlinks.Corinna Vinschen2009-04-072-5/+27
|
* * utils.sgml: Various syntactical and semantical fixes.Corinna Vinschen2009-04-033-25/+30
| | | | * cygcheck.cc (usage): Fix --find-package explanation.
* * utils.sgml (passwd -R): Remove references to CYGWIN="server".Corinna Vinschen2009-03-272-7/+7
|
* * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.Corinna Vinschen2009-03-244-3/+8
| | | | | * strace.cc (proc_child): Ditto. * ldd.cc: Remove now useless undef wcscasecmp.
* * passwd.c (usage): Change description for -d option according toCorinna Vinschen2009-03-233-5/+29
| | | | | | previous change. (main): Fix typo. * utils.sgml: Add missing description for passwd -d option.
* * passwd.c (caller_is_admin): New function to test if calling userCorinna Vinschen2009-03-232-19/+69
| | | | | | | | | is an administrator by inspecting user token. (main): Drop fetching caller info from logonserver. Only fetch server from environment when trying to change password for own account. Drop admin check entirely in case of doing account maintainance. Otherwise replace check for admin by result of caller_is_admin call.
* * passwd.c (main): Always get logonserver from environment andCorinna Vinschen2009-03-222-3/+11
| | | | use when fetching user info for caller.
* * ldd.cc: Fix compiler warning.Corinna Vinschen2009-03-223-21/+29
| | | | | | * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout. (main): Call setlocale. Fix a bug in fetching the logon server from the environment.
* *** empty log message ***Christopher Faylor2009-03-181-0/+4
|
* Re-add inexplicably missing ldh.cc.Christopher Faylor2009-03-181-0/+17
|
* * ldd.cc (load_dll): Start helper program rather than ldd.exe.Christopher Faylor2009-03-183-75/+113
| | | | | | | | | | | | | (set_entry_point_break): Rename from get_entry_point. (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing specific dll name if we're looking at a dll. (report): Always dump dlls on process exit. Don't allow thread creation. Accommodate get_entry_point rename. (start_process): Start process with DEBUG_ONLY_THIS_PROCESS. (longopts): Eliminate "dll" option. (main): Ditto. * ldd.cc: Use wide character Win32 paths throughout. (load_dll): Fix size expression (add fn) in realloc.
* * ldd.cc (longopts): Add --dll option.Christopher Faylor2009-03-142-13/+104
| | | | | | | | | | | | | | (get_module_filename): Generalized wrapper function which avoid path length restrictions. (load_dll): Handle special-case of inspecting a DLL. (start_process): Accept an output parameter "isdll". Detect when file to start is a DLL and start a wrapper instead. (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing everything before the DLL itself first appears. (This is not strictly correct and should be fixed eventually) (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let captive ldd process terminate normally. Pass dll info to print_dlls_and_kill_inferior. (main): Handle special-case "--dll" option by loading the DLL and exiting.
* * path.cc (from_fstab): Use wcstombs/mbstowcs instead ofCorinna Vinschen2009-03-142-5/+8
| | | | WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
* * wide_path.h (class wide_path): New class to convert Windows pathCorinna Vinschen2009-03-144-64/+178
| | | | | | | | | | | | | | | | | | | | to WCHAR win32 path, including long path conversion if necessary. * cygcheck.cc: Use class wide_path throughout to call Win32 functions taking potentially long filenames. (display_error): Use snprintf rather than sprintf. (display_error_fmt): Ditto. (dump_sysinfo): Use FindFirstFileW/FindNextFileW. * cygpath.cc: Use class wide_path throughout to call Win32 functions taking potentially long filenames. (get_device_name): Raise buffer size to take long pathnames. (get_short_paths): Convert to using GetShortPathNameW. (get_short_name): Ditto. (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW. (get_long_name): Convert to using GetLongPathNameW. (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX. (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t Win32 path name and drop long pathname prefix if possible. (main): Call setlocale to accommodate wide char/multibyte conversions.
* * ldd.cc: Rework to detect missing DLLs.Christopher Faylor2009-03-142-30/+347
| | | | | | | | | | | | | | | | | (start_process): Change to expect windows filename as input. (tocyg): New function - convert cygwin fn to windows fn. (print_dlls_and_kill_inferior): Accept extra argument denoting whether to open input and look for nonexistent DLLs. Use tocyg to convert filename and pass it to start_process. (report): Flag when an DLL-not-found exception occurs and pass this information to print_dlls_and_kill_inferior. (filelist): New structure. (saw_file): New function. (dump_import_directory): Ditto. (map_file): Ditto. (skip_dos_stub): Ditto. (get_directory_index): Ditto. (process_file): Ditto.
* * utils.sgml: Fix typo.Corinna Vinschen2009-03-092-1/+5
|
* * cygcheck.cc (usage): Fix typo.Christopher Faylor2009-03-082-1/+5
|
* * utils.sgml: Set example prompt to "$" throughout. Don't use "/"Corinna Vinschen2009-03-022-11/+25
| | | | | as example cygdrive prefix. Remove reference to -u and -s options. Add an example using the -o flag.
* * 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.