diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-11 06:08:00 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-11 06:08:00 +0400 |
commit | 380aaf2d2ced0e305e91c85d8bda2de6092b424f (patch) | |
tree | c311aecc9dcc922b138d3d4c12ccd2a0930d325d /winsup/cygwin/security.cc | |
parent | 85a238e1e8253b37a7ebf960831e75ded21119e5 (diff) |
* Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGS
command-line setting.
* cygwin.din: Export sexec* functions as function which returns ENOSYS
(i.e., sexec* is deprecated).
* dtable.cc (dtable::vfork_child_dup): Ensure that impersonation is restored
even on failure.
* exec.cc: Throughout, remove references to sexec* and _spawnve.
* pinfo.h: Remove _spawnve declaration.
* spawn.cc: Rename _spawnve to spawnve and use throughout.
(spawn_guts): Eliminate hToken argument and processing of same. Just perform
special actions if impersonating.
(spawnve): Rename from _spawnve.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index e6414cfd4..5920cac50 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -46,8 +46,7 @@ BOOL allow_ntsec; The default is TRUE to reflect the old behaviour. */ BOOL allow_smbntsec = TRUE; -extern "C" -void +extern "C" void cygwin_set_impersonation_token (const HANDLE hToken) { debug_printf ("set_impersonation_token (%d)", hToken); @@ -100,8 +99,7 @@ extract_nt_dom_user (const struct passwd *pw, char *domain, char *user) } } -extern "C" -HANDLE +extern "C" HANDLE cygwin_logon_user (const struct passwd *pw, const char *password) { if (!wincap.has_security ()) |