diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-10-24 08:40:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-10-24 08:40:15 +0000 |
commit | e83fef9d351462b7b5046ae054eb56724d704c30 (patch) | |
tree | 753b90930fef78e16fd314f1b24042f728d92fb5 /winsup/cygwin | |
parent | 1647bf67c146d1e1d7169d1b413afb6a459b9ded (diff) | |
download | newlib-e83fef9d351462b7b5046ae054eb56724d704c30.zip newlib-e83fef9d351462b7b5046ae054eb56724d704c30.tar.gz newlib-e83fef9d351462b7b5046ae054eb56724d704c30.tar.bz2 |
* fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9bb75a5..e74fe57 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2009-10-24 Corinna Vinschen <corinna@vinschen.de> + + * fhandler.cc (fhandler_base::open): Remove unused variables sa and sd. + 2009-10-23 Corinna Vinschen <corinna@vinschen.de> * fhandler.cc (fhandler_base::open): Always create file with default diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 3e6e158..c978d00 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -461,8 +461,6 @@ fhandler_base::open (int flags, mode_t mode) ULONG shared = (get_major () == DEV_TAPE_MAJOR ? 0 : FILE_SHARE_VALID_FLAGS); ULONG create_disposition; ULONG create_options = FILE_OPEN_FOR_BACKUP_INTENT; - SECURITY_ATTRIBUTES sa = sec_none; - security_descriptor sd; OBJECT_ATTRIBUTES attr; IO_STATUS_BLOCK io; NTSTATUS status; @@ -471,7 +469,7 @@ fhandler_base::open (int flags, mode_t mode) syscall_printf ("(%S, %p)", pc.get_nt_native_path (), flags); - pc.get_object_attr (attr, sa); + pc.get_object_attr (attr, sec_none); switch (query_open ()) { |