Displaying 9 results from an estimated 9 matches for "talloc_zero".
2005 Feb 02
0
Re: VFS calls after disconnect
...ts\n"));
		SMB_VFS_HANDLE_GET_DATA(handle, data, struct example_privates, -1);
		data = (struct example_privates*)handle->data ;
		DEBUG(0,("data->db_connection = %d\n" , data->db_connection ));
		return 1;
	}
	/* alloc our private data */
	data = (struct example_privates *)talloc_zero(conn->mem_ctx, sizeof(struct
example_privates));
	if (!data) {
		DEBUG(0,("talloc_zero() failed\n"));
		return -1;
	}
	/* init out private data */
	data->some_string = talloc_strdup(conn->mem_ctx,"test");
	if (!data->some_string) {
		DEBUG(0,("talloc_strdup() f...
2003 Dec 01
0
No subject
...-- /cthulhu/u1/jeremy/tmp/samba-2.2.1/source/rpc_server/srv_samr_nt.c	Mon Jul  9 17:13:22 2001
+++ rpc_server/srv_samr_nt.c	Mon Jul 23 15:02:47 2001
@@ -625,9 +625,9 @@
 	if (num_sam_entries == 0)
 		return;
 
-	sam = (SAM_ENTRY *)talloc(ctx, sizeof(SAM_ENTRY)*num_sam_entries);
+	sam = (SAM_ENTRY *)talloc_zero(ctx, sizeof(SAM_ENTRY)*num_sam_entries);
 
-	uni_name = (UNISTR2 *)talloc(ctx, sizeof(UNISTR2)*num_sam_entries);
+	uni_name = (UNISTR2 *)talloc_zero(ctx, sizeof(UNISTR2)*num_sam_entries);
 
 	if (sam == NULL || uni_name == NULL) {
 		DEBUG(0, ("NULL pointers in SAMR_R_QUERY_DISPINFO\n"));...
2004 Feb 17
0
VFS module programmieren
...{
	char *some_string;
	int db_connection;
};
  first way of doing it:
static int example_connect(vfs_handle_struct *handle,
	connection_struct *conn, const char *service,
	const char* user)
{
	struct example_privates *data = NULL;
	/* alloc our private data */
	data = (struct example_privates *)talloc_zero(conn->mem_ctx, sizeof(struct
example_privates));
	if (!data) {
		DEBUG(0,("talloc_zero() failed\n"));
		return -1;
	}
	/* init out private data */
	data->some_string = talloc_strdup(conn->mem_ctx,"test");
	if (!data->some_string) {
		DEBUG(0,("talloc_strdup() f...
2007 Jun 20
1
smbd process eating memory
...2007/06/20 12:58:55, 0]
rpc_server/srv_pipe_hnd.c:make_internal_rpc_pipe_p(295)
  ERROR! no memory for pipes_struct!
[2007/06/20 12:58:55, 0] rpc_server/srv_pipe_hnd.c:open_rpc_pipe_p(231)
  open_rpc_pipe_p: make_internal_rpc_pipe_p failed.
[2007/06/20 12:59:07, 0] smbd/vfs.c:vfs_init_custom(162)
  TALLOC_ZERO() failed!
[2007/06/20 12:59:07, 0] smbd/connection.c:claim_connection(208)
  claim_connection: tdb_store failed with error Out of memory.
[2007/06/20 12:59:07, 1] smbd/service.c:make_connection_snum(896)
  too many connections - rejected
[2007/06/20 12:59:30, 0] lib/util.c:Realloc(1073)
  Memory al...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
...ruct *handle,
>  				SECINFO_DACL | \
>  				SECINFO_SACL)
>  
> +struct acl_common_config {
> +	bool ignore_system_acls;
> +};
> +
> +static bool init_acl_common_config(vfs_handle_struct *handle)
> +{
> +	struct acl_common_config *config = NULL;
> +
> +	config = talloc_zero(handle->conn, struct acl_common_config);
> +	if (config == NULL) {
> +		DBG_ERR("talloc_zero() failed\n");
> +		errno = ENOMEM;
> +		return false;
> +	}
> +
> +	config->ignore_system_acls = lp_parm_bool(SNUM(handle->conn),
> +						  ACL_MODULE_NAME,
>...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 06:33:26PM +0200, Ralph Böhme via samba wrote:
> On Thu, Aug 25, 2016 at 12:14:00PM -0700, Jeremy Allison wrote:
> > On Wed, Aug 24, 2016 at 04:06:42PM +0200, Ralph Böhme via samba wrote:
> > > 
> > > Yeah, as much as I'd like to avoid adding a new option, I guess we
> > > have to do something about it, my latest take on this is
>
2016 Aug 29
1
Issue with acl_xattr:ignore system acls in 4.5rc2
...ruct *handle,
>  				SECINFO_DACL | \
>  				SECINFO_SACL)
>  
> +struct acl_common_config {
> +	bool ignore_system_acls;
> +};
> +
> +static bool init_acl_common_config(vfs_handle_struct *handle)
> +{
> +	struct acl_common_config *config = NULL;
> +
> +	config = talloc_zero(handle->conn, struct acl_common_config);
> +	if (config == NULL) {
> +		DBG_ERR("talloc_zero() failed\n");
> +		errno = ENOMEM;
> +		return false;
> +	}
> +
> +	config->ignore_system_acls = lp_parm_bool(SNUM(handle->conn),
> +						  ACL_MODULE_NAME,
>...
2016 Aug 27
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 04:03:49PM -0700, Jeremy Allison wrote:
> On Fri, Aug 26, 2016 at 02:46:19PM -0700, Jeremy Allison via samba wrote:
> > On Fri, Aug 26, 2016 at 06:44:05PM +0200, Ralph Böhme wrote:
> > > 
> > > Cheerio!
> > > -slow
> > 
> > Still reviewing this - but a few things that will need changing:
> > 
> > When adding the
2012 Jan 25
26
[PATCH v4 00/23] Xenstore stub domain
Changes from v3:
 - mini-os configuration files moved into stubdom/
 - mini-os extra console support now a config option
 - Fewer #ifdefs
 - grant table setup uses hypercall bounce
 - Xenstore stub domain syslog support re-enabled
Changes from v2:
 - configuration support added to mini-os build system
 - add mini-os support for conditionally compiling frontends, xenbus
 -