ChangeLog already commited yesterday:

* external.cc (check_ntsec): New function.
	(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec()
	from applications.
	* include/cygwin/version.h: Bump API minor number.
	* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
This commit is contained in:
Corinna Vinschen
2003-04-03 08:04:41 +00:00
parent 1ce82d241f
commit 5a4a19b3f3
3 changed files with 16 additions and 2 deletions

View File

@ -121,6 +121,13 @@ get_cygdrive_prefixes (char *user, char *system)
return res;
}
static DWORD
check_ntsec (const char *filename)
{
path_conv pc (filename);
return allow_ntsec && pc.has_acls ();
}
extern "C" unsigned long
cygwin_internal (cygwin_getinfo_types t, ...)
{
@ -247,6 +254,11 @@ cygwin_internal (cygwin_getinfo_types t, ...)
pinfo p (pid);
return (DWORD) p->cmdline (n);
}
case CW_CHECK_NTSEC:
{
char *filename = va_arg (arg, char *);
return check_ntsec (filename);
}
default:
return (DWORD) -1;
}