server: Make alloc_handle use attributes instead of inherit flag.
diff --git a/server/file.c b/server/file.c
index 1b34c7a..b24751a 100644
--- a/server/file.c
+++ b/server/file.c
@@ -356,8 +356,7 @@
if ((file = create_file( get_req_data(), get_req_data_size(), req->access,
req->sharing, req->create, req->options, req->attrs )))
{
- reply->handle = alloc_handle( current->process, file, req->access,
- req->attributes & OBJ_INHERIT );
+ reply->handle = alloc_handle( current->process, file, req->access, req->attributes );
release_object( file );
}
}
@@ -376,8 +375,7 @@
}
if ((file = create_file_for_fd( fd, req->access, FILE_SHARE_READ | FILE_SHARE_WRITE )))
{
- reply->handle = alloc_handle( current->process, file, req->access,
- req->attributes & OBJ_INHERIT );
+ reply->handle = alloc_handle( current->process, file, req->access, req->attributes );
release_object( file );
}
}