Commit Graph

137 Commits

Author SHA1 Message Date
Corinna Vinschen a939e045e7 * ntsec.sgml: Revisited description of `ntsec' according to
the changes in release 1.1.
        * setup.sgml: Include ntsec.
        * setup-net.sgml: Ditto.
2000-05-02 22:26:41 +00:00
DJ Delorie 523ebbe087 * path.cc (mount_info::conv_to_win32_path): Previous patch
failed to set flags on a win32 path.
2000-05-02 15:42:30 +00:00
Corinna Vinschen dd67f9db6a * security.cc (read_sd): Return 1 on success because we
can't rely on the returned SD size from GetFileSecurity.
2000-05-02 09:38:32 +00:00
Corinna Vinschen 64dcb07652 * dcrt0.cc: Add dynamic load code for `OemToCharA' from user32.dll.
* security.cc (read_sd): Call `OemToCharA' to make
        `GetFileSecurity' happy on filenames with umlauts.
2000-05-02 00:25:43 +00:00
DJ Delorie f115d4c2b2 add reference to Makefile.common (srcdir) 2000-04-30 12:59:50 +00:00
Christopher Faylor 0bd0cb4470 Correct contributor email address. 2000-04-30 04:30:46 +00:00
Christopher Faylor 865ab4b83f * mount.cc (main): Add "-X" option to specify a "Cygwin executable". 2000-04-27 03:44:23 +00:00
Christopher Faylor fc6f4e20ec * path.cc (normalize_win32_path): Don't add a trailing slash when one already
exists.
(mount_info::conv_to_win32_path): Use existing code for dealing with relative
path names when input is already a win32 path.
2000-04-27 03:26:23 +00:00
DJ Delorie 97f3429f4f * Makefile.in (install): install regexp.h 2000-04-26 18:19:22 +00:00
Corinna Vinschen 88c9926448 * syscalls.cc (stat_worker): Previous patch could succeed
in stating a non-existant file.
2000-04-26 15:28:06 +00:00
Christopher Faylor 3cac739aca Add another INTERNET_OPTION. 2000-04-26 15:04:53 +00:00
Christopher Faylor 55fc91b9d6 * exceptions.cc (interruptible): Allocate slightly more space for directory
name check.  Windows 95 seems to null-terminate the directory otherwise.
(interrupt_on_return): Issue a fatal error if we can't find the caller's stack.
* spawn.cc (find_exec): Accept a path_conv argument rather than a buffer so
that the caller can find things out about a translated path.
(perhaps_suffix): Ditto.
(spawn_guts): Allocate path_conv stuff here so that we can find out stuff about
the translated path (this is work in progress).
* environ.cc (environ_init): Accept an as-yet unused argument indicating
whether we were invoked from a cygwin parent or not.
(winenv): Ditto.
(posify): Accept an argument indicating whether the path has already been
translated.
* dlfcn.cc (check_access): Provide a path_conv buffer to find_exec.
* exec.cc (sexecvpe): Ditto.
* path.cc (path_conv::check): Rename from path_conv::path_conv.
(mount_item::getmntent): Recognize "Cygwin executable" bit.
(symlink_info::check): Remove debugging statements.
* path.h (class path_conv): Add iscygexec method.  Rewrite constructor to call
"check" method to allow multiple operations on a path_conv variable.
* pinfo.cc (pinfo_init): Pass argument to environ_init.
* shared.h: Bump PROC_MAGIC.
* winsup.h: Reflect above changes to function arguments.
* include/sys/mount.h: Add MOUNT_CYGWIN_EXEC type.
2000-04-26 05:13:32 +00:00
Corinna Vinschen 47eaa6c421 * syscalls.cc (stat_worker): Previous patch failed to stat
each drives root dir on 9X.
2000-04-25 19:39:05 +00:00
Mumit Khan 8017cc0edd 2000-04-25 Mumit Khan <khan@xraylith.wisc.edu>
* include/winspool.h: Add 2 more PRINTER_ATTRIBUTE_* macros.
2000-04-25 19:22:31 +00:00
Mumit Khan 84364d972c 2000-04-25 Martin Kotulla <martin-k@softmaker.de>
* include/ddeml.h (DdeCreateStringHandle{A,W}): Fix prototype.
	* include/shlobj.h (IShellLink{A,W}::GetPath): Fix prototype.
	* include/wingdi.h: Add LPFNDEVMODE and LPFNDEVCAPS callbacks.
	* include/winuser.h: Add WM_* macros. Add PCOPYDATASTRUCT typedef.
2000-04-25 19:13:51 +00:00
Corinna Vinschen d6581f44d4 * fhandler.cc (fhandler_disk_file::open): Check for allow_ntsec
when determining exec flag.
        * path.cc (symlink_info::check): Remove call to get_file_attribute().
        * security.cc (read_sd): Rename, ditto for variables to conform
        to common naming convention. Use GetFileSecurity() instead of
        BackupRead() to avoid permission problems when reading ACLs.
        (write_sd): Same renaming as for read_sd().
        (alloc_sd): Change default permissions according to Linux permissions
        for group and world when write permission is set.
        * syscalls.cc (stat_worker): Avoid different permission problems
        when requesting file informations.
2000-04-25 16:31:14 +00:00
Corinna Vinschen efadc1c152 Forgot ChangeLog 2000-04-25 08:51:40 +00:00
Corinna Vinschen e77d29a973 * net.cc: Avoid a warning in declaration inet_network. 2000-04-25 08:50:22 +00:00
Christopher Faylor 698c627424 * fhandler_console.cc (fhandler_console::read): Detect extended keycode
information for Windows 9x so that function keys will work correctly.
2000-04-24 21:41:11 +00:00
DJ Delorie 046069e449 * net.cc (cygwin_inet_network): new function.
* cygwin.din (inet_network): new export
2000-04-24 15:44:11 +00:00
Christopher Faylor 7203adb1cc Fix handling of /.filename 2000-04-21 14:37:48 +00:00
Christopher Faylor 6b762a4ec6 * path.cc (normalize_posix_path): Previous two patches were still incorrect so
rewrite this function to deal with trailing dots.
(mount_info::conv_to_win32_path): Just check for '/' where appropriate.
Eliminate nofinalslash call since it is handled in normalize_posix_path now.
2000-04-21 05:32:19 +00:00
Christopher Faylor 60bebb0318 * exceptions.cc (handle_exceptions): Search further for stack info to
accomodate Windows 95.
2000-04-20 21:33:58 +00:00
Christopher Faylor db64ab89f0 * path.cc (normalize_posix_path): Previous change failed to take root
access into account.
2000-04-20 20:42:14 +00:00
Corinna Vinschen bf921462e7 * syscalls.cc (_link): Check new link path for trailing dot. 2000-04-20 13:52:41 +00:00
Christopher Faylor d7aac2acf5 * fhandler.h (fhandler_base::hclose): New virtual method.
(fhandler_base::set_inheritance): Make this a method so that we can use the
appropriate close methods.
* fhandler.cc (fhandler_base::set_inheritance): Ditto.
* path.cc (normalize_posix_path): Eliminate /.  trailing path component.
2000-04-20 04:38:10 +00:00
Corinna Vinschen f06a3648d5 * syscalls.cc (setuid): Allow switching user context after
successful call to ImpersonateLogedOnUser (NT only).
	(setgid): Ditto.
	(seteuid): Call setuid.
	(setegid): Call setgid.
2000-04-19 22:33:20 +00:00
Corinna Vinschen ceba50edbe * uinfo.cc (internal_getlogin): Use NetGetDCName() instead
of NetGetAnyDCName().
2000-04-19 20:03:51 +00:00
Christopher Faylor 8c63f3b872 * configure.in: Change HEADER_SUBDIR to mingw32.
* configure: Regenerate.
2000-04-19 17:11:59 +00:00
DJ Delorie ef6581f9ff * syscalls.cc (_rename): Try MoveFile() at first before
MoveFileEx(..., MOVEFILE_REPLACE_EXISTING).
2000-04-19 03:21:13 +00:00
DJ Delorie 7916b1efda don't put api internals in general tarball 2000-04-19 02:35:06 +00:00
DJ Delorie ca271663ab add commands for building a doc kitchen-sink-tarball 2000-04-19 02:31:45 +00:00
DJ Delorie 05357ffef2 clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
Christopher Faylor 25ba8f306f * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS path
spec, even within a quoted string.
2000-04-18 23:16:56 +00:00
Christopher Faylor c845acffda * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS path
spec.
2000-04-18 21:28:45 +00:00
DJ Delorie 2cf2f0980f * remove dependence on where pwd is 2000-04-18 00:37:04 +00:00
Christopher Faylor 08ce80eac2 Remove obsolete setting. 2000-04-16 23:00:38 +00:00
Christopher Faylor fbf23e34c5 * init.cc (dll_entry): Use better check for determining when to set thread
specific stuff.
* syscalls.cc (_unlink): Continue with chmod'ing file even if DELETE_ON_CLOSE
succeeds, if file still exists.
2000-04-16 22:57:05 +00:00
Corinna Vinschen 0ac91154fc * mkpasswd.c (main): Use GetDCName instead of GetAnyDCName.
Don't create extra passwd entry for administrators group
        if local_groups is set.
        (usage): Change usage text slightly.
        (enum_users): Loop while ERROR_MORE_DATA is returned.
        (enum_local_groups): Ditto.
        * mkgroup.c (enum_local_groups): Ditto.
        (enum_groups) Ditto.
        (usage): Change usage text slightly.
2000-04-15 22:30:49 +00:00
Christopher Faylor eed11cf2bb * fhandler_console.cc (keytable): Add support for keypad 5 key, which MS seems
to think is equivalent to VK_CLEAR.
* debug.cc (thread_stub): Eliminate initialization of reent stuff.
* init.cc (dll_entry): Move it here.
2000-04-15 03:52:24 +00:00
Christopher Faylor 2cf9359a8a * dcrt0.cc (insert_file): Avoid freeing previously allocated argument list.
* path.cc (symlink_info::check): Rename from symlink_check_one.  Use new
symlink_info struct for communication.
(path_conv::path_conv): Use symlink_info structure for communication with
symlink_info::check.  Fix typo which resulted in symbolic links always being
resolved.
(readlink): Use stat_suffixes array when resolving a link.
* syscalls.cc (stat_suffixes): Make global.
2000-04-13 22:43:48 +00:00
Corinna Vinschen 8a06963c1c * include/cygwin/version.h: Bump minor api to reflect export change. 2000-04-13 18:52:12 +00:00
Corinna Vinschen b53881fd27 * cygwin.din: Add symbol for `lacl'.
* security.cc (ReadSD): Add debug output.
	(acl_worker):  New static function.
	(acl): Call acl_worker now.
	(lacl): New function.
	(facl): Call acl_worker now.
	* include/cygwin/acl.h: Add prototype for `lacl'.
2000-04-13 06:53:24 +00:00
Corinna Vinschen a4bf66dd75 * path.cc (conv_to_win32_path): Detect a win32 path
if path contains backslashes.
2000-04-13 06:48:14 +00:00
Christopher Faylor 418068d4b0 * cygpath.cc (main): Add -a -o and -c options.
(doit): Ditto.
2000-04-13 05:23:30 +00:00
Christopher Faylor 7ef25eb606 Fix typo. 2000-04-13 01:00:59 +00:00
Christopher Faylor 0d60da2632 * path.cc (path_conv::path_conv): Ensure that suffix is correctly copied to
path when we've found a symlink but aren't following symlinks.
2000-04-12 22:50:08 +00:00
Christopher Faylor d13dac7f30 Add a debugging line. 2000-04-11 21:22:53 +00:00
Christopher Faylor caa8b1ca9b * include/winbase.h: Change first argument of ENUMRES* types to coincide with
Microsoft usage.
2000-04-11 12:51:58 +00:00
Christopher Faylor 138d4f510e * cygpath.cc (main): Add -f option for processing a group of paths from a file.
(doit): New function.
2000-04-11 02:57:25 +00:00