Displaying 20 results from an estimated 30 matches for "talloc_strdup".
2017 Apr 02
2
vfs_shadow_copy2 delimiter not working
...vfs_shadow_copy2.c
--- vfs_shadow_copy2.c.orig     2017-03-31 14:53:38.722560396 +0100
+++ vfs_shadow_copy2.c  2017-04-02 22:13:41.943038415 +0100
@@ -1866,16 +1866,19 @@ static bool shadow_copy2_snapshot_to_gmt
          */
         if (priv->snaps->regex != NULL) {
                 tmpstr = talloc_strdup(talloc_tos(), name);
-               /* point "name" to the time format */
+               /* Point "name" at <delimiter><time_format> */
                 name = strstr(name, priv->config->delimiter);
                 if (name == NULL) {...
2005 Feb 02
0
Re: VFS calls after disconnect
...>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() failed\n"));
		return -1;
	}
	connectCnt ++;
	data->db_connection = connectCnt ;
	/* and now store the private data pointer in handle->data
	 * we don't need to specify a free_functio...
2011 Jun 13
1
Out of memory error while calling smbc_getxattr().
...function cli_lsa_lookup_sids_noalloc()...
if (dom_idx != 0xffffffff) {
??????????????????????? dom_name = ref_domains->domains[dom_idx].name.string;
??????????????????????? name = lsa_names.names[i].name.string;
??????????????????????? if (name) {
??????????????????????????????? (names)[i] = talloc_strdup(mem_ctx, name);
??????????????????????????????? if ((names)[i] == NULL) {
??????????????????????????????????????? DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n"));
??????????????????????????????????????? result = NT_STATUS_UNSUCCESSFUL;
???????????????????????????????????????...
2007 Apr 12
3
Idmap back compatible issue
...le: without idmap domains and explicit
idmap backend
+                * Taking default idmap backend: tdb
+                */
+               DEBUG(3, ("idmap_init: No idmap domains, No idmap
backend dom_list=%s\n", *dom_list));
+               compat = 1;
+               compat_backend = talloc_strdup( idmap_ctx, "tdb");
+               compat_params = compat_backend;
        }
        if ( ! dom_list) {
Thanks.
-Ying
2006 Aug 10
6
3.0.20 -> 3.0.23 SID/group error?? Won't connect.
Gerry, all:
    HELP! On mandriva, I compiled samba from source and got it running, but 
I cannot connect from windows. (see my post from earlier "[Samba] Compiling 
and Configuring Samba for Mandrival")
    I think this relates to the group/SID changes discussed in the release 
notes. However, I'm not smart enough to figure it out. The tarball compiled 
and installed fine. It
2011 Jun 03
2
missing symbols talloc_* (opensuse 11.4/samba 3.5.7-xxx)
...ee  (/usr/sbin/nmbd)
undefined symbol: _talloc_array (/usr/sbin/nmbd)
undefined symbol: _talloc_reference_loc (/usr/sbin/nmbd)
undefined symbol: talloc_pool   (/usr/sbin/nmbd)
undefined symbol: talloc_init   (/usr/sbin/nmbd)
undefined symbol: talloc_get_name       (/usr/sbin/nmbd)
undefined symbol: talloc_strdup (/usr/sbin/nmbd)
undefined symbol: talloc_set_name       (/usr/sbin/nmbd)
undefined symbol: _talloc_zero  (/usr/sbin/nmbd)
undefined symbol: _talloc_steal_loc     (/usr/sbin/nmbd)
undefined symbol: talloc_report_depth_cb        (/usr/sbin/nmbd)
undefined symbol: talloc_asprintf_append_buffer (/usr/...
2017 Apr 19
0
vfs_shadow_copy2 delimiter not working
...s_shadow_copy2.c.orig     2017-03-31 14:53:38.722560396 +0100
> +++ vfs_shadow_copy2.c  2017-04-02 22:13:41.943038415 +0100
> @@ -1866,16 +1866,19 @@ static bool shadow_copy2_snapshot_to_gmt
>           */
>          if (priv->snaps->regex != NULL) {
>                  tmpstr = talloc_strdup(talloc_tos(), name);
> -               /* point "name" to the time format */
> +               /* Point "name" at <delimiter><time_format> */
>                  name = strstr(name, priv->config->delimiter);
>                  if (name == NULL) {
>...
2020 May 14
0
open 2nd pdf on dfs share with Acrobat Reader not possible
...e SMB_FILE_NORMALIZED_NAME_INFORMATION:
+               {
+                       char *nfname = NULL;
+
+                       if (!fsp->conn->sconn->using_smb2) {
+                               return NT_STATUS_INVALID_LEVEL;
+                       }
+
+                       nfname = talloc_strdup(mem_ctx, 
smb_fname->base_name);
+                       if (nfname == NULL) {
+                               return NT_STATUS_NO_MEMORY;
+                       }
+
+                       if (ISDOT(nfname)) {
+                               nfname[0] = '\0';
+                       }...
2011 Jul 18
2
Build problem on RHEL 5.6
...RHEL 5.6 and I'm getting several errors
similar to the following:
Linking bin/winbind_krb5_locator.so
bin/libwbclient.a(wbclient.o): In function `wbcLibraryDetails':
wbclient.c:(.text+0x101): undefined reference to `talloc_named_const'
wbclient.c:(.text+0x123): undefined reference to `talloc_strdup'
wbclient.c:(.text+0x150): undefined reference to `_talloc_free'
bin/libwbclient.a(wbclient.o): In function `wbcFreeMemory':
wbclient.c:(.text+0x16e): undefined reference to `_talloc_free'
bin/libwbclient.a(wbc_util.o): In function `wbcAddNamedBlob':
I've tried building --w...
2009 Feb 16
1
samba-3.2.8 - KRB5_KT_UNKNOWN_TYPE;
...b,krb4:/etc/srvtab" */
        ret = krb5_kt_default_name(context, &keytab_string[0], 
MAX_KEYTAB_NAME_LEN - 2);
        if (ret) {
                goto out;
        }
        DEBUG(10,("smb_krb5_open_keytab: krb5_kt_default_name returned 
%s\n", keytab_string));
        tmp = talloc_strdup(mem_ctx, keytab_string);
        if (!tmp) {
                ret = ENOMEM;
                goto out;
        }
        if (strncmp(tmp, "ANY:", 4) == 0) {
                tmp += 4;
        }
        memset(&keytab_string, '\0', sizeof(keytab_string));
        while (next_to...
2004 Feb 10
1
INTERNAL ERROR: Signal 11 in pid 12262 (3.0.2-Debian)
...mbd(smb_panic+0x16b) [0x8185273]
   #1 /usr/sbin/smbd [0x8175ec3]
   #2 /usr/sbin/smbd [0x8175f25]
   #3 /lib/libc.so.6 [0x4016f6b8]
   #4 /lib/libc.so.6(malloc+0xe4) [0x401b4074]
   #5 /usr/sbin/smbd(talloc+0x25) [0x81891e9]
   #6 /usr/sbin/smbd(talloc_memdup+0x17) [0x81893eb]
   #7 /usr/sbin/smbd(talloc_strdup+0x2f) [0x818943b]
   #8 /usr/sbin/smbd(strftime+0x1a65) [0x8077e49]
   #9 /usr/sbin/smbd(lp_acl_compatibility+0x1d) [0x8078611]
   #10 /usr/sbin/smbd [0x80b4bcf]
   #11 /usr/sbin/smbd [0x80b5735]
   #12 /usr/sbin/smbd [0x80b6499]
   #13 /usr/sbin/smbd(set_nt_acl+0x32d) [0x80b88b1]
   #14 /usr/sbin/...
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
...(conn, XS_ERROR, xsd_errors[i].errstring,
 			  strlen(xsd_errors[i].errstring) + 1);
 }
 
@@ -797,7 +795,7 @@
 	return false;
 }
 
-static bool send_directory(struct connection *conn, const char *node)
+static void send_directory(struct connection *conn, const char *node)
 {
 	char *path, *reply = talloc_strdup(node, "");
 	unsigned int reply_len = 0;
@@ -805,13 +803,17 @@
 	struct dirent *dirent;
 
 	node = canonicalize(conn, node);
-	if (!check_node_perms(conn, node, XS_PERM_READ))
-		return send_error(conn, errno);
+	if (!check_node_perms(conn, node, XS_PERM_READ)) {
+		send_error(conn, errno...
2019 Jul 24
2
Dynamic DNS record scavenging support
...0(smb_panic+0xa2) [0x7fda75605492]
Jul 24 16:39:20 dc1 samba[29071]:   #2
/usr/lib64/samba/libtalloc.so.2(+0x3a91) [0x7fda74547a91]
Jul 24 16:39:20 dc1 samba[29071]:   #3
/usr/lib64/samba/libtalloc.so.2(+0x3ab8) [0x7fda74547ab8]
Jul 24 16:39:20 dc1 samba[29071]:   #4
/usr/lib64/samba/libtalloc.so.2(talloc_strdup+0xad) [0x7fda7454a7d5]
Jul 24 16:39:20 dc1 samba[29071]:   #5
/usr/lib64/samba/libldb.so.1(+0x19f5c) [0x7fda74b8cf5c]
Jul 24 16:39:20 dc1 samba[29071]:   #6
/usr/lib64/samba/ldb/objectclass_attrs.so(+0x3038) [0x7fda57f70038]
Jul 24 16:39:20 dc1 samba[29071]:   #7
/usr/lib64/samba/ldb/objectclass_at...
2007 Feb 12
3
Autogenerating of operatingSystem and operatingSystemVersion attributes in AD
...quot;net_set_machine_opsystem: %d entries returned!\n", count));
+		return ADS_ERROR(LDAP_NO_MEMORY);
+	}
+
+	if ( (dn_string = ads_get_dn(ads_s, res)) == NULL ) {
+		DEBUG(1, ("net_set_machine_opsystem: ads_get_dn returned NULL (malloc 
failure?)\n"));
+		goto done;
+	}
+
+	new_dn = talloc_strdup(ctx, dn_string);
+	ads_memfree(ads_s, dn_string);
+
+	if (!new_dn) {
+		return ADS_ERROR(LDAP_NO_MEMORY);
+	}
+
+	if (!(mods = ads_init_mods(ctx)))
+		goto done;
+
+	ads_mod_str(ctx, &mods, "operatingSystem", "Samba");
+	ads_mod_str(ctx, &mods, "operatingSystemVersi...
2004 Feb 17
0
VFS module programmieren
...truct 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() failed\n"));
		return -1;
	}
	data->db_connection = open_db_conn();
	/* and now store the private data pointer in handle->data
	 * we don't need to specify a free_function here becaus...
2019 Jul 24
0
Dynamic DNS record scavenging support
...492]
> Jul 24 16:39:20 dc1 samba[29071]:   #2
> /usr/lib64/samba/libtalloc.so.2(+0x3a91) [0x7fda74547a91]
> Jul 24 16:39:20 dc1 samba[29071]:   #3
> /usr/lib64/samba/libtalloc.so.2(+0x3ab8) [0x7fda74547ab8]
> Jul 24 16:39:20 dc1 samba[29071]:   #4
> /usr/lib64/samba/libtalloc.so.2(talloc_strdup+0xad) [0x7fda7454a7d5]
> Jul 24 16:39:20 dc1 samba[29071]:   #5
> /usr/lib64/samba/libldb.so.1(+0x19f5c) [0x7fda74b8cf5c]
> Jul 24 16:39:20 dc1 samba[29071]:   #6
> /usr/lib64/samba/ldb/objectclass_attrs.so(+0x3038) [0x7fda57f70038]
> Jul 24 16:39:20 dc1 samba[29071]:   #7
> /usr/...
2019 May 01
0
Replication failures
...k frames:
> >>   #0 
> /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0
> x30) [0x7fe1294e7ba0]
> >>   #1 
> /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x4b) 
> [0x7fe1294e7cab]
> >>   #2 
> /usr/lib/x86_64-linux-gnu/libtalloc.so.2(talloc_strdup+0x305) 
> [0x7fe127677d15]
> >>   #3 /usr/lib/x86_64-linux-gnu/libldb.so.1(+0x15f4f) 
> [0x7fe12724bf4f]
> >>   #4 
> /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/samba/objectclass_at
> trs.so(+0x2461) [0x7fe10fd6f461]
> >> .
> >> .
> >> .
>...
2019 Apr 24
0
Replication failures
...7f35b31488c9]
  #6 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x2c6a) [0x7f35b3148c6a]
  #7 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x2e7e) [0x7f35b3148e7e]
  #8 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x5f36) [0x7f35b314bf36]
  #9 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(talloc_strdup+0x49) [0x7f35b314bfec]
  #10 /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(+0x1cd3d) [0x7f35b3dd9d3d]
  #11 /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x1bc9) [0x7f359d3dcbc9]
  #12 /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x22ea) [0x7f359d3dd2ea]
  #13 /usr/lib/x86_64...
2019 Apr 24
0
Replication failures
...x-gnu/samba/libtalloc.so.2(+0x2c6a) 
> [0x7f35b3148c6a]
>   #7 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x2e7e) 
> [0x7f35b3148e7e]
>   #8 /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(+0x5f36) 
> [0x7f35b314bf36]
>   #9 
> /usr/lib/x86_64-linux-gnu/samba/libtalloc.so.2(talloc_strdup+0
x49) [0x7f35b314bfec]
>   #10 /usr/lib/x86_64-linux-gnu/samba/libldb.so.1(+0x1cd3d) 
> [0x7f35b3dd9d3d]
>   #11 
> /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x1b
c9) [0x7f359d3dcbc9]
>   #12 
> /usr/lib/x86_64-linux-gnu/samba/ldb/objectclass_attrs.so(+0x22
ea) [0...
2019 Apr 29
4
Replication failures
...fault.c:261(log_stack_trace)
>   BACKTRACE: 50 stack frames:
>    #0 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x30) [0x7fe1294e7ba0]
>    #1 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x4b) [0x7fe1294e7cab]
>    #2 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(talloc_strdup+0x305) [0x7fe127677d15]
>    #3 /usr/lib/x86_64-linux-gnu/libldb.so.1(+0x15f4f) [0x7fe12724bf4f]
>    #4 /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/samba/objectclass_attrs.so(+0x2461) [0x7fe10fd6f461]
> .
> .
> .
> [2019/04/26 10:37:29.854836,  0] ../../source4/smbd/process_standar...