summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/security.cc
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2004-10-06 01:33:39 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2004-10-06 01:33:39 +0000
commitb0637a519141d657c25eb08dd80dd8ad05df6a4e (patch)
treef7622d609c11acbbfaa43811691533cfd063d498 /winsup/cygwin/security.cc
parent49a8b8f05cc85693a05dede399f4dfa5a829b718 (diff)
downloadcygnal-b0637a519141d657c25eb08dd80dd8ad05df6a4e.tar.gz
cygnal-b0637a519141d657c25eb08dd80dd8ad05df6a4e.tar.bz2
cygnal-b0637a519141d657c25eb08dd80dd8ad05df6a4e.zip
2004-10-05 Pierre Humblet <pierre.humblet@ieee.org>
* external.cc (check_ntsec): Do not call wincap.has_security. * path.cc (path_conv::check): Ditto. * security.cc (get_object_attribute): Ditto. (get_file_attribute): Ditto.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r--winsup/cygwin/security.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index 73619aa9c..458e2323a 100644
--- a/winsup/cygwin/security.cc
+++ b/winsup/cygwin/security.cc
@@ -1382,7 +1382,7 @@ int
get_object_attribute (HANDLE handle, SE_OBJECT_TYPE object_type,
mode_t *attribute, __uid32_t *uidret, __gid32_t *gidret)
{
- if (allow_ntsec && wincap.has_security ())
+ if (allow_ntsec)
{
get_nt_object_attribute (handle, object_type, attribute, uidret, gidret);
return 0;
@@ -1398,7 +1398,7 @@ get_file_attribute (int use_ntsec, HANDLE handle, const char *file,
int res;
syscall_printf ("file: %s", file);
- if (use_ntsec && allow_ntsec && wincap.has_security ())
+ if (use_ntsec && allow_ntsec)
{
if (!handle || get_nt_object_attribute (handle, SE_FILE_OBJECT,
attribute, uidret, gidret))