* external.cc (check_ntsec): Return general ntsec state on NULL
filename. Check wincap.is_security() additionally.
This commit is contained in:
parent
5a4a19b3f3
commit
d5292d66a4
@ -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>
|
2003-04-02 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (EXTRA_OFILES): Remove debugging object.
|
* Makefile.in (EXTRA_OFILES): Remove debugging object.
|
||||||
|
@ -124,8 +124,10 @@ get_cygdrive_prefixes (char *user, char *system)
|
|||||||
static DWORD
|
static DWORD
|
||||||
check_ntsec (const char *filename)
|
check_ntsec (const char *filename)
|
||||||
{
|
{
|
||||||
|
if (!filename)
|
||||||
|
return wincap.has_security () && allow_ntsec;
|
||||||
path_conv pc (filename);
|
path_conv pc (filename);
|
||||||
return allow_ntsec && pc.has_acls ();
|
return wincap.has_security () && allow_ntsec && pc.has_acls ();
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" unsigned long
|
extern "C" unsigned long
|
||||||
|
Loading…
Reference in New Issue
Block a user