* security.cc (allow_ntsec): Default to zero.

* environ.cc (environ_init): Set allow_ntsec to TRUE by default, assuming OS
allows it.
This commit is contained in:
Christopher Faylor 2002-09-30 03:05:13 +00:00
parent 0fa64fa3a7
commit f789fbbf35
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-09-29 Christopher Faylor <cgf@redhat.com>
* security.cc (allow_ntsec): Default to zero.
* environ.cc (environ_init): Set allow_ntsec to TRUE by default,
assuming OS allows it.
2002-09-29 Christopher Faylor <cgf@redhat.com> 2002-09-29 Christopher Faylor <cgf@redhat.com>
* environ.cc (environ_init): Avoid a compiler warning. * environ.cc (environ_init): Avoid a compiler warning.

View File

@ -675,11 +675,9 @@ environ_init (char **envp, int envc)
if (myself->progname[0]) if (myself->progname[0])
got_something_from_registry = regopt (myself->progname) || got_something_from_registry; got_something_from_registry = regopt (myself->progname) || got_something_from_registry;
#ifdef NTSEC_ON_BY_DEFAULT
/* Set ntsec explicit as default, if NT is running */ /* Set ntsec explicit as default, if NT is running */
if (wincap.has_security ()) if (wincap.has_security ())
allow_ntsec = TRUE; allow_ntsec = TRUE;
#endif
if (!envp) if (!envp)
envp_passed_in = 0; envp_passed_in = 0;

View File

@ -41,7 +41,7 @@ details. */
#include "lm.h" #include "lm.h"
extern BOOL allow_ntea; extern BOOL allow_ntea;
BOOL allow_ntsec = true; BOOL allow_ntsec;
/* allow_smbntsec is handled exclusively in path.cc (path_conv::check). /* allow_smbntsec is handled exclusively in path.cc (path_conv::check).
It's defined here because of it's strong relationship to allow_ntsec. It's defined here because of it's strong relationship to allow_ntsec.
The default is TRUE to reflect the old behaviour. */ The default is TRUE to reflect the old behaviour. */