* external.cc (check_ntsec): Return general ntsec state on NULL

filename.  Check wincap.is_security() additionally.
This commit is contained in:
Corinna Vinschen 2003-04-03 08:18:43 +00:00
parent 5a4a19b3f3
commit d5292d66a4
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-04-03 Corinna Vinschen <corinna@vinschen.de>
* external.cc (check_ntsec): Return general ntsec state on NULL
filename. Check wincap.is_security() additionally.
2003-04-02 Christopher Faylor <cgf@redhat.com>
* Makefile.in (EXTRA_OFILES): Remove debugging object.

View File

@ -124,8 +124,10 @@ get_cygdrive_prefixes (char *user, char *system)
static DWORD
check_ntsec (const char *filename)
{
if (!filename)
return wincap.has_security () && allow_ntsec;
path_conv pc (filename);
return allow_ntsec && pc.has_acls ();
return wincap.has_security () && allow_ntsec && pc.has_acls ();
}
extern "C" unsigned long